Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Error COMException (https://www.warriorforum.com/programming/371764-error-comexception.html)

broadcast 27th April 2011 04:13 PM

Error COMException
 
Good evening, I expose my problem, I had to develop a webservice with .NET, i use a VFP dll, in order to use these libraries have had to do it through COM Interop, the was once done in the virtual machine from my visual studio I was going perfectly, but when published to the iis7 I have this error, any ideas? Error: System.Runtime.InteropServices.COMException: Error al recuperar un generador de clases COM para el componente con CLSID {924AFA8A-8762-46F3-BC88-7AE7656DA293} debido al siguiente error: 800401f9. Thank you very much!

windfinder 28th April 2011 12:39 AM

Re: Error COMException
 
Did you register the com-dll's on the server?

broadcast 28th April 2011 01:57 AM

Re: Error COMException
 
Hello! thanks for answer! may be that, how it should have been registered dll's?

windfinder 28th April 2011 02:33 AM

Re: Error COMException
 
You need to copy VPF.dll and all dll's it needs to the server and then run regsvr32.
Here's the MS article about it: Explanation of Regsvr32 usage and error messages.

There might be an installer that contains the redistributable parts of VFP. The easiest way to get your things working is to install that on the server.

I don't have any experience of running VPF on a server, this is just (very) old COM-experience.

broadcast 28th April 2011 02:34 AM

Re: Error COMException
 
Quote:

Originally Posted by broadcast (Post 3787746)
Hello! thanks for answer! may be that, how it should have been registered dll's?

Sorry, if I have registered with regsrv32, I explain, develop the project in a windows7 is where I registered the dll, and once I worked in the virtual machine visual studio, picked up the project and put it on the server.

windfinder 28th April 2011 03:10 AM

Re: Error COMException
 
I might missunderstand you but: You have to register the dll's on the server too.

broadcast 28th April 2011 03:25 AM

Re: Error COMException
 
Quote:

Originally Posted by windfinder (Post 3787941)
I might missunderstand you but: You have to register the dll's on the server too.

But I have Interop.nombre.dll in the server, I can't register.
In windows7 register the normal vfp dll, then I add the COM reference to the project, then visual studio create a Interop.nombre.dll, that I can not register into the server.


Sorry for my english.

windfinder 1st May 2011 05:31 AM

Re: Error COMException
 
The interop dll is just a proxy between your code and the actual dll that contains the COM-classes you want to use. VFP in this case.


All times are GMT -6. The time now is 03:07 AM.