473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 3939
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

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

Similar topics

3
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...
2
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...
11
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 ...
8
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...
3
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...
2
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 ...
3
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...
1
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...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
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,...

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.