C# mono中缺少System.Drawing.BitMapSuffixinSameasemblyAttribute

C# mono中缺少System.Drawing.BitMapSuffixinSameasemblyAttribute,c#,asp.net-mvc,xamarin,mono,monodevelop,C#,Asp.net Mvc,Xamarin,Mono,Monodevelop,我有一个.NETMVC5应用程序,我已经在Windows中开发了一段时间。我希望我的网页设计师使用Mac电脑,能够在他的Mac电脑上本地运行和编辑应用程序 除了构建Windows虚拟机之外,Mono+Monodevelop/Xamarin Studio似乎是实现这一目标的最佳方式 当我们第一次建造这个项目时,我们得到了 不过,现在我们得到一个错误,System.Drawing命名空间中缺少某些内容 System.TypeLoadException Could not load type 'Sys

我有一个.NETMVC5应用程序,我已经在Windows中开发了一段时间。我希望我的网页设计师使用Mac电脑,能够在他的Mac电脑上本地运行和编辑应用程序

除了构建Windows虚拟机之外,Mono+Monodevelop/Xamarin Studio似乎是实现这一目标的最佳方式

当我们第一次建造这个项目时,我们得到了

不过,现在我们得到一个错误,System.Drawing命名空间中缺少某些内容

System.TypeLoadException
Could not load type 'System.Drawing.BitmapSuffixInSameAssemblyAttribute' from assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Description: HTTP 500.Error processing request.
Details: Non-web exception.
Exception stack trace:
  at (wrapper managed-to-native) System.MonoCustomAttrs:GetCustomAttributesInternal (System.Reflection.ICustomAttributeProvider,System.Type,bool)
  at System.MonoCustomAttrs.GetCustomAttributesBase (ICustomAttributeProvider obj, System.Type attributeType, Boolean inheritedOnly) [0x00019] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/corlib/System/MonoCustomAttrs.cs:128 
  at System.MonoCustomAttrs.GetCustomAttributes (ICustomAttributeProvider obj, Boolean inherit) [0x00017] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/corlib/System/MonoCustomAttrs.cs:290 
  at System.Reflection.Assembly.GetCustomAttributes (Boolean inherit) [0x00000] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/corlib/System.Reflection/Assembly.cs:244 
  at Owin.Loader.DefaultLoader.SearchForStartupAttribute (System.String friendlyName, IList`1 errors, System.Boolean& conflict) [0x0002c] in <filename unknown>:0 
  at Owin.Loader.DefaultLoader.GetDefaultConfiguration (System.String friendlyName, IList`1 errors) [0x0000e] in <filename unknown>:0 
  at Owin.Loader.DefaultLoader.LoadImplementation (System.String startupName, IList`1 errorDetails) [0x0001e] in <filename unknown>:0 
  at Owin.Loader.DefaultLoader.Load (System.String startupName, IList`1 errorDetails) [0x00000] in <filename unknown>:0 
  at Microsoft.Owin.Host.SystemWeb.OwinBuilder.GetAppStartup () [0x00021] in <filename unknown>:0 
  at Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint () [0x0000d] in <filename unknown>:0 
  at System.Threading.LazyInitializer.EnsureInitializedCore[T] (System.Threading.T& target, System.Boolean& initialized, System.Object& syncLock, System.Func`1 valueFactory) [0x00037] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/mscorlib/system/threading/LazyInitializer.cs:241 
  at System.Threading.LazyInitializer.EnsureInitialized[T] (System.Threading.T& target, System.Boolean& initialized, System.Object& syncLock, System.Func`1 valueFactory) [0x00012] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/mscorlib/system/threading/LazyInitializer.cs:206 
  at Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init (System.Web.HttpApplication context) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplication.CreateDynamicModules () [0x00030] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/System.Web/System.Web/HttpApplication.cs:1676 
  at System.Web.HttpApplication.InitOnce (Boolean full_init) [0x000ad] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/System.Web/System.Web/HttpApplication.cs:218 
