IIS - adding a website : HTTP Error 401.3 - Unauthorized access - asp.net

I have added a website on my IIS manager and assigned the port 90 to it in the Binding section. When I try to access it on a browser, I get the following error
HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
I have added a new user IIS_IUSRS to the web.config file, the folder containing the files as well as the the site on the IIS manager and given it all permissions.
However, this error does not go away.
Any suggestions?

Give access to network service account on your app folder

Related

IIS Express Folder rights

I have created a Web application. i need to add 2 virtual directories. i have gone to the properties of the application and in the web tab i have created the 2 directories. i have the run the site and gone into the IIS express config and changed the physical path of the 2 directories. the directories are mapped from a server.
when i run the site i get "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."
how do i know which user is IIS express is using to know how to give access to the directories?
Thanks
Gareth

Unable To Browse or Run Uploaded Project Using IIS Server

I am trying to publish an ASP.NET MVC web application locally using IIS server. The files of the application are uploaded but whenever I run the application in the browser (localhost/WebApp), get the following exception:
HTTP Error 500.19 - Internal Server Error
The Request page cannot be accessed becasue the related configuration data for
the page is invalid.
Module: IIS Web Core
Notification: BeginRequest
Handler: Not yet determined
Error Code: 0x80070005
Config Error: Cannot read configuration file due to insufficient permissions
Config File: \foo\web.config
Request URL: http://localhost/WEBAPP
Logon Method: Not yet determined
Logon User: Not yet determined
Config Source
-1:
0:
I've tried to google and tried to follow this link but seems like need some advice to resolve it: (Clearly unable to understand)
Troubleshoot IIS Issue
Do I need to configure anything else in the Web.config file or in the IIS server?
It seems like you don't have Windows Permission to read the Web.config file and I believe, you don't have to change anything in the Web.config file.
In IIS server, add a user IIS_IUSRS using the security tab in the edit permissions sections. It'll allow all the user to access that file. If you ask about the IIS_IUSRS, it means when a web project is run on the IIS server, it associates the application pool with a user like local system, network services. So make sure about it.

Unauthorized error on control F5

I have hosted single html page in IIS. When I open it using url (http:myipaddress/test.html) it works fine but when I press Ctrl + F5 it gives me error.
HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of
the access control list (ACL) configuration or encryption settings for
this resource on the Web server.
also it doesn't open in other PCs in domain server. I have given read/write permission to few users in network and added IIS_IUSRS user as well.
My issue was around the identity used in the app pool. I changed the site's Authentication to "Application pool identity" as well as giving the directory the appropriate permissions.
Copied from here

how to publish web service in v.s 2012 on local machine

1- I've publish web service in v.s.2012 and automatically creates the .zip file.
2- but in IIS , after clicking 'browse' option the i got "HTTP Error 401.3 - Unauthorized. You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server."
Make sure the IUSR account has enough permission on the wwwroot folder. It is the default user for anonymous authentication. (Rightclick on wwwroot -> properties -> security -> select IUSR)
EDIT:
Also found this post with the same Problem, also explaining the above posible solution and others, maybe this helps:
ASP pages in IIS using Localhost 401.3 Error do not have permission

HTTP Error 500.19 - Internal Server Error while attempt to browse web application

On my attempt to access my site from IIS, i am getting following error.
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Module: IIS Web Core
Notification: Unknown
Handler: Not yet determinedError Code
Error Code: 0x80070005
Config Error: Cannot read configuration file due to insufficient permissions
Logon Method:Not yet determined
Logon User:Not yet determined
I am not sure what to do. I have already given full control to mycomputerName\ISS_IUSRS for applicationHost file in C:\Windows\System32\inetsrv\config. Also, I have given full control to mycomputerName\ISS_IUSRS for applicationHost file to my solution folder and web.config file. However, when I click on my application from IIS and attempt to browse it by clicking on manage Application\browse, I am still getting this error.
If anyone could help me, that would greatly be appreciated,
Thanks
This problem mostly occurs when the IIS application don't have the permission to the read the application configuration files. IIS application uses the IIS_IUSRS user to read the Web application.
The IIS_IUSRS user will have default read and execute access for the folder C:\inetpub\wwwroot\ once when you install the IIS. Kindly copy your Web Application folder to the above mentioned directory and give the read access or full control(if the IIS_IUSRS don't have the read and execute permission) for the IIS_IUSRS to your application folder.

Resources