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

This is a discussion on Why am I getting System.DllNotFoundException err on win2K3 server? within the CSharp forums in Programming Languages category; 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....

Go Back   ObjectMix Forum > Programming Languages > CSharp

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-20-2007, 12:02 PM
=?Utf-8?B?UHVjY2E=?=
Guest
 
Default 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.
Reply With Quote
  #2  
Old 08-21-2007, 04:49 AM
Willy Denoyette [MVP]
Guest
 
Default Re: Why am I getting System.DllNotFoundException err on win2K3 server?

"Pucca" <Pucca@discussions.microsoft.com> wrote in message
news:26CAC5AE-5983-499F-A76A-F2D967562BCD@microsoft.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.

Reply With Quote
  #3  
Old 08-21-2007, 10:04 AM
=?Utf-8?B?UHVjY2E=?=
Guest
 
Default Re: Why am I getting System.DllNotFoundException err on win2K3 ser

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" <Pucca@discussions.microsoft.com> wrote in message
> news:26CAC5AE-5983-499F-A76A-F2D967562BCD@microsoft.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.
>
>

Reply With Quote
  #4  
Old 08-21-2007, 11:06 AM
Willy Denoyette [MVP]
Guest
 
Default Re: Why am I getting System.DllNotFoundException err on win2K3 ser

"Pucca" <Pucca@discussions.microsoft.com> wrote in message
news:F6F7849E-E9D3-4A26-A236-22E8F9B1721A@microsoft.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.


Reply With Quote
  #5  
Old 08-21-2007, 02:26 PM
=?Utf-8?B?UHVjY2E=?=
Guest
 
Default Re: Why am I getting System.DllNotFoundException err on win2K3 ser

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" <Pucca@discussions.microsoft.com> wrote in message
> news:F6F7849E-E9D3-4A26-A236-22E8F9B1721A@microsoft.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.
>
>
>

Reply With Quote
  #6  
Old 08-21-2007, 03:07 PM
Willy Denoyette [MVP]
Guest
 
Default Re: Why am I getting System.DllNotFoundException err on win2K3 ser

"Pucca" <Pucca@discussions.microsoft.com> wrote in message
news:40441E35-6C98-40FA-A221-0D0C5EF512B0@microsoft.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.

Reply With Quote
  #7  
Old 08-22-2007, 10:42 AM
=?Utf-8?B?UHVjY2E=?=
Guest
 
Default Re: Why am I getting System.DllNotFoundException err on win2K3 ser

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" <Pucca@discussions.microsoft.com> wrote in message
> news:40441E35-6C98-40FA-A221-0D0C5EF512B0@microsoft.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.
>
>

Reply With Quote
  #8  
Old 08-22-2007, 03:40 PM
=?Utf-8?B?UHVjY2E=?=
Guest
 
Default Re: Why am I getting System.DllNotFoundException err on win2K3 ser

Ok, I think I got it. I need to build a InstallClass for runing the .exe in
CustomActions.
--
Thanks.


"Willy Denoyette [MVP]" wrote:

> "Pucca" <Pucca@discussions.microsoft.com> wrote in message
> news:40441E35-6C98-40FA-A221-0D0C5EF512B0@microsoft.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.
>
>

Reply With Quote
Reply


Thread Tools

Similar Threads

Thread Thread Starter Forum Replies Last Post
wmi call on win2k3 server dan m DOTNET 2 09-15-2004 09:24 AM
wmi call on win2k3 server Dominick Baier DOTNET 1 09-14-2004 01:09 PM
install exchange 2000 to win2k3 server.. possible? Alex Basilio Microsoft Exchange 0 06-22-2004 08:58 PM
exc2k on win2k3 server MMC Microsoft Exchange 2 06-14-2004 06:07 AM
Problem with transactions from Win2k app server to Win2k3 SQL Server paul crowder DOTNET 7 12-10-2003 03:19 PM


All times are GMT -5. The time now is 04:44 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.