我在网站和互联网上做了一些调查,试图找到解决我正在尝试创建的VB.NET应用程序问题的方法。不幸的是,我被一条错误信息所困扰,它阻止了我继续进行任何发明者定制。
Tools: Visual Studio 2005 sp1, Inventor 11 Stand Alone install
OS: Windows Vista 64 sp1我在SDK文件夹下安装了开发工具。然后,我在COM中的VB.NET项目中向名为: AutoDesk Inventor对象库的组件添加了一个引用。它在“我的项目的参考文献”下面显示为:
Reference Name: Autodesk Inventor Object Library
Type: COM
Version: 1.0.0.0
Copy Local: True
Path: C:\Users\rschmalt\Visual Studio 2005\Projects\
InvTest\InvTest\obj\Debug\Interop.Inventor.dll我的代码如下:
'Opens Inventor Apprentice session to read part numbers
Dim oApprentice As New Inventor.ApprenticeServerComponent
Dim asmDoc As Inventor.ApprenticeServerDocument
Dim refDoc As Inventor.ApprenticeServerDocument
asmDoc = oApprentice.Open(strIAMLocation)
For Each refDoc In asmDoc.ReferencedDocuments
MessageBox.Show(refDoc.FullFileName.ToString)
Next当我执行它时,我会收到以下消息:
Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 80040154
我已经尝试直接浏览DLL (Interop.Inventor.dll),然后它在引用中显示为.NET类型,但是错误保持不变。
是否有可能在vista 64 (Inventor 11是32位)之间发生冲突?有什么建议吗?
发布于 2009-05-14 14:47:57
看看这些
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/88a6ea68-f476-4231-822f-27fabe59f458
http://social.msdn.microsoft.com/Forums/en-US/sqlsmoanddmo/thread/b20d3e7d-0577-44a5-8cc3-bbc4ecb62fd7
https://stackoverflow.com/questions/863716
复制相似问题