Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

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

Reply
 
Old 05-16-2008   #1 (permalink)
erbilkonuk


 
 

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

My System SpecsSystem Spec
Old 05-16-2008   #2 (permalink)
Jeff Winn


 
 

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

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" <erbilkonuk@xxxxxx> wrote in message
news:98b31be6-73ef-4a66-92e8-d9859bcb30ee@xxxxxx
Quote:

> 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
My System SpecsSystem Spec
Old 05-18-2008   #3 (permalink)
behdad


 
 

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

hey,

Just make a web service handle it for you.

Regards,
Behdad
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: IE8 Send Page/Link Commands Do Not Work Live Mail
Can't create a custom page size Vista print fax & scan
Custom Page Size Vista print fax & scan
Custom Speech Commands Vista General
Voice Recognition - Custom Commands? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46