简体   繁体   中英

MVC3 web site on IIS 6

When I try to deploy an ASP .NET MVC 4 web app on IIS 6, I get the error saying

Access to the web.config is denied.

Identity of the app pool of the web site : Network Service

The folder C:\\inetpub\\wwwroot\\ appname has full Control access by Network service. But I am confused whether this permission gets applied recursively.

How can I get the site working ?

Screenshot of the error

在此处输入图片说明

If you check the directory security of the website, see if it is set to anonymous. If it is, grant the IISUSR read access to the directory.

If it is windows authentication or some other method, and the .Net is set to impersonate, you will need to grant them access too.

HTH

Si

尝试将“应用程序池”设置设置为“默认池”或“ .Net Frame Work版本:4.0”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM