我有一个从Windows磁盘上以前的Visual Studio目录导入的Asp.NET Web窗体项目。编辑代码后,构建成功,但是当我尝试使用Xsp4和MonoDevelop运行它时,它将显示:
Application Exception
System.TypeLoadException
Could not resolve type with token 01000017 (from typeref, class/assembly System.Web.UI.ScriptResourceDefinition, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
Description: HTTP 500.Error processing request.
Details: Non-web exception.
Exception stack trace:
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <44bdc1f1bb534c5383b404ef5647abcd>:0
Version Information: 5.12.0.309 (tarball Tue Oct 23 17:04:56 UTC 2018); ASP.NET Version: 4.0.30319.42000
Powered by Mono
该版本显示在上面的堆栈跟踪中,我正在使用从debian存储库获得的MonoDevelop 7.5版。
我正在使用debian 9。
如何解决此问题?
我已经看过这个TypeLoadException on asp.net/xsp/mono on debian/opensuse,但它只是说我需要在我拥有的bin文件夹中的项目dll。