471,088 Members | 1,282 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Need some help for sending custom commands from ASP.NET page

Hi everyone,
I have been developing a project that is composed of one windows
service and one ASP.NET web site. The windows service and ASP.NET web
site reside on the same server.
I want to send start/stop service commands and custom commands to the
Windows service from ASP.NET Web site.
What I have done is :

* I read in a site that an web site user get credential of a user
"Network Service" at the server so I run the service with account
"Network Service"
* I give full control for user "Network Service" on Windows Service
executable .
What I get at the web site when I try to start/stop Service or send
custom commands is "access denied' error.
Should I programmatically get any priviledges? What should I do?
Best regards
B. Erbil KONUK
Jun 27 '08 #1
2 904
I'd probably use .NET remoting to control the service remotely. Oddly enough
that's what the project does I have open right now. Also, there's quite a
few remoting examples out on the internet if you're unfamiliar with it.
"erbilkonuk" <er********@gmail.comwrote in message
news:98**********************************@t54g2000 hsg.googlegroups.com...
Hi everyone,
I have been developing a project that is composed of one windows
service and one ASP.NET web site. The windows service and ASP.NET web
site reside on the same server.
I want to send start/stop service commands and custom commands to the
Windows service from ASP.NET Web site.
What I have done is :

* I read in a site that an web site user get credential of a user
"Network Service" at the server so I run the service with account
"Network Service"
* I give full control for user "Network Service" on Windows Service
executable .
What I get at the web site when I try to start/stop Service or send
custom commands is "access denied' error.
Should I programmatically get any priviledges? What should I do?
Best regards
B. Erbil KONUK
Jun 27 '08 #2
hey,

Just make a web service handle it for you.

Regards,
Behdad
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

17 posts views Thread by freemann | 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.