OleDBConnection Security Exception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ecowalker

    #1

    OleDBConnection Security Exception

    Hello,

    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 .SecurityExcept ion: Requested
    registry access is not allowed.

    Line 17: string connStr = @"Provider=SQLO LEDB; Server=DUMMY;
    Database=DUMMYD B; UId=FOO; Pwd=BAR";
    Line 18: OleDbConnection conn = new OleDbConnection (connStr);


    Rgds,
    ecowalker
Working...