Skip to Content
author's profile photo Former Member
Former Member

Error: System.IndexOutOfRangeException

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 20, 2005 at 01:47 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 20, 2005 at 11:59 AM

    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ñ

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.