Showing posts with label Error. Show all posts
Showing posts with label Error. Show all posts

Thursday, June 11, 2009

unable to start debugging on the web server because Integrated windows

Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled. Please see Help for assistance.
Posted by admin 14 November, 2008
Error : “Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled. Please see Help for assistance.”
Fix : This error usually comes when you are using asp.net with IIS and try to debug the application. To fix it, you need to goto IIS - > Select your Virtual Directory -> Right-Click -> Properties -> Directory Security Tab -> Press the top most Edit button -> In the next form Check the lower most check box saying “Integrated Windows Authentication” and it will work.

Thursday, February 12, 2009

The request failed with HTTP status 401: Access Denied

Pada saat kita akses web service tiba-tiba terjadi error "The request failed with HTTP status 401: Access Denied" ini disebabkan setting IIS kita belum benar. Langkahnya : (sumber http://geekswithblogs.net/ranganh/archive/2006/02/21/70212.aspx)

We can resolve this issue by either of the following ways:
Enabling Anonymous Access in the IIS Directory SecurityTo do this, the following steps will help you.
1. Click "Start" - "Run" - Type "inetmgr" and press "Ok" or "Enter" Key
2. IIS Control panel opens.
3. Expand the appropriate nodes and navigate to the virtual directory of your Web Service Application.
4. Select the Virtual directory, Right Click and select "Properties"
5. Switch to the "Directory Security" Tab and then Click "Edit".
6. Check the "Anonymous Access" CheckBox.
7. Click "Ok" twice to exit.This should solve the issue.

2. Programattically assigning the Credential CacheIn case you dont have access to change the IIS Settings or you just dont want to allow anonymous because other applications are using it, then you can programatically provide the permissions by specifying the credential cache.Let us assume we have a Webservice, Service which has the default Web Method HelloWorld. Let us see the steps involved in accessing the service.Service Service1 = new Service();Service1.PreAuthenticate = true;Service1.Credentials = System.Net.CredentialCache.DefaultCredentials;Response.Write(Service1.HelloWorld());As you can see, we are passing the CredentialCache object for the Service1.This would ensure that we preauthenticate the access to the Service. This would be applicable in the case of Integrated Windows Authentication scenarios.Cheers and Happy Programming !!!
-->

Topik