本文介绍了MVC5项目运行Monodevelop,但是Mono终端/命令无法运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在VS2012上开发了Asp MVC5项目.现在,我需要使用Mono在Linux上运行该项目.

我已经安装了Mono 3.2.3和Monodevelop 4.2.5.

我用Monodevelop成功构建了MVC5项目,当我在Monodevelop上使用调试/不调试运行时,它对我来说运行顺利.

但是当我使用Monodevelop部署该项目时.并使用Mono命令(xsp4).发生许多错误.例如:System.TypeLoadException无法从程序集"System.Web,版本= 4.0.0.0,文化=中性,PublicKeyToken = b03f5f7f11d50a3a"中加载类型"System.Web.UnvalidatedRequestValuesBase".

有人对我有同样的问题吗?我认为Monodevelop使用Mono运行吗?这个问题花了我3天的时间.但是现在,我仍然无法解决这个问题.请让我知道为什么?以及如何解决这个问题.谢谢大家.

解决方案

我假设当您说它与MonoDevelop一起运行时,您正在Windows上运行它,而错误仅在您使用Mono在Linux上运行时才发生. >

查看Mono源代码和状态页面似乎是系统.Web.UnvalidatedRequestValuesBase 尚未在Mono上实现.

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.TypeLoadExceptionCould 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.

解决方案

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.

这篇关于MVC5项目运行Monodevelop,但是Mono终端/命令无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 21:59