472,141 Members | 1,494 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,141 software developers and data experts.

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 1668
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.