无法从程序集“Interop.Shell32”中加载“Shell32.IShellDispatch5”类型........ [英] Could not load type 'Shell32.IShellDispatch5' from assembly 'Interop.Shell32'........
本文介绍了无法从程序集“Interop.Shell32”中加载“Shell32.IShellDispatch5”类型........的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨专家!
在我开发程序的本地机器中,一切都运行得很好,但当程序加载到我们的ProgramServer时,下面出现错误。
无法从程序集'Interop.Shell32,Version = 1.0.0.0,Culture = neutral加载'Shell32.IShellDispatch5'类型,PublicKeyToken = null'。< br />
上面的错误出现在我将一个zip文件从SFTP服务器下载到我们的ProgramServer然后解压缩的行中文件。我的程序在VS 2005(vb2005)中运行。
非常感谢提前。
解决方案
http:/ /forums.asp.net/t/1182823.aspx/1 [ ^ ]
您可以尝试使用 Assembly.LoadFile [ ^ ]方法加载和检查具有相同标识但位于不同路径的程序集。
或者参见TypeLoadException:无法加载类型 [ ^ ]。
- Amit
Hi Experts!
In my local machine where i developed the program, everything is working perfectly fine, but when the program was loaded to the our ProgramServer, below error appears.
Could not load type 'Shell32.IShellDispatch5' from assembly 'Interop.Shell32, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.<br />
Above error appears in the line where I download a zip file from a SFTP server into our ProgramServer and then extracts the zip file. My program is running in VS 2005 (vb2005).
Many thanks in advance.
解决方案
http://forums.asp.net/t/1182823.aspx/1[^]
You can try using Assembly.LoadFile[^] method to load and examine assemblies that have the same identity, but are located in different paths.
Or see TypeLoadException: Could not load type [^].
--Amit
这篇关于无法从程序集“Interop.Shell32”中加载“Shell32.IShellDispatch5”类型........的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文