The requested page cannot be accessed because the related configuration data for the page is invalid

前端 未结 3 878
孤城傲影
孤城傲影 2021-01-04 11:06

I am getting this error when I try to run an ASP.NET application without a web.config file.

The requested page cannot be accessed because the related

3条回答
  •  一向
    一向 (楼主)
    2021-01-04 11:27

    This can be a reason:

    If there is no Web.config file in the UNC directory, IIS 7.0 uses the rules that are defined for the parent directory. For the Web content to be served in this scenario, the worker-process identity must have access to the whole content directory. Otherwise, the Web request is rejected.

    Details here.

提交回复
热议问题