简体   繁体   English

使用xsp在Mono / Linux下运行ASP.NET MVC

[英]Running ASP.NET MVC under Mono/Linux with xsp

I am porting an existing ASP.NET MVC applicationto Mono. 我正在将现有的ASP.NET MVC应用程序移植到Mono。 I am actually trying to make it run under Fedora Linux 11. 我实际上是想让它在Fedora Linux 11下运行。

After a few tweaks, I have managed to make the solution compile in MonoDevelop. 经过一些调整后,我设法在MonoDevelop中编译解决方案。

While trying to execute it with xsp web server, I get the following output: 在尝试使用xsp Web服务器执行它时,我得到以下输出:

Handling exception type ConfigurationErrorsException 处理异常类型ConfigurationErrorsException
Message is Error Initializing the configuration system 消息错误初始化配置系统
IsTerminating is set to True IsTerminating设置为True

I believe that the problem is in my web.config but I cannot find any more info on the exception. 我相信问题出在我的web.config中,但我找不到有关异常的更多信息。 Is there a log somewhere that could contain any more information? 某个地方是否有可以包含更多信息的日志?

Thanks! 谢谢!

Woo hoo! 呜啊!

I have managed to make it work. 我设法让它发挥作用。 As expected, the problem was in the web.config. 正如预期的那样,问题发生在web.config中。 To figure it out, I have had to test the same code in Windows with Visual Studio .NET. 为了解决这个问题,我必须使用Visual Studio .NET在Windows中测试相同的代码。

Still no way to know what's wrong with a web.config under XSP but it's not blocking me anymore. 仍然无法知道XSP下的web.config有什么问题,但它不会阻止我了。

try deleting the node and see if everything seems to working fine again.. 尝试删除节点,看看一切似乎再次正常工作..

maybe you can check over here for more details: ( http://fedoraproject.org/wiki/SELinux ). 也许你可以在这里查看更多细节:( http://fedoraproject.org/wiki/SELinux )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM