It throws an exception, but the code uses MessageBox.Show which doesn't appear to work very well with this program. In other words, the MessageBox doesn't actually appear.
You can't use mpSystemVersion because the subscriptions MP has a different version number (a lower one). So why's it in this code? Back in 2010, every MP had the same version. So everyone who did any SCSM SDK code typically used the System.MPVersion as a
quick painless trick to add that particular parameter. In 2012, the System MP version was higher than all the other MPs. So basically, it's a hold over from a convenient trick that no longer works. It caused headaches with more than one custom SCSM program
back then..(mine included)
The only requirement to retrieve an MP is to have the name, the key (if applicable), and a version value that's less than or equal to the MPs version. MP versions like this are important if you're distributing MPs to multiple instances that may have different
versions, but for your own MPs it's not quite as important (other than using the versions for your own organization and sanity). If you want to be perfectly precise, go get the subscription MP's version number from your database and use that instead of 1.0.0.0
:)
As for the csv, look at the Results xaml..both text boxes are bound to the DataFilePath..the second one should be bound to the MappingFilePath. It's just an aesthetic bug. It won't affect the creation of the connector..and if you got that far, the connector
should have already been created..but it looks like your Close button is still greyed out? Make sure after you recompile and copy the dll you restart your console.
-
Marked as answer by
SirLearnAlot
Wednesday, February 25, 2015 8:32 PM