|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Security exception related to networkI 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 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 Show quoteHide quote "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 Marinus
Can you take a look at my message posted 5/20/05 on Appl security problems Steve Show quoteHide quote "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 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. -- Show quoteHide quoteAnwarul 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 Anwarul
Can't you compile a VS Release version of your application to your network? That's what I do. Not sure if it's proper though. maybe somebody can comment Steve Show quoteHide quote "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
RSA Encrypt/Decrypt Problems
Appliyng Security in assembly. User id of a running Windows form app Private member access. Data security/filtering on attribute values Why CAS doesn't stop things in ASP.NET apps does .NET connect to Internet to verify digitally signed assembly certificate? Allow inheritable permissions form the parent to propagate... ASP.NET roles, authentication full trus and 1.1 SP1 |
|||||||||||||||||||||||