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? - CSharp ; 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 ...

+ Reply to Thread
Results 1 to 8 of 8

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

  1. 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.

  2. 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.


  3. 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.
    >
    >


  4. 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.



  5. 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.
    >
    >
    >


  6. 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.


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


  8. 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 to Thread

Similar Threads

  1. wmi call on win2k3 server
    By Application Development in forum DOTNET
    Replies: 2
    Last Post: 09-15-2004, 09:24 AM
  2. wmi call on win2k3 server
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 09-14-2004, 01:09 PM
  3. install exchange 2000 to win2k3 server.. possible?
    By Application Development in forum Microsoft Exchange
    Replies: 0
    Last Post: 06-22-2004, 08:58 PM
  4. exc2k on win2k3 server
    By Application Development in forum Microsoft Exchange
    Replies: 2
    Last Post: 06-14-2004, 06:07 AM
  5. Replies: 7
    Last Post: 12-10-2003, 03:19 PM