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

前端 未结 3 849
孤城傲影
孤城傲影 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:50

    One reason could be the version of .NET framework (on ISS or application pool level) is different from the application one.

    Another reason could be if there are modules used in your web.config which the current configuration of IIS doesn't 'recognize'. E.g. URL rewrite or other optional modules, which you have to explicitly enable before using.

提交回复
热议问题