Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

401 Error on Windows 2003 Server Accessing Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen - 10 Nov 2004 11:54 GMT
Hi.

I have a web service running on 2003 Server.

The client app running on the same machine gets a 401 error, but
browsing the web service in IE poses no difficulty - even on other
machines.

The virtual directory the web service runs under allows anon access
and runs as the ASPNET user. This is so the web service can write to
the event log without me having to raise the permissions on the IUSR
account.

The web site is running as the NETWORK SERVICE.

Impersonation is on in the web.config.

If I use the IUSR account there is no problem with access but the
event log is untouchable.

Not sure what to do about this.

Any suggestions?

Help appreciated.
Stephen - 10 Nov 2004 22:44 GMT
Me again.

The problem was the omission of the following in the web.config

<system.web>
  <authentication mode="None"/>
</system.web>

I have never needed to use this before on web services so I guess this
might be a security feature of 2003 server.

Thanks to all who looked.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.