Hi Maik,
I agree with you about line 3 but have my doubts on line 7. Because in debugging mode,
value [0] = path to the exe file of the add-on
value [1] = connection string from SBO client.
Because when I run the add-on from VS2012, Environment.GetCommandLineArgs()
have always two argument which stated above. If I set the GetValue(0) in the
else condition, it crashes and the error is,
Could not find SBO that match the connection string.
If I use GetValue(1) instead of "0", it works fine. I even asked a question regarding
this earlier and yet I'm confused about that.