run c# app from network share
<p>I'm new to c#, so please forgive me if i ask some entry level questions.</p>

<p>currently, I have a little windows form that have cancel button on it. I noticed that when i run it on local machine the cancel button works fine. but it gives me security exceptions when running from network location on xp machine.
the exception is telling me I cannot call unmanaged code etc ....
but my form only has one button and the code within eventhandler is: Application.Exit();</p>

<p>after googling around I found that I can make changes through mscorcfg.msc to give permission to intranet. this worked for me.</p>

<p>the other workaround I found is <a href="http://msdn.microsoft.com/en-us/library/aa288469(v=vs.71).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa288469(v=vs.71).aspx</a></p>

<p>however, this is a workaround for one machine only, what if I have a hundred machines????</p>

<p>so I assume there must be some other ways to deal with this problem, can anyone please help??</p>
