Razor Host Factory error

后端 未结 9 1682
心在旅途
心在旅途 2020-12-25 12:00

I get a MvcWebRazorHostFactory error trying to run my app, but it\'s not an MVC app at all. I have the following web packages installed via nuget:

Microsoft         


        
9条回答
  •  青春惊慌失措
    2020-12-25 12:52

    So apparently some package I got from nuget adds a web.config to the Views folder. In this web.config there were settings for the MvcWebRazorHostFactory. I think this occurred when I added a View to my project using the dialog box.

    The solution is to remove the web.config from the Views folder.

提交回复
热议问题