MVC5 project run Monodevelop, but Mono terminal/command cannot run

半世苍凉 提交于 2019-12-11 10:09:03

问题


I have developed Asp MVC5 project on VS2012.Now i need this projet run on linux with Mono.

I have installed Mono 3.2.3 and Monodevelop 4.2.5.

I successfully build MVC5 project with Monodevelop, and it works smoothly for me when I run with debug/without debug on Monodevelop.

But when i deploy this project using Monodevelop. And using Mono command (xsp4). Many errors occured. For example: System.TypeLoadException Could not load type 'System.Web.UnvalidatedRequestValuesBase' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Anyone have same problem with me ? I think Monodevelop using Mono for running ? This problem took me 3 days. But now, i still cannot solve this problems. Please let me know why ? and how to solve this problem. Thanks all.


回答1:


I am assuming that when you say it runs with MonoDevelop you are running this on Windows and the error only occurs when you run it on Linux using Mono.

Looking at the Mono source code and the status page it seems that the System.Web.UnvalidatedRequestValuesBase is not yet implemented on Mono.



来源:https://stackoverflow.com/questions/23884792/mvc5-project-run-monodevelop-but-mono-terminal-command-cannot-run

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!