Mono xsp4和asp.net 4.5的MissingMethodException

Mono xsp4和asp.net 4.5的MissingMethodException,mono,asp.net-4.5,xsp4,Mono,Asp.net 4.5,Xsp4,我正在尝试用xsp4测试一个网站,所有程序集都是为目标框架4.5编译的。我得到以下堆栈跟踪。 TraceManager初始化期间出现异常: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the ty

我正在尝试用xsp4测试一个网站,所有程序集都是为目标框架4.5编译的。我得到以下堆栈跟踪。 TraceManager初始化期间出现异常:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Web.Configuration.TraceSection ---> System.MissingMethodException: Method not found: 'System.Configuration.ConfigurationProperty..ctor'.
  --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)

这里对stackoverflow(和其他地方)的搜索发现一个可能的原因是xsp4在mono的4.0目录中运行。我的已经在4.5中找到了,并且被xsp脚本使用,所以我只能使用这个。有什么想法吗?

找到了。该错误是由于bin文件夹中存在FSharp.Core.Dll而导致的。它是一个混合的F#/C#项目,如果Dll驻留在GAC中,则不需要本地副本。删除它会使错误消失。

找到了它。该错误是由于bin文件夹中存在FSharp.Core.Dll而导致的。它是一个混合的F#/C#项目,如果Dll驻留在GAC中,则不需要本地副本。删除它会使错误消失