1
我想用xsp4測試一個網站,所有的程序集都是爲目標框架4.5編譯的。我得到以下堆棧跟蹤。 TraceManager初始化期間 例外:MissingMethodException與xsp4和asp.net 4.5
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&)
的計算器(和其他地方)這裏的一個搜索發現,一個可能的原因是xsp4 4.0目錄單的中運行。 Mine已經位於4.5中,並被xsp腳本使用,所以我堅持使用這個。有任何想法嗎?