cancel
Showing results for 
Search instead for 
Did you mean: 

Error: System.IndexOutOfRangeException

Former Member
0 Kudos

Hi.

When I start my Programm (VB.NET) in the "Release Mode", I have a Errormessage: "System.IndexOutOfRangeException"

It only works in the Debug Mode.

I have made a printscreen, here is the link:

http://www.breakdance.dreamworld.cd/Error.htm

Please Help me.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Marcel,

If you start your program in Release mode you must pass the Connection String as command line argument.

Usually you must only work with Debug mode (you have the Connection String into the project Properties -> Configuration Properties -> Debugging for the Debug mode)

The Release mode will be used by Business One when your addon will be registered and in this case you will receive the Connection String as command line argument.

Hope it helps

Trinidad.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Looks like the index 1 doesn´t exist. Perhaps it is 0 based, and you should try 0 instead of 1.

Did you insert the development connection string (see bellow) to the Command Line Arguments of your project?

0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056

Regards,

Ibai Peñ