Title

Kodyaz Development Resources

Development resources, articles, tutorials, samples, codes and tools for .Net, SQL Server, Vista, etc.
Welcome to Kodyaz Development Resources Sign in | Join | Help
in Search

Eralper's Blog on Software Development



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

Hi,

I have downloaded and installed the Microsoft SQL Server 2008 February CTP (aka CTP 6) on my laptop successfully.

Later, I have downloaded the sample database AdventureWorks and sample XML applications from CodePlex. While running the XmlManuInstructions sample application, I created an other Windows Forms Application (actually we can consider it as an WCF - Windows Communication Foundation) and I get the following error message in the MS Visual Studio 2008.


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

After I have workes some on the IIS virtual directory and in the app.config file, I had finally find a way to work successfully with the default IIS security settings of the virtual directory.

The solution is related with the "security" tag where you can set the security mode, credentials, etc.


Alter the "<security mode="None">" to "<security mode="TransportCredentialOnly">" and "<transport clientCredentialType="Windows" proxyCredentialType="Windows" realm="" />" to "<transport clientCredentialType="Windows" proxyCredentialType="Windows" realm="" />"

Here is the working web config "security" tag settings in the app.config configuration file.



<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows" proxyCredentialType="Windows" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>



I hope this helps you if you have experienced the same problem in MS Visual Studio 2008 and Microsoft SQL Server 2008 (Katmai) sample XML application XmlManuInstructions.

Published Monday, February 25, 2008 7:53 PM by eralper
Filed Under: , , ,

Comments

No Comments
Anonymous comments are disabled
Copyright © 2004 - 2008 Eralper Yilmaz. All rights reserved.
Powered by Community Server, by Telligent Systems