D
Daniel Conlon
I wish to allow ASP.NET pages to make connections to Access databases using
OleDBConnection.
The only way I have been able to make this functionality work has been to
set:
Unrestricted="true"
In the <PermissionSet> property applying to ASP.NET pages, otherwise I get:
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 failed.
I do not wish to run ASP.NET pages in an unrestricted security policy, I
would be grateful if you could inform me which permissions I must grant to
allow the use of OleDBConnection. I have granted unrestricted
OleDbPermission, FileIOPermission and RegistryPermission but to no avail.
OleDBConnection.
The only way I have been able to make this functionality work has been to
set:
Unrestricted="true"
In the <PermissionSet> property applying to ASP.NET pages, otherwise I get:
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 failed.
I do not wish to run ASP.NET pages in an unrestricted security policy, I
would be grateful if you could inform me which permissions I must grant to
allow the use of OleDBConnection. I have granted unrestricted
OleDbPermission, FileIOPermission and RegistryPermission but to no avail.