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

部署.NET Core至IIS常遇上的问题:

HTTP Error 500.19 - Internal Server Error

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

发生在:IIS Web core

 

解决方法:
先参考这篇:

https://docs.microsoft.com/zh-cn/aspnet/core/tutorials/publish-to-iis?view=aspnetcore-5.0&tabs=visual-studio

其中有一个链接,是下载:

当前 .NET Core 托管捆绑包安装程序(直接下载)

 

下载之后,安装在IIS服务器上。

 

 

 

重启服务,异常解决。

posted @ 2020-11-15 11:36  Insus.NET  阅读(1110)  评论(1编辑  收藏  举报