Asp.net Error 401.1
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up HTTP Error 401.1 - Unauthorized from Local IIS up vote 16 down vote favorite 11 I have created site on my local machine that works fine on debug mode but when i put the site on local iis (7.5) of my machine i get HTTP Error 401.1 - Unauthorized You do not have permission to view this directory or page using the credentials that you supplied. Authentication Settings I have windows impersonation and windows authentication enabled and everything else in that section is desiabled All the folder have full permissions Can anyone tell me whats going on. Thanks Owais c# iis-7 share|improve this question asked Oct 8 '10 at 16:36 devforall 1,809112641 Maybe your Windows event log will provide some more insight. It usually contains some extra information for these kinds of errors. –Ronald Wildenberg Oct 8 '10 at 16:38 you can also turn on web site logging and look in the IIS web logs, not sure if they would provide more info or not. –BlackICE Oct 8 '10 at 17:01 add a comment| 1 Answer 1 active oldest votes up vote 23 down vote As a quick and dirty fix, grant the IIS_IUSRS group Read/Execute or Modify permissions to your web folder... BUT DON'T DO THIS ON AN INTERNET FACING SERVER, read on.... To fix this properly you should grant the Application Pool Identity for your site Read/Execute or Modify permissions to your application's web folder. To do this: Open IIS Manager, navigate to your website or application folder where the site is deployed to. Open Advanced Settings (it's on the right hand Actions pane). Note down the Application Pool name then close this window Double click on the Authentication icon to open the authentication settings Disable Windows Authentication Right click on Anonymous Authentication and click Edit Choose the Application pool identity radio button the click OK Select the Application Pools node from IIS manager tree on left and select the Application Pool name you noted down in step 3 Right click and select Advanced Settings Expand the Process Model settings and choose ApplicationPoolIdentity from
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error 401 for my ASP.NET app on IIS 6.0 up vote 1 down vote favorite http://stackoverflow.com/questions/3892547/http-error-401-1-unauthorized-from-local-iis I've just wrote a legacy app on IIS 6.0 (.NET 1.0, don't even ask why!). One of the requirements is to have "Integrated Windows Authentication" disabled on the Virtual directory. http://localhost/test.html When I disable that, I get a error 401.1 on the IIS root's test.html, which consists of "Hello World" You are not authorized to view this page You do not have permission to view this directory or page using the http://stackoverflow.com/questions/20570926/error-401-for-my-asp-net-app-on-iis-6-0 credentials that you supplied. Please try the following: •Contact the Web site administrator if you believe you should be able to view this directory or page. •Click the Refresh button to try again with different credentials. HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials. Internet Information Services (IIS) When IWM is enabled, the website works like a gem. Does anyone know what is the root cause? This doesn't appear to be an issue with my app since even the default test.html fails with authentication asp.net iis iis-6 http-status-code-401 share|improve this question asked Dec 13 '13 at 16:10 Kyle 48841430 1 microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/… perhaps? –Joachim Isaksson Dec 13 '13 at 16:16 Anonymous access was already enabled by default –Kyle Dec 13 '13 at 16:27 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote You will most likely need to set the correct folder permissions for the 'Anonymous' user on the folder you are accessing. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/f594e137-e2da-4b22-ab58-f8edba938802.mspx?mfr=true edit: this is the more relevant link: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9ded7af2-fcb7-4ed2-b007-e19f971f6e13.mspx?mfr=true share|improve this answer answered Dec 13 '13 at 16:17 Rudi 1,9011430 IUSR_CATXXXXXX was already added to C:\Inetpub\wwwroot with Read & Execute, List Folder Contents and Read permissions. test.html sits under C:\Inetpub\wwwroot\test.html –Kyle Dec 13 '13
have permission to view this directory or page using the credentials that you supplied. I am trying to configure asp.net error intranet site on IIS 7(its in compatibility mode 6) . I get the login pop-up .. But when I login(same credentials I used to login into the system). asp.net error 401.1 I get the error (see attachment) . I have checked everything 1) application pool user IUser, gave ful access to it.2) Windows acc is enables and anonymous as well3) Gave current user the access right for the wen directory.Strange thing is , I managed to configure the site on preview with same environment. am I missing anything? By: Abhishek November 27 2013, 15:40 Hi, Below link help me to solve the above issue. http://stackoverflow.com/questions/17466665/windows-authentication-not-working-on-local-iis-7-5-error-401-1 First 1 Last © Episerver 2016 | About Episerver World