By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,127 Members | 1,343 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,127 IT Pros & Developers. It's quick & easy.

OleDBConnection Security Exception

P: n/a

I've try the following code in the ASPX and it throw a Security
Exception in the runtime, but I've try to run on my colleagues machine
without any problem.

I am using XP Pro and IIS5.1 , I've recently change the file system
from FAT32 to NTFS, is is the matter of NTFS security issue or
something else?

Thanks for helps.

The exception details and the code is like this:
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: Requested
registry access is not allowed.

Line 17: string connStr = @"Provider=SQLOLEDB; Server=DUMMY;
Database=DUMMYDB; UId=FOO; Pwd=BAR";
Line 18: OleDbConnection conn = new OleDbConnection(connStr);
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.