Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get Code Access Security to work
Message
Information générale
Forum:
ASP.NET
Catégorie:
Securité
Versions des environnements
Environment:
C# 1.1
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00974554
Message ID:
00974609
Vues:
29
The simplest way:

caspol -s off

That turns off CAS on the computer. Use with caution.

The best way:

Give your assembly a strong name and in config add a code group with a membership condition that matches the strong name key and assign it full trust.

I am not sure why it doesn't work as is because by default all code from the my computer zone has full trust.



>All,
>
>I have a silly question that I have been unable to find an answer to:
>
>I have set a minimum security attribute in one of my assemblies to full trust. I have attempted (unsuccessfully) to use the .NET Framework 1.1 Configuration utility to set up the appropriate permissions but have been unable to get the thing to work right.
>
>To give more information about my problem:
>
>I have a client that is running an application on a Windows 2000 Server and having their clients log in via Terminal Services to run the application. (Don't ask why TS vs ASP.NET: I already lost that battle) Anyway, the user accounts do not have ADMIN rights on the server (and they shouldn't) but I cannot get the CAS security to work correctly. Or rather, I cannot grant the necessary FullTrust authority to the application.
>
>Any help or insight into this would be greatly appreciated.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform