none
Problem with registering com dll.

    Question

  • Hi
    i 've downloaded Interop.DSOFile.dll from this link, it works ok in my machine, but when i copy my project in another machine and try to register this dll by hand via this code :

    regsvr32 Interop.DSOFile.dll

    i got this error :

    Interop.DSOFile.dll was loaded, but the DllRegisterServer entry point was not found.

    This file can not be registered.

    where is my problem and how to solve this ?
    thanks in advance


    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx
    Sunday, March 07, 2010 6:14 AM

Answers

  • Hello,

    As Louis said Interop.DSOFile.dll is a .net assembly not a com assembly. But DSOFile.dll is a COM assembly. You could register it.

    Thanks
    Chao

    • Marked as answer by Hamed_1983 Tuesday, March 16, 2010 8:38 AM
    Wednesday, March 10, 2010 7:41 AM

All replies

  • You have to pass fullpath to regsvr32 and also run the command prompt as adminstrator

    RegSvr32  "C:\Interop.DSOFile.dll"


    You mentioned a liink but you did not insert the link in post





    kaymaf


    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.

    Sunday, March 07, 2010 6:21 AM
  • You have to pass fullpath to regsvr32 and also run the command prompt as adminstrator

    RegSvr32  "C:\Interop.DSOFile.dll"


    You mentioned a liink but you did not insert the link in post





    kaymaf


    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.


    Thanks kaymaf
    but i think it found dsofile dll (i copy this dll in c:\windows\system32 folder), but could not found any entrypoint.

    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx
    Sunday, March 07, 2010 10:44 AM
  • Ok, if you are using vista or 7, you have to run your command prompt as administrator. Right click the command prompt icon or shortcut and click run as administrator. On vista, the command prompt title should display "Administrator : Command Prompt" (Image in my first post) if runs as administrator and "Command Prompt" for regular user.

    kaymaf

    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.

    Sunday, March 07, 2010 1:52 PM
  • Ok, if you are using vista or 7, you have to run your command prompt as administrator. Right click the command prompt icon or shortcut and click run as administrator. On vista, the command prompt title should display "Administrator : Command Prompt" (Image in my first post) if runs as administrator and "Command Prompt" for regular user.

    kaymaf

    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.


    Thanks kaymaf
    but i have windows xp sp2 in my machine.
    thanks in advance
    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx
    Sunday, March 07, 2010 3:15 PM
  • What makes you think you need to register that dll? From the name, I'd say it's a .Net interop assembly, not a COM dll.
    Sunday, March 07, 2010 10:51 PM
  • Hello,

    As Louis said Interop.DSOFile.dll is a .net assembly not a com assembly. But DSOFile.dll is a COM assembly. You could register it.

    Thanks
    Chao

    • Marked as answer by Hamed_1983 Tuesday, March 16, 2010 8:38 AM
    Wednesday, March 10, 2010 7:41 AM
  • Hello,

    As Louis said Interop.DSOFile.dll is a .net assembly not a com assembly. But DSOFile.dll is a COM assembly. You could register it.

    Thanks
    Chao


    Thanks Chao
    i understand what u mean. for this, i use this command to register dsofile.dll

    Regsvr32 "D:\Programming\Test\ScanAndSaveToDb\DsoFile\dsofile.dll"

    but i got this error :

    [Window Title]
    RegSvr32

    [Content]
    The module "D:\Programming\Test\ScanAndSaveToDb\DsoFile\dsofile.dll" was loaded but the call to DllRegisterServer failed with error code 0x80070005.

    For more information about this problem, search online using the error code as a search term.

    [OK]

    where is my problem ? do i must first uninstall the dsofile.dll and reinstall it ?
    thanks in advance


    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx
    Wednesday, March 10, 2010 11:56 AM
  • Halo, Hamed

    This is the permission problem.

    If you are using the Win7 and vista, you must use administrator account to log on, and run you Command line as administrator.

    If you are using XP, you must use administrator account to register you COM object.

    Thanks

    Chao

     

    Friday, March 12, 2010 8:42 AM
  • Halo, Hamed

    This is the permission problem.

    If you are using the Win7 and vista, you must use administrator account to log on, and run you Command line as administrator.

    If you are using XP, you must use administrator account to register you COM object.

    Thanks

    Chao

     


    Hi Chao
    i'm admin in my winxp wp2 machine.
    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx
    Friday, March 12, 2010 11:44 AM
  • Hi,

    Please check in register if dsofile has been registered. I have no idea what will happen if you register a PIA.
    You might want to try uninstall and reinstall, please try to copy a new dsofile.dll file from another machine.

    Harry


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, March 16, 2010 5:49 AM