469,077 Members | 1,380 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,077 developers. It's quick & easy.

Error starting Windows Service written in VB.NET

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
Nov 21 '05 #1
1 1608
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.

"amirmira" wrote:
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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Ahmed Perlom | last post: by
4 posts views Thread by Jason Richmeier | last post: by
1 post views Thread by =?Utf-8?B?cm9zczYxMw==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.