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....
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| 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. |
|
#2
| |||
| |||
| "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. |
|
#3
| |||
| |||
| 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. > > |
|
#4
| |||
| |||
| "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. |
|
#5
| |||
| |||
| 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. > > > |
|
#6
| |||
| |||
| "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. |
|
#7
| |||
| |||
| 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. > > |
|
#8
| |||
| |||
| 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. > > |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| wmi call on win2k3 server | usenet | DOTNET | 2 | 09-15-2004 09:24 AM |
| wmi call on win2k3 server | usenet | DOTNET | 1 | 09-14-2004 01:09 PM |
| install exchange 2000 to win2k3 server.. possible? | usenet | Microsoft Exchange | 0 | 06-22-2004 08:58 PM |
| exc2k on win2k3 server | usenet | Microsoft Exchange | 2 | 06-14-2004 06:07 AM |
| Problem with transactions from Win2k app server to Win2k3 SQL Server | usenet | DOTNET | 7 | 12-10-2003 03:19 PM |
All times are GMT -5. The time now is 08:50 AM.


