473,397 Members | 2,028 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,397 software developers and data experts.

Why am I getting System.DllNotFoundException err on win2K3 server?

Hi, I'm using vs2005, .net2.0 for a windows application. I call a C++
compile dll and it works fine in Win2K server but I get the follow error
message when I run the same application on a win2k3 server. I use the
Depends tool and found 3 ms lib used by this dll and I have those copied to
my application folder when I install the application on the server but I'm
still getting the error. Does anyone know how I can address this problem?
Thanks.
--
Thanks.
Aug 20 '07 #1
7 1869
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:26**********************************@microsof t.com...
Hi, I'm using vs2005, .net2.0 for a windows application. I call a C++
compile dll and it works fine in Win2K server but I get the follow error
message when I run the same application on a win2k3 server. I use the
Depends tool and found 3 ms lib used by this dll and I have those copied
to
my application folder when I install the application on the server but I'm
still getting the error. Does anyone know how I can address this problem?
Thanks.
--
Thanks.

Make sure you distribute the VC run-time libraries.

Willy.

Aug 21 '07 #2
My installation copies 3 dll to my applciation folders:
MSVCR80.DLL, MSVCP80.DLL, MSVCRT.DLL

From running "DEPENDS", these are the 3 dlls used. Aren't these the VC
run-time libraries? Thank you.
--
Thanks.
"Willy Denoyette [MVP]" wrote:
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:26**********************************@microsof t.com...
Hi, I'm using vs2005, .net2.0 for a windows application. I call a C++
compile dll and it works fine in Win2K server but I get the follow error
message when I run the same application on a win2k3 server. I use the
Depends tool and found 3 ms lib used by this dll and I have those copied
to
my application folder when I install the application on the server but I'm
still getting the error. Does anyone know how I can address this problem?
Thanks.
--
Thanks.


Make sure you distribute the VC run-time libraries.

Willy.

Aug 21 '07 #3
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:F6**********************************@microsof t.com...
My installation copies 3 dll to my applciation folders:
MSVCR80.DLL, MSVCP80.DLL, MSVCRT.DLL

From running "DEPENDS", these are the 3 dlls used. Aren't these the VC
run-time libraries? Thank you.
--
Thanks.
Yes, partly..., however you don't have to copy these, they need to be
installed using VCRedist*.exe. from the bootstrapper folder or from the
download site at:
<http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en>
<http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en>

For more details read the blog at :

<http://blogs.msdn.com/nikolad/>
and:
<http://blogs.msdn.com/astebner/archive/2007/02/07/update-regarding-silent-install-of-the-vc-8-0-runtime-vcredist-packages.aspx>

Willy.
Aug 21 '07 #4
Thank you Willy. I think that solve the lib problem. Now I'm getting error"
"This application has failed to start because the application configuration
is incorrect. Reinstalling the application may fix the problem."
I checked the FileMon and it shows the C application was looking for its
config file (xxx.exe.config). I earched the output directory and there is so
such file. Why is that so? Thank you.
--
Thanks.
"Willy Denoyette [MVP]" wrote:
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:F6**********************************@microsof t.com...
My installation copies 3 dll to my applciation folders:
MSVCR80.DLL, MSVCP80.DLL, MSVCRT.DLL

From running "DEPENDS", these are the 3 dlls used. Aren't these the VC
run-time libraries? Thank you.
--
Thanks.

Yes, partly..., however you don't have to copy these, they need to be
installed using VCRedist*.exe. from the bootstrapper folder or from the
download site at:
<http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en>
<http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en>

For more details read the blog at :

<http://blogs.msdn.com/nikolad/>
and:
<http://blogs.msdn.com/astebner/archive/2007/02/07/update-regarding-silent-install-of-the-vc-8-0-runtime-vcredist-packages.aspx>

Willy.
Aug 21 '07 #5
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:40**********************************@microsof t.com...
Thank you Willy. I think that solve the lib problem. Now I'm getting
error"
"This application has failed to start because the application
configuration
is incorrect. Reinstalling the application may fix the problem."
I checked the FileMon and it shows the C application was looking for its
config file (xxx.exe.config). I earched the output directory and there is
so
such file. Why is that so? Thank you.
--
Thanks.

