I've got a very strange issue happening and will try describe this as best as I can.
So I have a COM object which I've registered correctly and then reference from my test application. I then create an object (called Connection) and populate it with the connection details. Next I then call "connection.CreateTransaction()". This will go off to the COM, create and return the object for me to then utilize. So I run this and it works fine. This is a windows forms application.
Now, I need to be able to connect to this app using remoting, so I've put all the code in place for this, and I still have the ability to run the "connection.CreateTransaction()" directly from the application too. So now, when I use the remoting logic, I get to the "connection.CreateTransaction()" and get the following error:
"Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))."
However when I run the logic directly from the application, i.e. not with remoting, it passes this step and sends the transaction to the client application via the COM interface.
I'm at an absolute loss as to how this can work from the app, and then using the same code, just sending the data via remoting it fails.
Any ideas anyone?
User contributions licensed under CC BY-SA 3.0