Re: Custom Permission Installation nightmare
From: Shel Blauman [MSFT] (sheldonb@online.microsoft.com)
Date: 03/27/03
- Next message: Erik Cruz: "Role based security objects"
- Previous message: Michel Gallant \(MVP\): "Re: Signing effects"
- In reply to: mazz: "Custom Permission Installation nightmare"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Shel Blauman [MSFT]" <sheldonb@online.microsoft.com> Date: Thu, 27 Mar 2003 08:26:44 -0800
Sounds like you did all the right things. How did you put your dll into the
GAC? Did you use Gacutil? It does appear it isn't being found.
Shel
-- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "mazz" <m_tout@hotmail.com> wrote in message news:Xns934A63F3D198Cmtouthotmailcom@207.46.248.16... > i created a custompermission class (Implements > IPermission,UnrestrictedPermission) > i also created my custompermissionattribute class inheriting from > CodeAccessSecurityAttribute. > > Anywhere in my program i can use imperative permission with no problems > ex: > > public function hello() as string > dim perm as new custompermission("xxx") > perm.demand() > return "hello" > end function > > this of course will work as intended, however this one will not compile > at all: > > <custompermission(SecurityAction.Demand, xx:="xxx")> _ > public function hello() as string > return "hello" > end function > > the error is the following: > > Security attribute 'customPermissionAttribute' is not valid: Failed to > load assembly customPermission -- System.IO.FileNotFoundException: File > or assembly name customPermission, or one of its dependencies, was not > found. > File name: "customPermission" > > Fusion log follows: > === Pre-bind state information === > LOG: DisplayName = customPermission, Version=1.0.1179.23989, > Culture=neutral, PublicKeyToken=f2f90477c314ded9 > (Fully-specified) > LOG: Appbase = C:\test\customPermission > LOG: Initial PrivatePath = NULL > Calling assembly : (Unknown). > === > > LOG: Publisher pol > > > I most probably think the problem is with the installation of this > permission, however i did all i am supposed to do ie: > - Signed my dll with a key (using sn) > - Put my dll in the gac > - give me dll full trust > > still this error occurs!
- Next message: Erik Cruz: "Role based security objects"
- Previous message: Michel Gallant \(MVP\): "Re: Signing effects"
- In reply to: mazz: "Custom Permission Installation nightmare"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|