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