ASP.NET MVC网站:对象移到这里 [英] ASP.NET MVC Website: Object Moved to Here
问题描述
我已经构建了一个ASP.NET MVC Web应用程序,它可以在本地机器上正常工作。
当我发布它时,它会创建一个Roslyn目录(如安装了NuGet包Microsoft.CodeDom.Providers.DotNetCompilerPlatform)。
当我卸载NuGet打包Microsoft.CodeDom.Providers.DotNetCompilerPlatform,我调试网站,我得到错误对象移到这里。
我也遇到同样的错误,当我将网站上传到安装了NuGet软件包的服务器并浏览到它。
事件日志中没有任何内容。控制器似乎运行良好。
有什么想法?
感谢您的提前支持。
I have built an ASP.NET MVC web application which works OK on my local machine. When I publish it, it creates a "Roslyn" directory (as NuGet package Microsoft.CodeDom.Providers.DotNetCompilerPlatform is installed).
When I uninstall NuGet package Microsoft.CodeDom.Providers.DotNetCompilerPlatform, and I debug the web site, I get the error "Object moved to here".
I also get the same error when I upload the website to the server with the NuGet package installed and browse to it.
Nothing in the event log. Controllers seem to run OK.
Any ideas?
Thanks is advance.
I found that the MVC views had string interpolations in them (which you can't do in the absence of Roslyn) and weren't reporting any exceptions. Fixed it!
这篇关于ASP.NET MVC网站:对象移到这里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!