Re: How do I programmatically verify that strong naming is turned off
- From: "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com>
- Date: Wed, 30 Nov 2005 10:15:40 -0500
I've never come across any built-in API for this. You can, however, read
the list of the verification skip entries from the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\StrongName\Verification registry key.
BTW, do you need to throw even if the assembly and/or key's presence on the
skip list had no effect (i.e.: if the assembly was fully and validly
signed)? If not, you might want to consider re-validating the assembly
rather than examining the skip list. The StrongNameSignatureVerificationEx
function can be used for this. See
http://blogs.msdn.com/shawnfa/archive/2004/06/07/150378.aspx for details.
"Ganesh" <gr-comdev@xxxxxxxxx> wrote in message
news:O1eQReU9FHA.2792@xxxxxxxxxxxxxxxxxxxxxxx
>I have a requirement to throw an error if the end user turned off strong
>named validation for the assembly or any of its calling assemblies using
>the sn tool.
>
> I know I can make the check using the sn tool, but I want to do it during
> runtime.
>
> regards
> Ganesh
.
- Follow-Ups:
- Prev by Date: Re: Web App Security and MSIE Settings
- Next by Date: Re: HOWTO Use CASPOL for Full-Trust
- Previous by thread: Re: Web App Security and MSIE Settings
- Next by thread: Re: How do I programmatically verify that strong naming is turned off
- Index(es):
Relevant Pages
|