Error starting Windows Service written in VB.NET

G

Guest

I have developed a service in VB.NET that accepts startup parameters.
Everything works fine on my machine, but when I deploy the service on another
machine, I get the following error when I try to start the service:

Specified argument was out of range of valid values. Parameter name:newAddress

Any idea why I am getting this error? I read somewhere that this could be a
result of improper memory allocation for dynamic arrays - and the only
dynamic array I can think of in this application is the args() parameter on
startup. If this indeed is an issue, how do I get around this.

Thanks in advance.
Ajay Mirmira
 
G

Guest

Never mind. I found the issue. The error was due to the fact that I was using
the System.Net.IPAddress.Parse method on an invalid IPAddress.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top