Unique LoadLibrary error with SQL sever dll using regsvr32

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nikpreek
    New Member
    • Jun 2007
    • 22

    Unique LoadLibrary error with SQL sever dll using regsvr32

    Hi All,

    Another strange and one-off problem. I have an class library (written c#) having code for loading DTS pkg (saved on HDD as structured file) (from SQL 2000) and then executing it with a parameter of source text file name.
    It works fine on development PC.
    My destination app server or testers PCs doesn't have SQL server or any of its components installed. Hence, I referred a column from this site (http://www.sqldts.com/225.aspx) and I could build a setup program with all the required files and SQL DLLs. Now, when I run this setup on test server (Win 2K Server, no SQL component installed earlier) it is installed with no errors and runs fine. Same with one test PC. BUT, when I try to install it on our tester's PC it fails to register only 1 DLL from the SQL DLL set (axscphst.dll). The error I get is:
    ------------------------------------------------------------------------------------------------
    Module <app path>\axscphst. dll failed to register.
    HRESULT -2147024770. Contact your support personnel.
    ------------------------------------------------------------------------------------------------
    If I continue installation, it continues with registering all other DLLs and finishes successfully.
    Obviously, it doesn't work. So, I tried to re-register it using regsvr32. When I try to register all DLLs, all of those gets registered successfully except this (axscphst.dll). The error message I get is:
    ------------------------------------------------------------------------------------------------
    ---------------------------
    RegSvr32
    ---------------------------
    LoadLibrary("C: \Program Files\<app path>\Distribut edDTS\axscphst. dll") failed - The specified module could not be found.
    ---------------------------
    OK
    ---------------------------
    ------------------------------------------------------------------------------------------------

    I tried to Google and can get only one URL: https://forums.microsoft.com/MSDN/Sh...20805&SiteID=1
    But, the solution suggested here is something I'm already doing.

    Can anyone tell me what I should do to find why its not getting registered only on this PC. If there is any workaround, kindly let me know that too.

    It has become urgent issue now, so, please, please reply ASAP.

    Thank you to all in advance. (If required, please move it to correct forum)

    Cheers,
    Nikhil
  • DeMan
    Top Contributor
    • Nov 2006
    • 1799

    #2
    I would suggest firstly searching on your machine whether the stray DLL may be hiding somewhere else (and moving it if necessary).
    Otherwise the DLL may have come from a program you don't have installed.....
    A quick web search should either reveal which program, or at least where you may be able to get that library....

    Comment

    • nikpreek
      New Member
      • Jun 2007
      • 22

      #3
      Hi DeMan,

      Thanks for the reply. I'd already tried these, but no luck :-(

      All other DLLs are getting registered except this one (axscphst.dll). There is no info available on web for such errors.
      Well, I'll keep on investigating. If, I get any solution, I'll post it here.

      Cheers,
      Nik

      Comment

      • nikpreek
        New Member
        • Jun 2007
        • 22

        #4
        Got it. :-)
        I used Depends.exe to find dependencies for my DLL. And found that Msvcr71.dll was not present in the WinSys directory (Windows/system32 in my case). Just copied it (Not to be registered) to WinSys directory and Hoorrrah.. the setup worked and my app is now up and running on our tester's PC.

        Summary: For any DLL registration errors (not understandable) , use Depends.exe from (http://www.dependencyw alker.com/) and find out if any other required DLL is missing.

        Cheers,
        Nik

        Comment

        • bartonc
          Recognized Expert Expert
          • Sep 2006
          • 6478

          #5
          Originally posted by nikpreek
          Got it. :-)
          I used Depends.exe to find dependencies for my DLL. And found that Msvcr71.dll was not present in the WinSys directory (Windows/system32 in my case). Just copied it (Not to be registered) to WinSys directory and Hoorrrah.. the setup worked and my app is now up and running on our tester's PC.

          Summary: For any DLL registration errors (not understandable) , use Depends.exe from (http://www.dependencyw alker.com/) and find out if any other required DLL is missing.

          Cheers,
          Nik
          Great link, Nik. I think that I'll copy that to the Window Forum. Thanks!

          Comment

          Working...