添加虚拟目录时,“无法验证对路径的访问(C: inetpub wwwroot)”

我正在尝试在 Windows Server 2008 R2上建立 IIS 网络服务和 ASP.NET 服务。已经创建了物理目录,但是我无法让它工作。这是一个新的 IIS 角色安装。

enter image description here

服务器位于域上,域服务器 $具有对 C:\inetpub\wwwroot的读/写/浏览访问权限。读/写/浏览访问权限也授予:

  • 行政人员
  • 网络服务
  • 用户
  • IIS _ IUSRS
  • IUSR

我到目前为止所做的努力

  • Edit Virtual Directory -> Connect As对话框中,选择应用程序用户(通过身份验证)。

  • Edit Virtual Directory -> Connect As对话框中,选择特定用户: IUSR(没有密码): enter image description here

其他注释

启用匿名身份验证,匿名用户标识是应用程序池标识。

应用程序池配置如下: enter image description here

在浏览器中,http://localhost返回一个空白页面,但没有错误。

如果你能帮忙,我将不胜感激。

194587 次浏览

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.

Try to go back to the internet information services, right clink on the intranet you created and select edit permission.

When the wwwroot pop up windows open, select the sharing tab and click "share" on the drop down menu select the users and their permission level or just select everyone and for permission read and Right

I had the same problem and couldn't figure it out for almost a day. I added IUSR and NetworkService to the folder permissions, I made sure it was running as NetworkService. I tried impersonation and even running as administrator (DO NOT DO THIS). Then someone recommended that I try running the page from inside the Windows 2008 R2 server and it pointed me to the Handler Mappings, which were all disabled.

I got it to work with this:

  • Open the Feature View of your website.
  • Go to Handler Mappings.
  • Find the path for .cshtml
  • Right Click and Click Edit Feature Permissions
  • Select Execute
  • Hit OK.

Now try refreshing your website.

I have the same problem and the solution was uncheck the "use ports 80 and 443" on skype advanced configuration!

I think the best solution to this problem can be found here: IIS_IUSRS and IUSR permissions in IIS8 This a good workaround but it does not work when you access the webserver over the Internet.

Click on "Connect as" and select "specific user", then type in the credentials of your user (I used the admin of the server).

ACCESSING LOCAL WEBSITE WITH IIS without Physical Path Authentication

  1. Make sure you have installed URL Rewrite to your IIS Manager

enter image description here

  1. Open the URL Rewrite application then navigate to Inbound Rules>Import Rules

enter image description here

  1. To import the rule, click the browse button then locate your .htaccess file then click import button

enter image description here

  1. The text labeled with red are errors that are not accepted by IIS, so you have to remove them by clicking the errors in the converted rules and remove the text from the rewrite rules. Once you have get rid of the errors Click the APPLY button located at the top right corner. Then try to access your site without engaging users into the pool auth.

enter image description here

I hope it helps. That's what I did.

I had this error because I hadn't installed ASP.NET through Server Roles and Features. Added that and it all worked as expected

I solved the problem by installing the development related features of IIS.

By default, IIS doesn't install all the required features.

You should install the IIS development related features to fix the problem.

enter image description here