Running a .NET application from a public folder without signing a code

The .NET security model generates security errors when the .NET exe is launched from a file share. Error starting from local disk. Does anyone know this without requiring code signing?

+2
source share
7 answers

Use caspol.exe to assign enough permissions to this file to run your program.

+2
source

Perhaps you can create an application against .net 3.5 sp1, this version removes this security setting.

+2
source

To get around this, we have finished migrating our .exe in a batch file. The batch file copied the .exe file to the local disk and ran it from there. I'm sure there is a less hacky way!

+1
source

Ensure that .Net 3.5SP1 is installed on the computer running the software. This version removes the security restriction for applications running from file sharing. This allows them to work with full confidence compared to the previous model, which puts them in a limited environment.

Here is a link to Vance's blog article on this subject

+1
source

You can use the .Net configuration wizard to weaken security for a particular assembly and its location, which, in turn, can be deployed using Group Policy. You can also use caspol, as mentioned earlier.

Another alternative is to use code access protection. There is a brilliant MSDN article here explaining this.

The third option is to use clickonce deployment, but when it is executed, a local instance of the assembly is created.

0
source

You can use Click "Deploy Deployment " to deploy the application from a shared folder.

0
source

Source: https://habr.com/ru/post/1315173/


All Articles