RE: How to add a Assembly use protection

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Cylt,

Thank you for posting.

Regarding on your question about configure the assembly to allow only some
particular assemblies to call it, I think we can consider using the .NET
CAS security setting. In .NET built-in CAS permission setting, there is on
"StrongNameIdenitityPermission" which can help configure
assembly/class/method to allow only some certain assemblies which have
the specific strong-named to call it. We can use the following attribute
to declare such strong-name identity requirement statically:

#StrongNameIdentityPermissionAttribute Class
http://msdn2.microsoft.com/en-us/library/system.security.permissions.strongn
ameidentitypermissionattribute(VS.80).aspx

Also, you can also use the StrongNameIdentityPermission Class to
programmatically do such checking in your code at runtime:

http://msdn2.microsoft.com/en-us/library/system.security.permissions.strongn
ameidentitypermission(VS.80).aspx

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)






.



Relevant Pages

  • Re: Strong Name: Key A OR Key B
    ... You can protect assemblies based on the signed key using the declarative ... security attribute StrongNameIdentityPermissionAttribute class. ... methode or assembly only for other ...
    (microsoft.public.dotnet.security)
  • Re: Protecting Assemblies
    ... Check out the StrongNameIdentityPermissionAttribute class. ... it so that only your, trusted, assemblies can bind to your assemblies. ... someone tries to reference your assemblies, ...
    (microsoft.public.dotnet.general)
  • RE: Security requirements for deployment of assemblies
    ... We are running in a datacenter environment, and power user/admin rights are ... I don't require that the assemblies are really in the GAC, ... > You must be a BizTalk Admin to deploy assemblies to the Configuration ...
    (microsoft.public.biztalk.general)
  • Re: "Navy rule on prayer ignites a debate"
    ... :>:regulating prayer services violates the chaplains' First Amendment ... :> And where do they get the idea that people in uniform HAVE such rights ... article in the UCMJ that has anything particular to say about assemblies. ... articles to cover that, but hey, if a band of civilians was out smashing ...
    (sci.military.naval)
  • Re: Locked down security policy cannot call web service
    ... assemblies that are executed in the sceanrios you care about. ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > No mapped drives. ... > strong name the code has problems using Crystal Reports ...
    (microsoft.public.dotnet.security)