Custom Permission Installation nightmare
From: mazz (m_tout@hotmail.com)
Date: 03/26/03
- Next message: Juan Ramon Martinez: "Re: Encrypting byte array"
- Previous message: Hoop Somuah: "Remoting Context"
- Next in thread: Shel Blauman [MSFT]: "Re: Custom Permission Installation nightmare"
- Reply: Shel Blauman [MSFT]: "Re: Custom Permission Installation nightmare"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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!
- Next message: Juan Ramon Martinez: "Re: Encrypting byte array"
- Previous message: Hoop Somuah: "Remoting Context"
- Next in thread: Shel Blauman [MSFT]: "Re: Custom Permission Installation nightmare"
- Reply: Shel Blauman [MSFT]: "Re: Custom Permission Installation nightmare"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]