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