By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,899 Members | 1,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,899 IT Pros & Developers. It's quick & easy.

.net 1.1 Windows Service in Windows Server 2008

Ravi L
P: 12
Hi there, I need to get a windows Service developed in .net 1.1 to work on a Windows Server 2008 R2 environment. The service runs perfectly, but the issue is passing the arguments. The service is run from a procedure using
Expand|Select|Wrap|Line Numbers
  1. net Start servicename arg1 arg2
The issue am facing is, the arguments are not captured in the Service onstart event. This used work fine all these days in Windows server 2003 but now the arguments are not captured when run in Windows Server 2008.

Additionally, if the service is developed in .net 2.0 it works fine on Windows server 2008. the issue is only with reading the arguments passed using net start command. All other functionalities work fine.

Any inputs will be greatly helpful.
Sep 20 '12 #1
Share this Question
Share on Google+
1 Reply


100+
P: 293
Can you try with 'Run as administrator' option.
Sep 26 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.