Page 1 of 1

Class not registered error

Posted: Wed Jun 08, 2016 9:19 am
by brillerment
Hi
 
We recentily purchased a license for the library, and we managed to use this on our development box, however when moving across the our production environment, we get this error:
 
Retrieving the COM class factory for component with CLSID {52D6E699-9256-414F-8FCD-F38FDF6AC8EE} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
 
Any ideas what might fix this.
 
Regards,
Brent

Re: Class not registered error

Posted: Wed Jun 08, 2016 4:45 pm
by mb
regsvr32 sfFTPLib.dll
 
Or alternatively (better solution) if you build the executable, use SxS. Add the following to the manifest in the .exe:
 
   <dependency>
     <dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="sfFTPLib"
            version="4.0.0.0"
            language="*"
            processorArchitecture="*" />
     </dependentAssembly>
  </dependency>
 
Documentation:
https://www.smartftp.com/static/ftplib/ ... ution.html

Re: Class not registered error

Posted: Wed Jun 15, 2016 6:45 am
by brillerment
Hi
 
We're running this through a class library in a web service backend, so I don't think this really applies (there are no exe's).
 
Regards,
Brent

Re: Class not registered error

Posted: Wed Jun 15, 2016 3:56 pm
by mb
Then the first option applies:
regsvr32 sfFTPLib.dll

Re: Class not registered error

Posted: Fri Jun 17, 2016 7:03 am
by brillerment
I've tried the first option running this in command prompt in admin mode (with the dll in system32 and in SysWOW64 directories), running the regsvr32 from each of those directories respectively, but I keep getting the error:

The module "sfFTPLib.dll" failed to load.
Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependant .DLL files.
The specified module could not be found.
 
Am I missing a dependency?

Re: Class not registered error

Posted: Sat Jun 18, 2016 7:44 am
by mb
It seems so. Make sure that you have copied all the files. See the list here:
https://www.smartftp.com/static/ftplib/ ... ation.html
Under paragraph Deployment
Did you install the c++ runtime (vcredist_x64.exe)?

Re: Class not registered error

Posted: Tue Jul 12, 2016 10:44 am
by brillerment
vcredist_x64 has already been installed, and the dlls are included, but we are still getting the same error. This is on Windows server 2012 R2 (64bit). Is there anything else I could be missing?

Re: Class not registered error

Posted: Tue Jul 12, 2016 11:18 am
by mb
Did yo copy the MUI folder en-us as well? The folder structure (en-us) must be retained.

Re: Class not registered error

Posted: Wed Jul 13, 2016 11:28 am
by brillerment
MUI file and folder copied as well, still the same error.