I really don't know what's going on, but --

You didn't give enough context; what namespace contains XASecurityPermissionAttribute 
(XASPA)?  Is the RequestType enumeration declared in that namespace?

What in the USES clause of the apps that fail is referencing the assembly containing 
XASPA?  (If the answer is "nothing; it's not in the uses" then how can the code 
compile without specifying the complete namespace of XASPA in the attribute 
instantiation?)

Can you explain why any code is looking for Framework.Security rather than 
SXA.Framework.Security (assuming that's the name of an assembly)?

(Please try to paste the code next time without causing double-spacing.)

At 05:43 PM 9/10/2003 -0400, Squires, Damon wrote
>I am having the following issue with a custom attribute I've created. I have
>inherited from CodeAccessSecurityAttribute and I receive this error:
>
>C:\Custom\TestCustomPrincipal\TestSecuredObject.cs(23): Error emitting
>XASecurityPermissionAttribute' attribute -- 'Failed to load assembly
>Framework.Security -- System.IO.FileNotFoundException: File or assembly name
>Framework.Security, or one of its dependencies, was not found.
>
>File name: Framework.Security"
>[snip]
>The error comes when I apply the attribute as follows.
>
>[XASecurityPermission(SecurityAction.Deny ,
>RequestTypeCheck=RequestType.CreateModifyOwn | RequestType.ModifyElse)]
>
>public void SetX(int value)
>{
>      _val = value;
>}
>
>I get the error for every application. I have attempted modifying the
>IPermission that gets returned and that is to no avail.
>
>I've also checked and yes the file exists :-) The project doesn't reference
>anything other than the mscorlib and System.dll.
>
>Thanks in advance,
>
>Damon Squires
>
>MCSD.NET MCDBA MCAD SCJP
>
>0x2B || ~0x2B


J. Merrill / Analytical Software Corp

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to