Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AllowPartiallyTrustedCallersAttribute
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Securité
Titre:
AllowPartiallyTrustedCallersAttribute
Divers
Thread ID:
01181439
Message ID:
01181439
Vues:
61
Hi All

I am having trouble running my ASP.NET 2.0 web app after the recent security
update made by my Web Hosting provider.

I received a notification from them that my DLL's will need to be modified to use the AllowPartiallyTrustedCallersAttribute class and then re-published.

I modified my C## Assembly to include the following:

[assembly: AllowPartiallyTrustedCallers]

I also signed my assembly with a strong name key.

After I re-publish my project I am getting the same error message that started right after Web Hosting provider did the security update:
Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. 

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Any help would be greatly appreciated.
Daniel
Répondre
Fil
Voir

Click here to load this message in the networking platform