Com Exception Unhandled
-
I have a desktop application in .Net 2.0 I have a com class added in bin folder Interop.prjBatPrt.dll now running the application I'm getting the following error... ComException Was Unhandled... Retrieving the COM class factory for component with CLSID {00A4F4E0-380D-4DDD-9752-50FDA24BAC15} failed due to the following error: 80040154. can anyone help me to figure it out....
-
I have a desktop application in .Net 2.0 I have a com class added in bin folder Interop.prjBatPrt.dll now running the application I'm getting the following error... ComException Was Unhandled... Retrieving the COM class factory for component with CLSID {00A4F4E0-380D-4DDD-9752-50FDA24BAC15} failed due to the following error: 80040154. can anyone help me to figure it out....
This is a general error. What you can do is , 1. Check that the class installed is actuallt installed properly.( if not then re-installe that correctly) 2. Reset the identity user id/passwork that you might have there in com explorer. 2. Lastly, make sure that COM component is working correct at runtime. That can be tested this way: You can write a vb script file(.vbs) and try to invoke that COM component by just creating an instance of the class. If that is created then using the vbscript itself call the method to see whether that method which you might have used is actually invoked correctly. Sample VBscript code.Save this as "test.vbs" and double click and run.
obj = CreateObject("yourcalssname")
msgbox(IsObject(obj))Thanks, Arindam D Tewary
-
This is a general error. What you can do is , 1. Check that the class installed is actuallt installed properly.( if not then re-installe that correctly) 2. Reset the identity user id/passwork that you might have there in com explorer. 2. Lastly, make sure that COM component is working correct at runtime. That can be tested this way: You can write a vb script file(.vbs) and try to invoke that COM component by just creating an instance of the class. If that is created then using the vbscript itself call the method to see whether that method which you might have used is actually invoked correctly. Sample VBscript code.Save this as "test.vbs" and double click and run.
obj = CreateObject("yourcalssname")
msgbox(IsObject(obj))Thanks, Arindam D Tewary
-
I have a desktop application in .Net 2.0 I have a com class added in bin folder Interop.prjBatPrt.dll now running the application I'm getting the following error... ComException Was Unhandled... Retrieving the COM class factory for component with CLSID {00A4F4E0-380D-4DDD-9752-50FDA24BAC15} failed due to the following error: 80040154. can anyone help me to figure it out....
vkumar09 wrote:
I have a com class added in bin folder Interop.prjBatPrt.dll
No, that's not a COM class. That is a wrapper used as an interface between your managed code and the COM component you're code is using. A common newbie mistake is to deploy just that .DLL with the application and wonder why the app suddenly doesn't work. You also need the COM component you're using installed on the target machine as well as the wrapper .DLL's.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...