Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get Code Access Security to work
Message
General information
Forum:
ASP.NET
Category:
Security
Environment versions
Environment:
C# 1.1
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00974554
Message ID:
00974609
Views:
28
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform