I have the Persister code working perfectly on a dev server.
GridSettingsPersister.vb located in the app_code directory.
I can get and save the session persisted value to an MSSQL database.
Click a "save" button to update a user database, load them into a session variable upon login and apply the session variable after page is loaded.
Everything works perfectly on dev server.
When I moved the code to production, the system hangs when I click the "save" button.
So, I then copied the grid persister values from the dev database to the production database.
Then when the value is retrieved and I try to apply it in the on page loaded code, I get a Security Exception error.
Any ideas what may be causing this?
Is this an "unmanaged" code error?
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.
Source Error:
Stack Trace:
GridSettingsPersister.vb located in the app_code directory.
I can get and save the session persisted value to an MSSQL database.
Click a "save" button to update a user database, load them into a session variable upon login and apply the session variable after page is loaded.
Everything works perfectly on dev server.
When I moved the code to production, the system hangs when I click the "save" button.
So, I then copied the grid persister values from the dev database to the production database.
Then when the value is retrieved and I try to apply it in the on page loaded code, I get a Security Exception error.
Any ideas what may be causing this?
Is this an "unmanaged" code error?
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.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|