C # application over the network

I came across several cases when I was asked to deploy the application (C #,. Net 2.0) to the server, and users need to test the application over the network. I found the following that works without any delay, except for a warning telling you β€œhey that you are doing this over a network, are you sure you want to do this?”:

%systemroot%\Microsoft.NET\Framework\v2.0.50727\caspol -m -cg 1.2 -url \\<Path> FullTrust

Is there a better way to centralize the application than higher?

+3
source share
4 answers

FullTrust , . - /, fulltrust .

, "" , , , , win32, , .

- . - ClickOnce, .

+4

ClickOnce . , .

+6

The best solution is probably to sign your assemblies and push a full trust policy to all client machines for these assemblies. Then simply run them from the network share on the UNC path, as if they were local.

+2
source

You can explore ClickOnce deployment. Usually a much better way to deploy than running on a shared resource.

+1
source

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


All Articles