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

404 when using System.Web.Hosting on windows service

P: n/a
Hi all!!!
I am trying to build a windows service that hosts a web service using the
classes in System.Web.Hosting namespace. I have a class library called
Digicard.WebServiceHost containing the code for hosting the web service and
I've got a windows forms host (for debugging porposes) and a windows service
host (the definitive exe). The issue here is that when I run the windows
forms app it serves the web service correctly, but when I run the windows
service it allways gives a 404 error. Note: the windows service runs with
local system credentials.
What's the problem here? how do I get the windows service serving the web
service correctly? and how do I set permissions for the asmx files are
served by an application using the System.Web.Hosting classes?

Thanks in advance
Mar 12 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Diego,

Can you run your windows service as NETWORK SERVICE account?

Eugen

"Diego L Espiñeira" wrote:
Hi all!!!
I am trying to build a windows service that hosts a web service using the
classes in System.Web.Hosting namespace. I have a class library called
Digicard.WebServiceHost containing the code for hosting the web service and
I've got a windows forms host (for debugging porposes) and a windows service
host (the definitive exe). The issue here is that when I run the windows
forms app it serves the web service correctly, but when I run the windows
service it allways gives a 404 error. Note: the windows service runs with
local system credentials.
What's the problem here? how do I get the windows service serving the web
service correctly? and how do I set permissions for the asmx files are
served by an application using the System.Web.Hosting classes?

Thanks in advance
Mar 15 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.