OdbcConnection failed when using Windows authentication and impersonation.

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default OdbcConnection failed when using Windows authentication and impersonation.

    I got the error message below when I try to open a connection with code:

    Dim connection As New OdbcConnection("Driver={Microsoft Text Driver (*.txt;
    *.csv)};DBQ=C:\Inetpub\aesd")
    connection.Open()

    I am developing an asp.net application on Windows XP SP2 using Windows
    authentication and impersonation. Can anyone help?
    Personal I think it is because of a permissions/security problem

    ERROR [HY000] [Microsoft][ODBC Text Driver]General error Unable to open
    registry key 'Temporary (volatile) Jet DSN for process 0xc8c Thread 0xb44
    DBC 0x86ca004 Text'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
    SQLSetConnectAttr failed ERROR [HY000] [Microsoft][ODBC Text Driver]General
    error Unable to open registry key 'Temporary (volatile) Jet DSN for process
    0xc8c Thread 0xb44 DBC 0x86ca004 Text'. ERROR [HY000] [Microsoft][ODBC Text
    Driver] Disk or network error. ERROR [HY000] [Microsoft][ODBC Text
    Driver]General error Unable to open registry key 'Temporary (volatile) Jet
    DSN for process 0xc8c Thread 0xb44 DBC 0x86ca004 Text'. ERROR [HY000]
    [Microsoft][ODBC Text Driver]General error Unable to open registry key
    'Temporary (volatile) Jet DSN for process 0xc8c Thread 0xb44 DBC 0x86ca004
    Text'. ERROR [HY000] [Microsoft][ODBC Text Driver] Disk or network error.





    Marlon Guest

  2. Similar Questions and Discussions

    1. Impersonation with Forms Authentication
      Can anybody help, I?m pretty new to .NET but followed the instructions for the following. How to authenticate against the Active Directory by...
    2. Windows authentication with impersonation - network resource access fails
      Hi, I have a question regd. Windows authentication and network file access. My asp.net application doesn't use any of the .NET's authentication...
    3. Integrated Authentication, Impersonation, and Web Services
      Environment: OS: Windows 2003 IIS: 6 ..Net Framework: 1.1 Authentication Scheme: Windows Integrated Authentication Impersonation: Enabled ...
    4. Total Confusion! - ACLs and Windows authentication with no impersonation
      Hi all, apologies if this has come up before, but I've been searching the whole day and found nothing... If I have authentication set to...
    5. Capturing a failed login within "windows authentication"
      Is there an event or "something" that happens when I can Log a message (or whatever) when a logon attempt fails when unsing "Windows...
  3. #2

    Default Re: OdbcConnection failed when using Windows authentication and impersonation.

    Hi,

    asp.net application is using asp.net local windows account, so make sure the
    account has necessary privileges (it has minimum privileges by default).
    Or, make asp.net application run under other account.
    Or, don't use integrated security.
    --
    Miha Markic [MVP C#] - RightHand .NET consulting & development
    miha at rthand com
    [url]www.rthand.com[/url]

    "Marlon" <mreid@exhibitworks.com> wrote in message
    news:uM9vaBSsEHA.904@TK2MSFTNGP11.phx.gbl...
    >I got the error message below when I try to open a connection with code:
    >
    > Dim connection As New OdbcConnection("Driver={Microsoft Text Driver
    > (*.txt;
    > *.csv)};DBQ=C:\Inetpub\aesd")
    > connection.Open()
    >
    > I am developing an asp.net application on Windows XP SP2 using Windows
    > authentication and impersonation. Can anyone help?
    > Personal I think it is because of a permissions/security problem
    >
    > ERROR [HY000] [Microsoft][ODBC Text Driver]General error Unable to open
    > registry key 'Temporary (volatile) Jet DSN for process 0xc8c Thread 0xb44
    > DBC 0x86ca004 Text'. ERROR [IM006] [Microsoft][ODBC Driver Manager]
    > Driver's
    > SQLSetConnectAttr failed ERROR [HY000] [Microsoft][ODBC Text
    > Driver]General
    > error Unable to open registry key 'Temporary (volatile) Jet DSN for
    > process
    > 0xc8c Thread 0xb44 DBC 0x86ca004 Text'. ERROR [HY000] [Microsoft][ODBC
    > Text
    > Driver] Disk or network error. ERROR [HY000] [Microsoft][ODBC Text
    > Driver]General error Unable to open registry key 'Temporary (volatile) Jet
    > DSN for process 0xc8c Thread 0xb44 DBC 0x86ca004 Text'. ERROR [HY000]
    > [Microsoft][ODBC Text Driver]General error Unable to open registry key
    > 'Temporary (volatile) Jet DSN for process 0xc8c Thread 0xb44 DBC 0x86ca004
    > Text'. ERROR [HY000] [Microsoft][ODBC Text Driver] Disk or network error.
    >
    >
    >
    >
    >

    Miha Markic [MVP C#] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139