This is not a config issue as you may think, it's definitely a VC deployment
issue, you also need to make sure you are running the same CRT as the one
used for the build.
You can easily solve the issue by statically linking the CRT, or by using a
manifest file.
Read more here:
http://msdn2.microsoft.com/en-us/lib...k9(VS.80).aspx
and here:
http://forums.microsoft.com/MSDN/Sho...72965&SiteID=1

Willy.

Aug 21 '07 #6
Hi Willy, When I run the vcredist_x86.exe on servers it didn't ask for any
input and ran just fine. I added this exe to my installation project's
CustomAction at "Commit". I run the setup.exe and I got the following
message form VC++ 2005 Redistributable: "Command line option syntax error.".
Do you know what command is it refeering to and do I put this in the
CustomActionData? Thank you.
--
Thanks.
"Willy Denoyette [MVP]" wrote:
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:40**********************************@microsof t.com...
Thank you Willy. I think that solve the lib problem. Now I'm getting
error"
"This application has failed to start because the application
configuration
is incorrect. Reinstalling the application may fix the problem."
I checked the FileMon and it shows the C application was looking for its
config file (xxx.exe.config). I earched the output directory and there is
so
such file. Why is that so? Thank you.
--
Thanks.

This is not a config issue as you may think, it's definitely a VC deployment
issue, you also need to make sure you are running the same CRT as the one
used for the build.
You can easily solve the issue by statically linking the CRT, or by using a
manifest file.
Read more here:
http://msdn2.microsoft.com/en-us/lib...k9(VS.80).aspx
and here:
http://forums.microsoft.com/MSDN/Sho...72965&SiteID=1

Willy.

Aug 22 '07 #7
Ok, I think I got it. I need to build a InstallClass for runing the .exe in
CustomActions.
--
Thanks.
"Willy Denoyette [MVP]" wrote:
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:40**********************************@microsof t.com...
Thank you Willy. I think that solve the lib problem. Now I'm getting
error"
"This application has failed to start because the application
configuration
is incorrect. Reinstalling the application may fix the problem."
I checked the FileMon and it shows the C application was looking for its
config file (xxx.exe.config). I earched the output directory and there is
so
such file. Why is that so? Thank you.
--
Thanks.

This is not a config issue as you may think, it's definitely a VC deployment
issue, you also need to make sure you are running the same CRT as the one
used for the build.
You can easily solve the issue by statically linking the CRT, or by using a
manifest file.
Read more here:
http://msdn2.microsoft.com/en-us/lib...k9(VS.80).aspx
and here:
http://forums.microsoft.com/MSDN/Sho...72965&SiteID=1

Willy.

Aug 22 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Anna | last post by:
When I run a c#DotNet web service, I have the following error: System.DllNotFoundException: Unable to load DLL The dll that cannot be loaded is a C dll. That's why it cannot be put in the GAC....
1
by: batista | last post by:
Hi, I have an unmanaged dll that uses callback to call a function of managed code.Now the problem is that it's given error "System.DllNotFoundException" I read it's due to appdomian....
1
by: Jorge_Beteta | last post by:
Hello Experts, I'm using Visual Studio NET 2003 Architect on a Windows 2003 Server. DataBase: Oracle 9i. All of them on the same PC. Problem is that I can't connect my ASP NET web program to...
0
by: AG | last post by:
Hi, I have implemented the ASP.Net Ihttphandler interface. Handler references the mixed dll (both managed/unmanaged code) that contains core C++ classes wrapped under managed c++ wrappers....
5
by: ALI-R | last post by:
I'd like to debug my asp.net application ,,but I can't find W3wp.exe in the list of system process to attach it to the debugger??? Is there someboddy who can help me. Thanks Ali
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
1
by: Zhihong Yu | last post by:
Hi, I declare an API as following: Public Declare Function IsFirstInstance Lib "WPLink.dll" () As Integer When I call this function in Main(), I got System.DllNotFoundException even though...
1
by: Xycoth | last post by:
I have an older program written in vb6. This program calls a dll written in fortran. I have taken the time to re-write the program in vb.net (1.1 framework), though i'm still calling the fortran...
1
by: mmark751969 | last post by:
I have a win2k3 server that i am going to need to upgrade to service pack 2. It is running sql server 2000(sem reports version 8.0 - i think that is sql server 2000). It has profiler and query...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.