ASP.NET MVC网站:对象移到这里 [英] ASP.NET MVC Website: Object Moved to Here

查看:111
本文介绍了ASP.NET MVC网站:对象移到这里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