Last post Nov 27, 2006 05:28 AM by dhruvin.gajjar
Nov 27, 2006 02:04 AM|Ashutosh Bhardwaj|LINK
I am trying to use the data access block in enterprise library June 2005 version. I am trying to build a simple application which queries the database(Oracle in my case) and binds the result to datagrid.But when I complie the application is throws the following
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: Requested registry access is not allowed.
This is the extract from my dataconfiguration.config file:
and here is the code which i am using:
Database db = DatabaseFactory.CreateDatabase();
DBCommandWrapper dbcomm = db.GetSqlStringCommandWrapper(sqlstr);
Can anyone please let me know what is it that I am doing wrong.
Thanks in advance
Nov 27, 2006 05:28 AM|dhruvin.gajjar|LINK
are you using it for Web Project? If yes then here is something you may find usefule information. I was facing the same problem in my web project and found one solution also after sometime.
please mark this as a reply if you find this info useful.