Home All Groups Group Topic Archive Search About

Code Access Policy Zone Problem

Author
7 Nov 2006 8:04 PM
Fran Parker
Hi, I'm having a problem related to Code Access Policy zones.  I have a .NET
2.0 executable that when run directly from a local drive letter (e.g.
c:\Test\MyEXE.EXE) works just fine.  However, if I share the folder that the
EXE is in and then attempt to run it through the share, it will fail to
start up.  The share that I am trying to run it through is on the computer
that I am trying to run the app from (i.e. even though I am using a share,
only one computer is involved).  I ran caspol.exe  to see what code groups
the EXE was in and was surprised to see that it was in the Internet group
rather than the Intranet group.  I tried the same thing on some other
computers and it worked as expected.  So, long story short, one of my
computers seems to believe that its own shares are in the Internet zone and
not the Intranet zone.  Does anyone know how the zone determination is made
or what might cause it to go awry?  Thanks for your help.

Fran Parker
MaxQ Technologies, Inc.

Author
7 Nov 2006 10:21 PM
Claus Konrad [MCSD]
Zones are evaluated according to what is specified in IE's security tab.
So if your machine is not part of the trusted zone (Local_Intranet) you are
subject to reduced permissions as you've discovered.

In short - zone evaluation is driven by IE's settings.
--
rgds.
/Claus Konrad
MCSD.NET (C#)


Show quoteHide quote
"Fran Parker" wrote:

> Hi, I'm having a problem related to Code Access Policy zones.  I have a .NET
> 2.0 executable that when run directly from a local drive letter (e.g.
> c:\Test\MyEXE.EXE) works just fine.  However, if I share the folder that the
> EXE is in and then attempt to run it through the share, it will fail to
> start up.  The share that I am trying to run it through is on the computer
> that I am trying to run the app from (i.e. even though I am using a share,
> only one computer is involved).  I ran caspol.exe  to see what code groups
> the EXE was in and was surprised to see that it was in the Internet group
> rather than the Intranet group.  I tried the same thing on some other
> computers and it worked as expected.  So, long story short, one of my
> computers seems to believe that its own shares are in the Internet zone and
> not the Intranet zone.  Does anyone know how the zone determination is made
> or what might cause it to go awry?  Thanks for your help.
>
> Fran Parker
> MaxQ Technologies, Inc.
>
>
>
Author
13 Nov 2006 11:15 PM
Nicole Calinoiu
What path are you using to access the share?


Show quoteHide quote
"Fran Parker" <fparker@> wrote in message
news:%23kSMNhqAHHA.3836@TK2MSFTNGP02.phx.gbl...
> Hi, I'm having a problem related to Code Access Policy zones.  I have a
> .NET 2.0 executable that when run directly from a local drive letter (e.g.
> c:\Test\MyEXE.EXE) works just fine.  However, if I share the folder that
> the EXE is in and then attempt to run it through the share, it will fail
> to start up.  The share that I am trying to run it through is on the
> computer that I am trying to run the app from (i.e. even though I am using
> a share, only one computer is involved).  I ran caspol.exe  to see what
> code groups the EXE was in and was surprised to see that it was in the
> Internet group rather than the Intranet group.  I tried the same thing on
> some other computers and it worked as expected.  So, long story short, one
> of my computers seems to believe that its own shares are in the Internet
> zone and not the Intranet zone.  Does anyone know how the zone
> determination is made or what might cause it to go awry?  Thanks for your
> help.
>
> Fran Parker
> MaxQ Technologies, Inc.
>