NerdyHearn
Home
Blog

Contact
Mailing List

Software

Active Directory Products
Object Compare
Permission Compare

IPhone Products
Calls To Calendar
SMS To CSV
SMS To Gmail
Voicemail To Gmail

Sites
DocuTerminal
How Long For Me
My Music To Me
SaveMySerials
TypeCount

Blog
Twitter

NerdyHearn - Blog


<< Back To All Blogs

SharePoint Web Services, .NET 3.5, and Authentication Issues

Thursday, April 9th, 2009

The .NET Framework 3.5 has changed how it invokes and discovers web services, and as a result you may find yourself struggling with some properties and fields that in the past you were used to finding in the proxy class of the web service itself.

I had just this problem when it came to security settings and the user that I was authenticating as while trying to call an authenticated web service.

After quite a few searches on Google I was able to piece together the fix to the problem.

The error that I was receiving was as follows:

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.

In order to change this, you need to go to the app.config created when you bind to a web service, and change the security section to the following:






Rebuild the project and you should be good to go with an authenticated web service call.

Web Servicin' Tom Out.

Tags

SharePoint CSharp

Related Blogs

SharePoint STSADM AddSolution Object Reference not set to an Instance of the Object error
Web form to help audit permissions in SharePoint 2007/MOSS
Receiving "The specified file is not a valid spreadsheet or contains no data" when importing to Office 365
Adding a Custom ASP.NET Page to MOSS/WSS
Resolving "Tracing Service lost trace events" in MOSS 2007

Comments

Currently no comments.

Add A Comment

Name:


URL:


Email Address: (not public, used to send notifications on further comments)


Comments:



Enter the text above, except for the 1st and last character:


NerdyHearn - Latest tech news relating to C#, ASP.NET, SharePoint, PHP, general development, and more. DocuTerminal - Online Filing Cabinet solution. Scan, search and archive your paper documents. SaveMySerials - Protect yourself from theft, fire, natural disasters and more by recording your serial numbers My Music To Me - Stream your subsonic music collection to your Sonos wireless system TypeCount - Count how often you type across different computers! ServrTrackr - Monitor your SSL certificates, website uptime, and DNS configurations