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

C# - WFC Web Svc - Login failed after deployment to localhost

P: 1
Hi All,

I have written a web service that works fine in development and fails when deployed to my localhost. The development solution is configured as:
Business Object Project
Service Project (interface & implementation)
Service Host Project (a console app)
Service Client Project (a winforms app)

When I deploy the service to my localhost and host it in IIS, I can browse to the service and it gives me the "service test page" that has instructions on how to use svcutil.exe to generate a client proxy. I can also query the WSDL from the service.

I created a winforms client using the svcutil.exe gen'd class and added a service reference to the local service. When I try to call the service, I get an exception "{"Login failed for user '<DOMAIN>\\MACHINENAME$'."}.

Apparently, the service is being called under the context of the Windows Machine Account. My OS is Vista Business with IIS 7. I have no clue as to how to tell IIS 7 to allow public (i.e. anonymous) access to the service.

Any suggestions? Thanks!!!

Jul 18 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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