RE: CAS, No Touch Deployment and Flags="UnmanagedCode"
From: Shawn Farkas [MS] (shawnfa_at_online.microsoft.com)
Date: 12/30/04
- Next message: Shawn Farkas [MS]: "Re: Signing text file (.txt)"
- Previous message: ravi dasari: "SCT - RequestSecurityToken element was not recognized."
- In reply to: Greg Robinson: "CAS, No Touch Deployment and Flags="UnmanagedCode""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 30 Dec 2004 18:57:07 GMT
Hi Greg,
Try using caspol -rsg <your assembly> to figure out what code groups are
being matched. That will be the first step toward debugging this problem.
-Shawn
-Shawn
http://blogs.msdn.com/shawnfa
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Note:
For the benefit of the community-at-large, all responses to this message
are best directed to the newsgroup/thread from which they originated.
--------------------
> From: "Greg Robinson" <greg@cds-am.net>
> Subject: CAS, No Touch Deployment and Flags="UnmanagedCode"
> Date: Wed, 22 Dec 2004 11:57:59 -0500
> Lines: 42
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
> X-RFC2646: Format=Flowed; Original
> Message-ID: <#J1lkdE6EHA.3120@TK2MSFTNGP12.phx.gbl>
> Newsgroups: microsoft.public.dotnet.security
> NNTP-Posting-Host: uslec-66-255-38-123.cust.uslec.net 66.255.38.123
> Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.security:8533
> X-Tomcat-NG: microsoft.public.dotnet.security
>
> 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: Shawn Farkas [MS]: "Re: Signing text file (.txt)"
- Previous message: ravi dasari: "SCT - RequestSecurityToken element was not recognized."
- In reply to: Greg Robinson: "CAS, No Touch Deployment and Flags="UnmanagedCode""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|