ServiceStack Razor - “Forbidden” error for default document

强颜欢笑 提交于 2019-12-04 17:06:34

This ultimately appears to be some bad cached DLL or setting. Steps to resolve:

  • Analyzed debug information on the page displaying "Forbidden" by appending ?debug=requestinfo to the URL. This is a handy tool described in the ServiceStack online docs.
  • Stopped IIS Express and shutdown Visual Studio.
  • Cleared temporary ASP.Net files by deleting the contents of C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
  • Removed & reinstalled the two offending NuGet packages, Microsoft.AspNet.WebPages and ServiceStack.Razor.
  • Cleaned & rebuilt, and happiness.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!