【问题标题】:Method not found: 'System.Type System.Runtime.InteropServices.Marshal.GetTypeFromCLSID9System.Guid)' [duplicate]找不到方法:'System.Type System.Runtime.InteropServices.Marshal.GetTypeFromCLSID9System.Guid)' [重复]
【发布时间】:2014-06-12 21:57:25
【问题描述】:
Method not found: 'System.Type System.Runtime.InteropServices.Marshal.GetTypeFromCLSID9System.Guid)'. 

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box. 

************** Exception Text ************** 
System.MissingMethodException: Method not found: 'System.Type System.Runtime.InteropServices.Marshal.GetTypeFromCLSID(System.Guid)'.
at WindowsApplication7.ModsToInstall.MyExtract() 
at WindowsApplication7.ModsToInstall.Install() 
at WindowsApplication7.ModsToInstall.YtButton2_Click(Object sender, EventArgs e) 
at System.Windows.Forms.Control.OnClick(EventArgs e) 
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 
at System.Windows.Forms.Control.WndProc(Message& m) 
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 


************** Loaded Assemblies ************** 
mscorlib 
Assembly Version: 4.0.0.0 
Win32 Version: 4.0.30319.1022 (RTMGDR.030319-1000) 
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll 
---------------------------------------- 
WindowsApplication7 
Assembly Version: 1.0.0.0 
Win32 Version: 1.0.0.0 
CodeBase: file:///C:/Users/llupulescu/Desktop/Svatekl2's%20Extended%20ModPack%209.1%20v1.1.exe 
---------------------------------------- 
Microsoft.VisualBasic 
Assembly Version: 10.0.0.0 
Win32 Version: 10.0.30319.1 built by: RTMRel 
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll 
----------------------------------------<
  • 所以我认为问题在于 .Net 框架

  • 但我不确定……会不会?

  • P.S 我是新来的(到目前为止是第 2 篇文章),如果有什么看起来很奇怪的话 “总部”对不起:/

【问题讨论】:

  • 这是 ASP.NET、Windows 窗体还是 WPF?
  • @JohnSaunders 似乎是Windows Application

标签: c# asp.net .net vb.net windows


【解决方案1】:

快速搜索得到以下结果:

Method not found: 'System.Type System.Runtime.InteropServices.Marshal.GetTypeFromCLSID(System.Guid)'

可能是兼容性问题?查看那篇文章,看看是否有帮助。

【讨论】:

  • 是的...我看了一下他的问题!看起来可能是兼容性问题。可悲的是,此时我没有任何人可以检查谁拥有旧版本的 .Net FrameWork 来测试这是否是导致问题的原因。但是通过查看代码,它看起来像是一个兼容性问题吗?我希望它是!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-10-25
  • 2022-11-11
  • 2017-05-22
  • 1970-01-01
  • 2018-10-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多