New Attribute

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Zviki Goldberg

    #1

    New Attribute

    Hi All..

    I tried to create an attribute,more or less the same as .NET role base
    security provides (I mean like PrincipalPermis sionAttribute). I inherit from
    CodeAccessSecur ityAttribute and it compiled.
    When I put the attribute in my ASP.NET project I got the following error :

    c:\inetpub\wwwr oot\GaliSite\Te st.aspx.cs(71): Error emitting
    Att.CheckRolesA ttribute' attribute -- 'Failed to load assembly Att --
    System.IO.FileN otFoundExceptio n: File or assembly name Bll.Web.UI, or one of
    its dependencies, was not found.
    File name: "Att"

    === Pre-bind state information ===
    LOG: DisplayName = Att, Version=1.0.132 1.28423, Culture=neutral ,
    PublicKeyToken= null
    (Fully-specified)
    LOG: Appbase = c:\Program Files\Microsoft Visual Studio .NET
    2003\Common7\ID E
    LOG: Initial PrivatePath = NULL
    Calling assembly : (Unknown).
    ===

    LOG: Private path hint found in config'


    I put the DLL into 'c:\Program Files\Microsoft Visual Studio .NET
    2003\Common7\ID E
    ' as it says and it worked great...
    Can someone tell me what I have to do in oreder not to put the DLL there ??

    Thanks... Zviki




Working...