An error occurred while accessing the resources required to serve this request.
asp.net, iis
Solution
I would suggest you to first allow all users in WebConfig
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
EDIT : As Mentionned by David Thompson, this is highly insecure. Use this only to unblock your test sample code scenario. Never in Production, please.
Problem
I am trying to setup an asp.net website in localhost. Fitst, I enabled IIS server and created website in C:\inetpub\wwwroot folder and ran to ensure IIS is properly setup. In this case I used a existing website I created from visualstudio IDE. Everything was perfect. In this case I heavily used the following article. http://forums.asp.net/t/1689133.aspx Now the problem is I have a web site I downloaded from a remoteserver and I want to host it in localhost. When I compare the site I downloaded and the working site, I noticed that some files are missing. Howevere, the site in remote sever is working properly. I didnt see a bin folder and there is no much information on web.config file. Here is the code in web.config file ``` <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".json" mimeType="application/json" /> </staticContent> </system.webServer> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </configuration> ``` When I try to do the same process I did for the previous website and tried the browser then I get following erro. ``` Access is denied. Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL. Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance. ``` Where is the error ? How to fix this issue? If you want more information let me know?