System.Net.Sockets.SocketException when using in service
Posted by Van Glass on 15 March 2007 10:53 PM
If when running as a service you get the following error:

"An attempt was made to access a socket in a way forbidden by its access permissions"

Open Control Panel | Administrative Tools | Local Security Policy, select Local Policies and then User Rights Assignment from the tree "Act as part of OS" should be the second entry on the right hand pane Control Panel. Add the account you are running the service as to this list.
(291 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako fusion