Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Cannot verify access to path (C:\inetpub\wwwroot)", when adding a virtual directory

Tags:

iis

iis-7.5

I am trying to set up IIS web services and ASP.NET services on Windows Server 2008 R2. The physical directory was created, but I cannot get it to work. This is a fresh IIS Role installation.

enter image description here

The server is on a domain, and domain\server$ has read/write/browse access to C:\inetpub\wwwroot. Read/write/browse access is also granted to:

  • Administrators
  • Network Services
  • Users
  • IIS_IUSRS
  • IUSR

What I have tried so far

  • In the Edit Virtual Directory -> Connect As dialog, select Application User (pass through authentication). When I press Test Settings, I get the above error.

  • In the Edit Virtual Directory -> Connect As dialog, select Specific user: IUSR (no password). When I press Test Settings, I get the following: enter image description here

Other Notes

Anonymous Authentication is Enabled, and Anonymous user identity is Application pool identity.

The Application pool configuration looks like this: enter image description here

In the web browser, http://localhost returns an blank page but no error.

Any help would be appreciated.

like image 834
John Dewey Avatar asked May 28 '12 04:05

John Dewey


People also ask

What is C :/ inetpub wwwroot?

The \inetpub\wwwroot subfolder of the inetpub folder contains all the web pages and content that will be published on the web. It is the default directory for publishing web pages.

How do I verify access to path in IIS?

Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that \$ has Read access to the physical path. Then test these settings again.

How do I create an Inetpub folder in Windows 10?

You could open IIS manager and check whether Default Website is always being placed In inetpub\wwwroot. So if the site exist, then you should be able to find the inetpub folder. If the folder is not created for some reason, please try to reinstall IIS via turn windows features on or off or "Add role and feature".


1 Answers

I was having the same issue till just now; just as you mentioned, I tried "Connect As" and the username and password that I wrote down, was my machine's user (IIS is running on this machine), I tested the connection and it works now. Maybe if you weren't using that machine's user (try user with administrator privileges), you should give it a try, it worked for me, it may work in your case as well.

like image 112
umais Avatar answered Oct 13 '22 05:10

umais