<er********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi all,
I have a question for you. I used a program two days ago. there was a
lan and program was just on one computer. But other computers have its
short cut icon on their desktop. And it runs. When i came home tried
to do same thing on one of my ex-projexts. But i could not be
succesfull. It gives System.Security.SecurityException. How can i
handle this problem. Can it be possible to use an exe located on the
other computer written by .NET c#?
Erman OLCA
The other computer is considered to be in the Local Intranet if you
reference it by a UNC name or a mapped drive using it's computer name. Any
..Net application running from another computer has to have the security set
accordingly. There is a wizard to trust assemblies or to change the settings
for a zone in Adminstrative Tools (W2K / XP). Note that if the computer has
only the .Net 2.0 runtime (not the SDK) then the wizard is not installed and
caspol has to be used which is a command line utility. For example to fully
trust the Local Intranet zone you can use
%windir%\Microsoft.Net\Framework\v2.0.50727\caspol -cg 1.2 FullTrust.
If the reference to the other computer uses an IP address then it will be
considered part of the Internet zone and I would NOT adjust security to
allow this to run. Change to UNC type reference, e..g
\\SERVER\share\file.exe
SP