473,657 Members | 2,504 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unique LoadLibrary error with SQL sever dll using regsvr32

nikpreek
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:
------------------------------------------------------------------------------------------------
---------------------------
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
Jun 20 '07 #1
4 3954
DeMan
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
nikpreek
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.

Cheers,
Nik
Jun 25 '07 #3
nikpreek
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.

Cheers,
Nik
Jun 25 '07 #4
bartonc
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.

Cheers,
Nik
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

3
11252
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
2
2291
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 machine. No one had any problems with it yesterday and nothing has changed.
11
13289
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
8
21237
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: ========================================
3
6502
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 any/all kinds of functions. The idea is that a "MASTER" Invoke function takes arrays that explain...
2
1612
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 all manually. I am still getting the error, when I try to add new forms/ classes/User controls to...
3
3659
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 from MapPath)
1
1556
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 dll. On 98 and 2000, I cannot seem to get my DLL to register using regsvr32. I have tried copying...
4
5610
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");
0
8392
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8726
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7320
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
2
1604
bsmnconsultancy
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.