468,168 Members | 1,494 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,168 developers. It's quick & easy.

Unique LoadLibrary error with SQL sever dll using regsvr32

nikpreek
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>\DistributedDTS\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
Jun 20 '07 #1
4 3591
DeMan
1,806 1GB
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....
Jun 20 '07 #2
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
Jun 25 '07 #3
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.dependencywalker.com/) and find out if any other required DLL is missing.

Cheers,
Nik
Jun 25 '07 #4
bartonc
6,596 Expert 4TB
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.dependencywalker.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!
Jun 25 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Jeff Johnson | last post: by
2 posts views Thread by Ganesh Ramamurthy | last post: by
3 posts views Thread by Michael Tissington | last post: by
4 posts views Thread by Peter Morris | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.