Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 27th Apr 2011, 04:13 PM   #1
Warrior Member
 
Join Date: 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Error COMException
Share on: 
fb share twitter share gplus share more share

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!
broadcast is offline  
Unread 28th Apr 2011, 12:39 AM   #2
Active Warrior
War Room Member
 
Join Date: 2009
Posts: 58
Thanks: 3
Thanked 8 Times in 6 Posts
Default
Re: Error COMException
Share on: 
fb share twitter share gplus share more share

Did you register the com-dll's on the server?

windfinder is offline  
Unread 28th Apr 2011, 01:57 AM   #3
Warrior Member
 
Join Date: 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Error COMException
Share on: 
fb share twitter share gplus share more share

Hello! thanks for answer! may be that, how it should have been registered dll's?
broadcast is offline  
Unread 28th Apr 2011, 02:33 AM   #4
Active Warrior
War Room Member
 
Join Date: 2009
Posts: 58
Thanks: 3
Thanked 8 Times in 6 Posts
Default
Re: Error COMException
Share on: 
fb share twitter share gplus share more share

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.

windfinder is offline  
Unread 28th Apr 2011, 02:34 AM   #5
Warrior Member
 
Join Date: 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Error COMException
Share on: 
fb share twitter share gplus share more share

Originally Posted by broadcast View Post

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.
broadcast is offline  
Unread 28th Apr 2011, 03:10 AM   #6
Active Warrior
War Room Member
 
Join Date: 2009
Posts: 58
Thanks: 3
Thanked 8 Times in 6 Posts
Default
Re: Error COMException
Share on: 
fb share twitter share gplus share more share

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

windfinder is offline  
Unread 28th Apr 2011, 03:25 AM   #7
Warrior Member
 
Join Date: 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Error COMException
Share on: 
fb share twitter share gplus share more share

Originally Posted by windfinder View Post

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.
broadcast is offline  
Unread 1st May 2011, 05:31 AM   #8
Active Warrior
War Room Member
 
Join Date: 2009
Posts: 58
Thanks: 3
Thanked 8 Times in 6 Posts
Default
Re: Error COMException
Share on: 
fb share twitter share gplus share more share

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.

windfinder is offline  
Closed Thread


Bookmarks

Tags
.net, comexception, comi, dll, error, interop, vfp


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




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