Monday, January 28, 2013

Error message 401.3: You do not have permission to view this directory or page using the credentials you supplied (access denied due to Access Control Lists)



Site authentication issue:

Deploy an site to IIS, get following Error:


Access is denied.

Description: An error occurred while accessing the resources required to serve this request. You might not have permission to view the requested resources.

Error message 401.3: You do not have permission to view this directory or page using the credentials you supplied (access denied due to Access Control Lists). Ask the Web server's administrator to give you access to 'C:\yourdir\NewRnD\AjaxDeploy\default.aspx'
Solution:
check this link.

The IUSR account is similar to LOCALSERVICE in the manner in which it acts anonymously on the network. The NETWORKSERVICE and LOCALSYSTEM accounts can act as the machine identity, but the IUSR account cannot because it would require an elevation of user rights. If you need the anonymous account to have rights on the network, you must create a new user account and set the user name and password manually, as you did in the past for anonymous authentication.
To grant an anonymous account rights on the network by using IIS Manager:
  1. Click Start, type INetMgr.exe, and then click Enter. If prompted, click Continue to elevate your permissions.
  2. In the Connections section, click the + button next to the name of your computer.
  3. In IIS Manager, double-click the site that you want to administer.
  4. In the Features View, double-click Authentication.
  5. Select Anonymous Authentication, and then click Edit in the Actions pane.
  6. In the Edit Anonymous Authentication Credentials dialog box, click the Specific user option, and then click Set.
  7. In the Set Credentials dialog box, input the user name and password desired, and then click OK.



Fix "HTTP Error 500.21 - Internal Server Error"


HTTP Error 500.21 - Internal Server Error

Handler "ExtensionlessUrlHandler-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list


Run command from CMD (with administrator):
"C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -i"



Asp.net-Unable to start debugging on the web server. IIS does not list a web site that matches the launched URL

Solve the problem “Unable to start debugging on the web server. IIS does not list a web site that matches the launched URL.” When running web application using visual studio in asp.net.

1) Run VS as administrator
2) enable IIS Metabase and IIS 6 configuration compatibility

3) add debug attribute to Web.Debug.config (not 100% sure this is needed)
 <system.web>
      <compilation targetFramework="4.0" batch="false" debug="true">
      </compilation>
  </system.web>