System.TypeLoadException
无法从程序集“System.Drawing,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”加载类型“System.Drawing.BitmapSuffixinSSameaseMesemblyAttribute”。
描述:HTTP 500。处理请求时出错。
详细信息:非web异常。
异常堆栈跟踪:
at(包装器管理到本机)System.MonoCustomAttrs:GetCustomAttributesInternal(System.Reflection.ICCustomAttributeProvider,System.Type,bool)
在/private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build root/mono-4.2.1/mcs/class/corlib/System/MonoCustomAttrs.cs:128中的System.monocustomattributesbase.GetCustomAttributesBase(ICustomAttributeProvider obj,System.Type attributeType,Boolean-inly-inly)[00019]
在/private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build root/mono-4.2.1/mcs/class/corlib/System/MonoCustomAttrs.cs:290中的System.monocustomattributes.GetCustomAttributes(ICustomAttributeProvider obj,布尔继承)[0x00017]
在/private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build root/mono-4.2.1/mcs/class/corlib/System.Reflection/Assembly中的System.Reflection.Assembly.GetCustomAttributes(布尔继承)[0x00000]
在Owin.Loader.DefaultLoader.SearchForStartupAttribute(System.String friendlyName,IList`1错误,System.Boolean&冲突)[0x0002c]中:0
在Owin.Loader.DefaultLoader.GetDefaultConfiguration(System.String friendlyName,IList`1错误)[0x0000e]中:0
在Owin.Loader.DefaultLoader.LoadImplementation(System.String startupName,IList`1 errorDetails)[0x0001e]中:0
在Owin.Loader.DefaultLoader.Load(System.String startupName,IList`1 errorDetails)[0x00000]中:0
在Microsoft.Owin.Host.SystemWeb.OwinBuilder.GetAppStartup()[0x00021]中:0
在Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint()[0x0000d]中:0
在System.Threading.LazyInitializer.EnsureInitializedCore[T](System.Threading.T&target,System.Boolean&initialized,System.Object&syncLock,System.Func`1 valueFactory)[0x00037]in/private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build root/mono-4.2.1/external/referencesource/mscorlib/system/threading/LazyInitializer.cs:241
在System.Threading.LazyInitializer.EnsureInitialized[T](System.Threading.T&target,System.Boolean&initialized,System.Object&syncLock,System.Func`1 valueFactory)[0x00012]in/private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build root/mono-4.2.1/external/referencesource/mscorlib/system/threading/LazyInitializer.cs:206
在Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(System.Web.HttpApplication context)[0x00000]中:0
位于/private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build root/mono-4.2.1/mcs/class/System.Web/System.Web/HttpApplication.cs:1676中的System.Web.HttpApplication.CreateDynamicModules()[0x00030]
位于/private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build root/mono-4.2.1/mcs/class/System.Web/System.Web/HttpApplication.cs:218中的System.Web.HttpApplication.InitOnce(Boolean full_init)[0x000ad]
我尝试将System.Drawing.dll文件(及其关联的.xml文件)从我的Windows框中拖放到/bin文件夹中,然后在Xamarin Studio中重新打开该项目,错误更改为

Application Exception
System.InvalidProgramException
Invalid IL code in System.Drawing.BitmapSuffixInSatelliteAssemblyAttribute:.ctor (): method body is empty.

