RE: Security exception related to network

Anwarul_at_NATSPEC
Date: 05/23/05


Date: Sun, 22 May 2005 17:41:03 -0700

hanks for the reply. I have re-set the code access security settings in
Administrative Tools -> .Net FrameWorks Configuration and made it set to full
trust "intranet zone". That solves the problem.

Thank you all for your input.

-- 
Anwarul Aziz
NATSPEC,
Construction Information Systems
Milsons Point, Sydney.
Australia
"Marinus Holkema" wrote:
> When you run your application local the application is run unther the 
> My_Computer_Zone Code Group.   This group has default a full trust Permission 
> Set.
> 
> When you run your application from an netweok drive it's run under the Local 
> Intranet Zone group. This group has restricted permission.
> 
> You can manage your permissions with the .NET Configuration Tool found in 
> Admistrative tools in the control panel
> 
> "Anwarul@NATSPEC" wrote:
> 
> > Hi,
> > 
> > I have written an application in C# which works well in a local machine. 
> > However, it gives me a security exception when I copy the .exe file to a 
> > Windows 2003 server computer in the same network and try to run it from 
> > there. The exception message that it gives me is:
> > 
> > An unhandled exception of type 'System.Security.SecurityException' occurred 
> > in Unknown Module.
> > 
> > Additional information: Request failed.
> > 
> > With some investigation I have discovered that the exception does not occur 
> > if I take off the following line of code from the application:
> > 
> > Process.Start("www.hotmail.com");
> > 
> > I have looked in the MSDN and tried to implement 
> > [SecurityPermissionAttribute()] correctly or incorrectly, but to no avail. I 
> > wonder in .Net is it allowed to install applications in another server 
> > machine across the network within a LAN. Can someone please shed some lights 
> > here?
> > 
> > -- 
> > Anwarul Aziz


Relevant Pages

  • Re: Cannot create COM instance at runtime
    ... both the interop type library and the assembly exe full trust minimum ... permissions through the Increase Assembly Trust wizard on the .NET ... Framework 2.0 Configuration runtime security page. ... is the same exception. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Trust Issue with SqlConnection
    ... Maybe I'm missing something relating to Full Trust. ... >> hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ... >> When JIT debugging is enabled, any unhandled exception ...
    (microsoft.public.dotnet.security)
  • Re: How to react on nil or wrong object-type as parameter
    ... This seems very optimistic to me if not naiv. ... You cant just trust that the any programmer who uses your class knows what exactly is happening in your method and which type of object is required. ... duck typing means you just use those methods needed and if the type doesn't match the caller gets bitten by an exception. ...
    (comp.lang.ruby)
  • Re: Odds of winning
    ... something of an exception, since there are no real decisions to make ... plays are mechanically controlled by the rules), ... version that reduces the house edge below 1%, ... can't trust a murderous spy, ...
    (rec.arts.sf.written)