Trust An assembly with .NET framework 2.0

N

nectar

Hi,

I have an ASP.NET web application that requires a signed assembly to be
downloaded from the server to the client. In prior versions of the .NET
framework, I used the .NET Framework configuration wizard to give full trust
to this assembly or any other assembly with the same signature and it worked
great.
But in the .NET Framework 2.0 the configuration wizard is only available
with the SDK which I can't install on every client PC. In the Microsoft
knowledge base I found an alternative solution using Caspol.exe but I can't
get it to work.

This is what I tried to run from the command line:
caspol -m -ag All_Code -strong -hex
0024000004800000940000000602000000240000525341310004000001000100C7A5FBE6315AC80BE4EDA04CAAB20ABE28E4AFB16714DE59DF4C32E2A6194EF84495FC8F168F4B6CCCDC99FC63B432A3F2A90DC2E390F1A36061F0E3E3EA0ED544176C7D2A3CA11F5F56142DC8B1A9453F9CD386E92B3CD98203BDA952BFB272E0C1F631D4751EDE0E553F246E23C6993D3B9AEBADE9C35DF0888321EED4B9E8 FullTrust
-name Crescendo

I also tried:
caspol -m -ag All_Code -strong -file
http://servername/iAdmin/CSCiViewerRemoteClientLib.dll FullTrust -name
Crescendo

Any help would be greatly appreciated.

thanks in advance,
Nectar
 
N

Nicole Calinoiu

You also need to specify the name and version (or lack thereof) membership
criteria. e.g.:

caspol -m -ag All_Code -strong -hex
0024000004800000940000000602000000240000525341310004000001000100C7A5FBE6315AC80BE4EDA04CAAB20ABE28E4AFB16714DE59DF4C32E2A6194EF84495FC8F168F4B6CCCDC99FC63B432A3F2A90DC2E390F1A36061F0E3E3EA0ED544176C7D2A3CA11F5F56142DC8B1A9453F9CD386E92B3CD98203BDA952BFB272E0C1F631D4751EDE0E553F246E23C6993D3B9AEBADE9C35DF0888321EED4B9E8
-noname -noversion FullTrust -name Crescendo

BTW, unless you really need to grant full trust across all zones, it would
be add the new code group only under the zone from which code with this
signature is actually expected to be run.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top