7 replies
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!
#.net #comexception #comi #dll #error #interop #vfp
  • Profile picture of the author windfinder
    Did you register the com-dll's on the server?
    {{ DiscussionBoard.errors[3787489].message }}
  • Profile picture of the author broadcast
    Hello! thanks for answer! may be that, how it should have been registered dll's?
    {{ DiscussionBoard.errors[3787746].message }}
    • Profile picture of the author windfinder
      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.
      {{ DiscussionBoard.errors[3787835].message }}
    • Profile picture of the author broadcast
      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.
      {{ DiscussionBoard.errors[3787842].message }}
      • Profile picture of the author windfinder
        I might missunderstand you but: You have to register the dll's on the server too.
        {{ DiscussionBoard.errors[3787941].message }}
        • Profile picture of the author broadcast
          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.
          {{ DiscussionBoard.errors[3787992].message }}
          • Profile picture of the author windfinder
            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.
            {{ DiscussionBoard.errors[3805059].message }}

Trending Topics