Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Error: usbtest(Cs).exe----cannt find DLL

Error: usbtest(Cs).exe----cannt find DLL

Scheduled Pinned Locked Moved C#
helpcsharptutorialquestion
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    momer
    wrote on last edited by
    #1

    Hi!Dear, I released my c# project usbtest(Cs) and got the usbtest(Cs).exe.There is no problem when I run it on my own WinXP PC,but when I run it on other's WinXP PC or Win2000 PC,then error occurs: Win2000:error name:usbtest(Cs).exe--cannot find DLL error content:can not find DLL mscoree.dll in the appointed path. F:\;.;C:\WINNT\System32; C:\WINNT\system; C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem WinXP: error name:usbtest(Cs).exe--application error error content:application normal initialization (0xc0000135) fail.Please click "OK" to terminate application. Can you tell what makes this error and how to work out it? Thanks! momer

    B 1 Reply Last reply
    0
    • M momer

      Hi!Dear, I released my c# project usbtest(Cs) and got the usbtest(Cs).exe.There is no problem when I run it on my own WinXP PC,but when I run it on other's WinXP PC or Win2000 PC,then error occurs: Win2000:error name:usbtest(Cs).exe--cannot find DLL error content:can not find DLL mscoree.dll in the appointed path. F:\;.;C:\WINNT\System32; C:\WINNT\system; C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem WinXP: error name:usbtest(Cs).exe--application error error content:application normal initialization (0xc0000135) fail.Please click "OK" to terminate application. Can you tell what makes this error and how to work out it? Thanks! momer

      B Offline
      B Offline
      Brian Nottingham
      wrote on last edited by
      #2

      Hello, The .NET application must be installed to run a .NET application. mscoree.dll is a DLL that is installed as a part of the .NET framework installation. You cannot redistribute this DLL yourself, it must be installed with the .NET framework installer.

      M 1 Reply Last reply
      0
      • B Brian Nottingham

        Hello, The .NET application must be installed to run a .NET application. mscoree.dll is a DLL that is installed as a part of the .NET framework installation. You cannot redistribute this DLL yourself, it must be installed with the .NET framework installer.

        M Offline
        M Offline
        momer
        wrote on last edited by
        #3

        hi,Brian Nottingham, Thank you very much! But what my problem is not the .net itself I think. The vs.net can run on my PC without any trouble. the truble is my program can only run on my own PC(WinXP) where I develop it.when I run it on other PC(WinXP or Win2000) the error occurs. If you like,I can email you my c# program usbtest(Cs). Thank you again! momer

        B 1 Reply Last reply
        0
        • M momer

          hi,Brian Nottingham, Thank you very much! But what my problem is not the .net itself I think. The vs.net can run on my PC without any trouble. the truble is my program can only run on my own PC(WinXP) where I develop it.when I run it on other PC(WinXP or Win2000) the error occurs. If you like,I can email you my c# program usbtest(Cs). Thank you again! momer

          B Offline
          B Offline
          Brian Nottingham
          wrote on last edited by
          #4

          Right, thats what I am saying. If you have VS.NET installed on your computer, then you have the .NET Framework installed, and thus your program works. If the other PC's do not have VS.NET installed, or the .NET Framework installed, then your program would not work.

          M 2 Replies Last reply
          0
          • B Brian Nottingham

            Right, thats what I am saying. If you have VS.NET installed on your computer, then you have the .NET Framework installed, and thus your program works. If the other PC's do not have VS.NET installed, or the .NET Framework installed, then your program would not work.

            M Offline
            M Offline
            momer
            wrote on last edited by
            #5

            Hi,Brian, So,Do we have to ask our customs to install .NET Framework before use our application developed by C#.NET? what if the application developed by VC.net? And the .NET Framework package 1.1 is 23.5MB,is it necessary to force our customs to install the whole package? Maybe there is one or more alternative way to solve this problem. momer

            D 1 Reply Last reply
            0
            • B Brian Nottingham

              Right, thats what I am saying. If you have VS.NET installed on your computer, then you have the .NET Framework installed, and thus your program works. If the other PC's do not have VS.NET installed, or the .NET Framework installed, then your program would not work.

              M Offline
              M Offline
              momer
              wrote on last edited by
              #6

              Hi,Brian, So,Do we have to ask our customs to install .NET Framework before use our application developed by C#.NET? what if the application developed by VC.net? And the .NET Framework package 1.1 is 23.5MB,is it necessary to force our customs to install the whole package? Maybe there is one or more alternative way to solve this problem. momer

              B 1 Reply Last reply
              0
              • M momer

                Hi,Brian, So,Do we have to ask our customs to install .NET Framework before use our application developed by C#.NET? what if the application developed by VC.net? And the .NET Framework package 1.1 is 23.5MB,is it necessary to force our customs to install the whole package? Maybe there is one or more alternative way to solve this problem. momer

                B Offline
                B Offline
                Brian Nottingham
                wrote on last edited by
                #7

                Yes, your customers would have to install the .NET Framework before using any application developed in a .NET language. The .NET Framework is not required for C++\MFC, but it is however required if you use MC++.

                1 Reply Last reply
                0
                • M momer

                  Hi,Brian, So,Do we have to ask our customs to install .NET Framework before use our application developed by C#.NET? what if the application developed by VC.net? And the .NET Framework package 1.1 is 23.5MB,is it necessary to force our customs to install the whole package? Maybe there is one or more alternative way to solve this problem. momer

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  Your customer MUST install the .NET Framework (the same version you developed your app under) in order to run your application. If you app was written using C++/MFC, without using any managed extension, then you can get away with deploying your app without the .NET Framework. But, if your app was coded in Managed C++, then your customers will have to install the Framework in order to use your app. There are projects out there that will strip down the .NET Framework and install only those components requires by your application, but this is NOT a recommended practice. It makes the Framework lighter in terms of disk space, but if your custom were to try and install a Service Pack for the .NET Framework, it won't work. Also, if you run into problems and must consult Microsoft on the issue, the FIRST thing they'll tell you to do is install the ENTIRE .NET Framework. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups