Re: Custom Permission Installation nightmare

From: Shel Blauman [MSFT] (sheldonb@online.microsoft.com)
Date: 03/27/03


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!


Relevant Pages

  • Re: Class with property named "Type"
    ... Public Function As String ... Dmitriy. ... The square brackets around an identifier feature is provided ... >> called it 'typf' and created the dll. ...
    (microsoft.public.vb.general.discussion)
  • Re: Calling a VB dll from vc++ 6.0
    ... As far as I can tell the dll seems to be fine but I get an access ... Public Function DecrementAs Integer ... Also, be aware that Long is a more appropriate VB type, equivalent to an 'int' in C. ... Public Const DLL_PROCESS_DETACH = 0 ...
    (comp.lang.basic.visual.misc)
  • Run-time Error 430, WITH non-broken binary compatibility?
    ... I've been building a DLL to use as a library against which a small ... One class in the library is a FormFactory. ... Public Function createFormas IMyForms ...
    (microsoft.public.vb.general.discussion)
  • Run-time Error 430, WITH non-broken binary compatibility?
    ... I've been building a DLL to use as a library against which a small ... One class in the library is a FormFactory. ... Public Function createFormas IMyForms ...
    (microsoft.public.vb.general.discussion)
  • dll help
    ... Public Function toplama ... Set objName = Server.CreateObject ... this the first time i use a dll and i think i ...
    (microsoft.public.inetserver.asp.general)