Custom Permission Installation nightmare

From: mazz (m_tout@hotmail.com)
Date: 03/26/03


From: mazz <m_tout@hotmail.com>
Date: Wed, 26 Mar 2003 06:49:23 -0800


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!