CAS, No Touch Deployment and Flags="UnmanagedCode"
From: Greg Robinson (greg_at_cds-am.net)
Date: 12/22/04
- Next message: Scott Leonard: "Re: Security Exception - Winform usercontrol hosted in ASP.NET"
- Previous message: Nicole Calinoiu: "Re: Strange permission issue with a UserControl"
- Next in thread: Shawn Farkas [MS]: "RE: CAS, No Touch Deployment and Flags="UnmanagedCode""
- Reply: Shawn Farkas [MS]: "RE: CAS, No Touch Deployment and Flags="UnmanagedCode""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 22 Dec 2004 11:57:59 -0500
We No Touch Deploy our assemblies from a web server. So, our app runs from
the download cache.
We have a custom URL code group on each machine with FullTrust.
On the web server, our assemblies are stored in a folder called, lets say
"Folder1". The code url condition type points to the web server\Folder1.
The permission set is FullTrust.
All works well.
Today, I created a new web folder, call it "Folder2" and copied all of the
assemlbies in "Folder1" to "Folder2".
I created a new code group, FullTrust, different URL (points to Folder2).
When deploying our assemblies from Folder2, I am getting a CAS exception
inside one of the download assemblies:
The state of the failed permission was:
<IPermission class="System.Security.Permissions.SecurityPermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="UnmanagedCode"/>
I think this is happening on a p/invoke API call.
My question is why does this work from one web folder and not another, when
they contain the exact same assemblies and the client has FullTrust for both
URLs?
If I
CASPOL -s off
all works fine. So, I know it's a CAS issue, but why?
- Next message: Scott Leonard: "Re: Security Exception - Winform usercontrol hosted in ASP.NET"
- Previous message: Nicole Calinoiu: "Re: Strange permission issue with a UserControl"
- Next in thread: Shawn Farkas [MS]: "RE: CAS, No Touch Deployment and Flags="UnmanagedCode""
- Reply: Shawn Farkas [MS]: "RE: CAS, No Touch Deployment and Flags="UnmanagedCode""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|