473,573 Members | 3,961 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unique LoadLibrary error with SQL sever dll using regsvr32

22 New Member
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:
LoadLibrary("C: \Program Files\<app path>\Distribut edDTS\axscphst. dll") failed - The specified module could not be found.

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)

Jun 20 '07 #1
4 3950
1,806 Top Contributor
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
22 New Member
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.

Jun 25 '07 #3
22 New Member
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.

Jun 25 '07 #4
6,596 Recognized Expert Expert
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.

Great link, Nik. I think that I'll copy that to the Window Forum. Thanks!
Jun 25 '07 #5

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

Similar topics

by: Jeff Johnson | last post by:
Hi, I am re-installing VB6 and can anyone help me to register the old dbgrid32 control on my machine ?? I have copied over dbgrid32.ocx and dbgrid32.dep into C:\windows\system32 (a XP machine). I have forgotten the command that comes next !! Many thanks Jeff
by: Kathy | last post by:
Hi All, I have several users who are getting a compile error "Can't find project or library when the code hits Dim cat as ADOX.Catalog In the references dialog box it show the msadox.dll as missing BUT it's in it's folder right where it belongs. I'v tried decompiling the database using the switch to no avail. The database runs fine on my...
by: Vijay Chegu | last post by:
I have built a 64bit ATL COM dll. When i register the dll on IA64 windows Enterprise server 2003, i get following error. DllRegisterServer in mydll.dll failed. Return code was : 0x80020009 The command i am using to register the dll is
by: ATS | last post by:
HOWTO Implement LoadLibrary\GetProcAdrress\FreeLibrary in C# Please help, I want to fully implement LoadLibrary\GetProcAdrress\FreeLibrary in C#, and be able to call functions that I use GetProcAddress on to pass info to non-.NET apps. I can not use the standard "interop" process, as the DLL's are created dynamically. I need this: ...
by: ATS | last post by:
HOWTO Implement LoadLibrary, GetProcAdress, and FreeLibrary. Below is code that I want to be able to use simple LoadLibrary\GetProcAddress\FreeLibrary technqiues on. I've used the code that was initially placed on the .NET 247 forum as such: http://dotnet247.com/247reference//msgs/28/140461.aspx I have expanded it here to let one call...
by: Ganesh Ramamurthy | last post by:
Hi Experts, I have Visual Studio 2003 Installed in my Windows 2003 Sever. However, I have problems in creating new Projects, Classes, Forms etc. When I try to create New projects, I get an error that some wizard is missing and I get an empty project opened. There are no forms, web.config, global.asax nor any references set. I need to add...
by: Michael Tissington | last post by:
I'm using LoadLibrary to import a DLL in a asp.net application. The dll was written in c++ and is located in the bin folder I have been testing the website on my development machine and our inhouse webserver running IIS 5.1 and it works correctly. I'm specifing a real path to LoadLibrary of the form C:\domains\...\file.dll (obtained...
by: ScaleOvenStove | last post by:
I have created a BHO in Visual Studio 2005. It works great on my dev machine, but when trying to test on clean images of the OS's, I am running into issues. I dont want to have to distribute the redist.exe with my dll. I have managed to get it to register successfully on XP by copying Microsoft.VC80.ATL and Microsoft.VC80.CRT folders with my...
by: Peter Morris | last post by:
I have a class named DynamicLinkLibrary which does this: private static extern IntPtr LoadLibrary(string fileName); protected virtual void Load(string fileName) { EnsureNotDisposed(); if (LibraryHandle != IntPtr.Zero) throw new InvalidOperationException("Library already loaded");
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.