[asp.net core]The requested page cannot be accessed because the related configuration data for the page is invalid.

bug

HTTP Error 500.19 - Internal Server Error

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

解决办法

这是将asp.net core站的部署在iis上出现的错误,通过dotnet xxx.dll启动,可以看到kestrel,能正常进行访问,也能监听到请求信息,但通过iis代理时出现上面的错误。

最后发现是因为没有安装

DotNetCore.2.0.5-WindowsHosting.exe

猜你喜欢

转载自www.cnblogs.com/wolf-sun/p/9264528.html