Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Application over a Network

I have run into a few cases where i have been asked to deploy an application (C#, .Net 2.0) to a server and users need to test the application over the network. I have found the following that works with out any hitches other than a warning telling you "hey your running 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 of centralizing the application than the above?

like image 932
Random Developer Avatar asked Feb 16 '26 03:02

Random Developer


2 Answers

Try using ClickOnce deployment. We use it for all of our network-deployed applications.

like image 136
GWLlosa Avatar answered Feb 17 '26 15:02

GWLlosa


The problem with granting FullTrust, is that it really really means full trust. If your app has any sort of identity/security control, the granting fulltrust will bypass all of that.

I guess otherwise, you're "exposing" your machine to files running from that other one, so they could potentially do damage, however this is no worse than any other native win32 executable running on a remote machine, so it's no big deal IMHO.

I'd recommend the best solution is to simply install the app on your user's machines. You could use something like ClickOnce to make this painless and easy for them.

like image 36
Orion Edwards Avatar answered Feb 17 '26 17:02

Orion Edwards



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!