Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Authentication - aspx -> .dll -> web service

Status
Not open for further replies.

notrut

Programmer
Feb 6, 2002
87
CA
Hi,

I am receiving this error when I consume a web service from a C# assembly:

The request failed with HTTP status 401: Unauthorized.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.


I am trying to return User.Identity.Name from a web service via a .dll called from an .aspx page.

The web service works fine directly from the .aspx page, however not through the assembly.

Any ideas??

Any help would be greatly appreciated.

Thanks.


 
I would guess then that you're webserice is set up to require windows authentication and no anonymous access and your site is set up with anonymous access and isn't passing credentials through. Only an initial quick guess mind :)

Rhys
The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense Edsgar Dijkstra

Church of the Flying Spaghetti Monster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top