BLL Project
Category.vb
AssemblyInfo.vb
Schema Project
Category.xsd
AssemblyInfo.vb
Web Service Project
CategoryService.asmx
AssemblyInfo.vb
Web Application Project
WebServiceTest.aspx
AssemblyInfo.vb
In the BLL project's AssemblyInfo, I have the following:
<Assembly: AssemblyKeyName("...")>
and in it's Category.vb class:
< _
Transaction(TransactionOption.Required), _
StrongNameIdentityPermission( _
SecurityAction.Demand, _
PublicKey := "..." _
) _
_
Public Class Category
...
In my Web Service and Web Application projects, I have the following in
AssemblyInfo.vb files:
<Assembly: AssemblyKeyName("...")>
The key name matches the same key name in the BLL project's AssemblyInfo.vb
file. I have installed the strong-name key into the CSP and get the public
key from the dll using secutil -hex -s myassembly.dll which I place into the
StrongNameIdentityPermission attributes constructor for the Category Class
definition.
Anywho, the problem is, when I build and then run the application, I get the
following:
Server was unable to process request. --> Request for the permission of type
System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=... failed.
Anyone have any idea how to get the StrongNameIdentityPermissionAttribute
class to work correctly? I do not want SecurityAction.LinkDemand, just
SecurityAction.Demand.
Thanks,
Mythran