Hi All..
I tried to create an attribute,more or less the same as .NET role base
security provides (I mean like PrincipalPermissionAttribute). I inherit from
CodeAccessSecurityAttribute and it compiled.
When I put the attribute in my ASP.NET project I got the following error :
c:\inetpub\wwwroot\GaliSite\Test.aspx.cs(71): Error emitting
Att.CheckRolesAttribute' attribute -- 'Failed to load assembly Att --
System.IO.FileNotFoundException: 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.1321.28423, Culture=neutral,
PublicKeyToken=null
(Fully-specified)
LOG: Appbase = c:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE
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\IDE
' 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