Description: HTTP 500.Error processing request.
Details: Non-web exception.
Exception stack trace:
  at (wrapper managed-to-native) System.MonoCustomAttrs:GetCustomAttributesInternal (System.Reflection.ICustomAttributeProvider,System.Type,bool)
  at System.MonoCustomAttrs.GetCustomAttributesBase (ICustomAttributeProvider obj, System.Type attributeType, Boolean inheritedOnly) [0x00019] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/corlib/System/MonoCustomAttrs.cs:128 
  at System.MonoCustomAttrs.GetCustomAttributes (ICustomAttributeProvider obj, Boolean inherit) [0x00017] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/corlib/System/MonoCustomAttrs.cs:290 
  at System.Reflection.Assembly.GetCustomAttributes (Boolean inherit) [0x00000] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/corlib/System.Reflection/Assembly.cs:244 
  at Owin.Loader.DefaultLoader.SearchForStartupAttribute (System.String friendlyName, IList`1 errors, System.Boolean& conflict) [0x0002c] in <filename unknown>:0 
  at Owin.Loader.DefaultLoader.GetDefaultConfiguration (System.String friendlyName, IList`1 errors) [0x0000e] in <filename unknown>:0 
  at Owin.Loader.DefaultLoader.LoadImplementation (System.String startupName, IList`1 errorDetails) [0x0001e] in <filename unknown>:0 
  at Owin.Loader.DefaultLoader.Load (System.String startupName, IList`1 errorDetails) [0x00000] in <filename unknown>:0 
  at Microsoft.Owin.Host.SystemWeb.OwinBuilder.GetAppStartup () [0x00021] in <filename unknown>:0 
  at Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint () [0x0000d] in <filename unknown>:0 
  at System.Threading.LazyInitializer.EnsureInitializedCore[T] (System.Threading.T& target, System.Boolean& initialized, System.Object& syncLock, System.Func`1 valueFactory) [0x00037] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/mscorlib/system/threading/LazyInitializer.cs:241 
  at System.Threading.LazyInitializer.EnsureInitialized[T] (System.Threading.T& target, System.Boolean& initialized, System.Object& syncLock, System.Func`1 valueFactory) [0x00012] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/mscorlib/system/threading/LazyInitializer.cs:206 
  at Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init (System.Web.HttpApplication context) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplication.CreateDynamicModules () [0x00030] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/System.Web/System.Web/HttpApplication.cs:1676 
  at System.Web.HttpApplication.InitOnce (Boolean full_init) [0x000ad] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/System.Web/System.Web/HttpApplication.cs:218 
Version Information: 4.2.1 (explicit/6dd2d0d Fri Nov 6 12:25:19 EST 2015); ASP.NET Version: 4.0.30319.17020
应用程序异常
System.InvalidProgrameException
System.Drawing.BitmapSuffiXinSatelliteThesEmblyAttribute:.ctor():方法正文为空。
描述:HTTP 500。处理请求时出错。
详细信息:非web异常。
异常堆栈跟踪:
at(包装器管理到本机)System.MonoCustomAttrs:GetCustomAttributesInternal(System.Reflection.ICCustomAttributeProvider,System.Type,bool)
在/private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build root/mono-4.2.1/mcs/class/corlib/System/MonoCustomAttrs.cs:128中的System.monocustomattributesbase.GetCustomAttributesBase(ICustomAttributeProvider obj,System.Type attributeType,Boolean-inly-inly)[00019]
在/private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build root/mono-4.2.1/mcs/class/corlib/System/MonoCustomAttrs.cs:290中的System.monocustomattributes.GetCustomAttributes(ICustomAttributeProvider obj,布尔继承)[0x00017]
在/private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build root/mono-4.2.1/mcs/class/corlib/System.Reflection/Assembly中的System.Reflection.Assembly.GetCustomAttributes(布尔继承)[0x00000]
在Owin.Loader.DefaultLoader.SearchForStartupAttribute(System.String friendlyName,IList`1错误,System.Boolean&冲突)[0x0002c]中:0
在Owin.Loader.DefaultLoader.GetDefaultConfiguration(System.String friendlyName,IList`1错误)[0x0000e]中:0
在Owin.Loader.DefaultLoader.LoadImplementation(System.String startupName,IList`1 errorDetails)[0x0001e]中:0
在Owin.Loader.DefaultLoader.Load(System.String startupName,IList`1 errorDetails)[0x00000]中:0
在Microsoft.Owin.Host.SystemWeb.OwinBuilder.GetAppStartup()[0x00021]中:0
在Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint()[0x0000d]中:0
在System.Threading.LazyInitializer.EnsureInitializedCore[T](系统