use*_*216 6 c# linux asp.net asp.net-mvc mono
Debian Sid,Mono 3.0.我正在尝试运行mvc应用程序(它在将mono升级到3.0之前有效).这是抛出的异常:
Exception caught during reading the configuration file:
System.MissingMethodException: Method not found: 'System.Configuration.IConfigurationSectionHandler.Create'.
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000] in <filename unknown>:0
at Mono.WebServer.Apache.Server.get_AppSettings () [0x00000] in <filename unknown>:0
at Mono.WebServer.Apache.Server+ApplicationSettings..ctor () [0x00000] in <filename unknown>:0
Run Code Online (Sandbox Code Playgroud)
我还发现了在/ usr/bin/mod-mono-server4中进行更改的提示:
#!/bin/sh
exec /usr/bin/mono $MONO_OPTIONS "/usr/lib/mono/4.0/mod-mono-server4.exe" "$@"
Run Code Online (Sandbox Code Playgroud)
至:
#!/bin/sh
exec /usr/bin/mono $MONO_OPTIONS "/usr/lib/mono/4.5/mod-mono-server4.exe" "$@"
Run Code Online (Sandbox Code Playgroud)
不幸的是,没有这样的文件:/usr/lib/mono/4.5/mod-mono-server4.exe(/usr/lib/mono/4.5/目录中没有这样的文件).
你有什么想法有什么不对吗?我的应用程序是ServiceStack简单网页,它适用于单声道2.10.但升级到3.0后它不再起作用了.
您需要为该文件添加符号链接
# ln -s /usr/lib/mono/4.0/mod-mono-server4.exe /usr/lib/mono/4.5/mod-mono-server4.exe
Run Code Online (Sandbox Code Playgroud)
这样它仍将使用mod-mono-server4.exe但使用4.5 dll
| 归档时间: |
|
| 查看次数: |
3399 次 |
| 最近记录: |