Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

Here iam facing little bit Tricky Problem.I developed two Projects one is Windows Service that service runs in Server Environment.To start the Windows Service i created the asp.net Web Application From web application iam starting the Windows Service.The Windows Service and Web Application Both is Working Perfectly in local Environment.But when i host the Web Application in IIS Then iam Trying to Start Service i kept log file in that file iam seeing the Error.

Error : Login as Adiministrator to run the Sms Service:

This is the Expection Message which Thrown by ServiceController.

So please if any body know regarding this please share with me.


Regards,


AnilKumar.D
Posted
Comments
Sergey Alexandrovich Kryukov 6-Aug-13 1:17am    
You should discuss this problem with your hosting company. Chances are, you cannot do it. The features you can use under the shared hosting plans are very limited. If you can use (expensive) VPN hosting, it's the different story...
—SA
Anil Honey 206 6-Aug-13 1:20am    
But in Local IIS only the Problem came so where should i change the Setting of IIS to run the Windows Service
Sergey Alexandrovich Kryukov 6-Aug-13 1:24am    
Yes, but in shared hosting your options are limited by the package you are using. Are you using the shared service? Can you discuss it with customer control of your hosting provider?
—SA
Anil Honey 206 6-Aug-13 1:26am    
Till now i have not hosted in any Hosting panel to test the application i hosted the application in my local computer (iis) there its getting error login as administrator to run the sms service.
Sergey Alexandrovich Kryukov 6-Aug-13 1:28am    
Than I don't understand what is "hosted environment"... Well, run as administrator then... Is it Windows 7 or what?
—SA

1 solution

It looks like the problem is: you don't know how to run something with elevated privileges in Windows 7. Please read this:
http://www.sevenforums.com/tutorials/11841-run-administrator.html[^].

You should also understand UAC: http://en.wikipedia.org/wiki/User_Account_Control[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900