RE: Force Security Zone at Runtime
From: Robert Gruen [MSFT] (robgruen_at_online.microsoft.com)
Date: Wed, 21 Jan 2004 19:16:36 GMT
The only way I can think for you to do this is to modify the security
policy to grant a specific code access group to the assembly you're
running. The best approach would be to actually run the assembly from the
zone you want to test it against, this will ensure that you are running
against the correct permmission set. One easy configuration for this would
be to modify the intranet zone to have the same permissions as the internet
and then to run the application from a network drive.
Thanks! Robert Gruen
This posting is provided "AS IS", with no warranties, and confers no rights.
| From: "Jody Gelowitz" <firstname.lastname@example.org>
| Subject: Force Security Zone at Runtime
| Date: Wed, 21 Jan 2004 08:58:55 -0800
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <u3k2a$D4DHA.1728@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.security
| NNTP-Posting-Host: 22.214.171.124
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.security:4542
| X-Tomcat-NG: microsoft.public.dotnet.security
| Is there a way to force a security zone on an application at runtime?
| I have a Windows Application that I would like to emulate being run over
| Internet Zone as opposed to Full Trust for debugging purposes without
| to set my permissions beforehand.