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. Application could not start error 0xC0000006 starting C# .NET 2.0 program

Application could not start error 0xC0000006 starting C# .NET 2.0 program

Scheduled Pinned Locked Moved C#
csharphelpsysadmin
6 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.
  • E Offline
    E Offline
    eljainc
    wrote on last edited by
    #1

    Hello, I am getting an error 0xC0000006 when starting program that normally starts up and runs fine. It is being executed from a network drive. I am working with .NET 2.0, however some machines that I am using have the .NET 3.5 or .NET 4.0 runtime installed. The machines that are giving the errors are running Windows 7 Professional. Any help or advice is appreciated.

    D 1 Reply Last reply
    0
    • E eljainc

      Hello, I am getting an error 0xC0000006 when starting program that normally starts up and runs fine. It is being executed from a network drive. I am working with .NET 2.0, however some machines that I am using have the .NET 3.5 or .NET 4.0 runtime installed. The machines that are giving the errors are running Windows 7 Professional. Any help or advice is appreciated.

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

      You MUST have .NET 2.0 installed and, by default, code running from network sources is not trusted. Your code is running in a very restricted sandbox. So, either you have to tell the machine to trust the network source, or move the .EXE to the local hard drive and run it from there. Running from a network source isn't the greatest idea if you're going to be replacing the .EXE since the file is locked when the code is running on any machine.

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      E 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You MUST have .NET 2.0 installed and, by default, code running from network sources is not trusted. Your code is running in a very restricted sandbox. So, either you have to tell the machine to trust the network source, or move the .EXE to the local hard drive and run it from there. Running from a network source isn't the greatest idea if you're going to be replacing the .EXE since the file is locked when the code is running on any machine.

        A guide to posting questions on CodeProject

        Click this: Asking questions is a skill. Seriously, do it.
        Dave Kreskowiak

        E Offline
        E Offline
        eljainc
        wrote on last edited by
        #3

        Dave, Thank you for your response. How do I go about telling the machine to trust the network source? Is this procedure common for all versions of Windows? (XP, Win7, Win8, Win10, etc). I don't think putting the EXE on a local drive is a good option in our case. For updates, I would have to go to every machine and update. Another vendor, which we interface with their software, they put everything on the network with no problems. Mike

        G 1 Reply Last reply
        0
        • E eljainc

          Dave, Thank you for your response. How do I go about telling the machine to trust the network source? Is this procedure common for all versions of Windows? (XP, Win7, Win8, Win10, etc). I don't think putting the EXE on a local drive is a good option in our case. For updates, I would have to go to every machine and update. Another vendor, which we interface with their software, they put everything on the network with no problems. Mike

          G Offline
          G Offline
          Garth J Lancaster
          wrote on last edited by
          #4

          look for instruction/how to use 'CasPol.exe' and see if that gives you the options Control Panel->Administrative Tools->.NET Framework Configuration ?.?->Runtime Security Policy->Adjust Zone Security might also be of some use

          E 1 Reply Last reply
          0
          • G Garth J Lancaster

            look for instruction/how to use 'CasPol.exe' and see if that gives you the options Control Panel->Administrative Tools->.NET Framework Configuration ?.?->Runtime Security Policy->Adjust Zone Security might also be of some use

            E Offline
            E Offline
            eljainc
            wrote on last edited by
            #5

            Is there something I'm misisng? I tried this and it still does not correct the problem. I had to use the caspol from the cmd line, using the guidelines seen here: [^] Any other hints? Thanks Mike

            D 1 Reply Last reply
            0
            • E eljainc

              Is there something I'm misisng? I tried this and it still does not correct the problem. I had to use the caspol from the cmd line, using the guidelines seen here: [^] Any other hints? Thanks Mike

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

              What does Google show you when you type "caspol trust network location"[^] into it?

              A guide to posting questions on CodeProject

              Click this: Asking questions is a skill. Seriously, do it.
              Dave Kreskowiak

              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