Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
Using an ODBC DSN
Insufficient Permissions to Read the DSN Registry Key
Grant the Windows NT 4.0 or Windows 2000 user account Read access
to the specified ODBC System DSN registry key as follows:
- Determine which account is used to process the request for
the ASP page.
- From the Start menu, click Run, type regedt32.exe, and then click OK to start Registry Editor.
- In the HKEY_LOCAL_MACHINE window, browse to the HKLM\SOFTWARE\ODBC\ODBC.INI key. The ODBC.INI key contains a subkey for each ODBC SYSTEM DSN that is registered
on the server.
- Click the DSN registry key for the DSN that is specified in
the ADO connection string.
- From the Security menu, click Permissions.
- Add the user account that you identified in step 1 to the
list of users who can access this key, and select the Read check box for this user.
- Click Apply, and then close Registry Editor.
Specified DSN Does Not Exist on the IIS Server
Create the specified System ODBC DSN on the IIS Server.
Global.asa Code to Initialize the ADO Connection String Is Not Running
- Verify that the IIS Application folder has been set up as
an IIS virtual directory with permissions to execute scripts.
- Verify that the Global.asa file is located in the IIS
application's root directory.
- If the Application folder is already set up as an IIS
virtual directory, remove and re-create the IIS application.
- Refer to the articles that are listed in the "References"
section to determine if any of these articles apply to your specific
scenario.
- Contact Microsoft Product Support Services if the code in
Global.asa still does not appear to be running after you perform the preceding
steps.
Using a DSN-Less Connection String
Insufficient Permissions to Read the Specified ODBC Driver Registry Key
Grant the Windows NT 4.0 or Windows 2000 user account Read access
to the specified ODBC Driver registry key as follows:
- Determine which account is used to process the request for
the ASP page.
- From the Start menu, click Run, type regedt32.exe, and then click OK to start Registry Editor.
- In the HKEY_LOCAL_MACHINE window, browse to the HKLM\SOFTWARE\ODBC\ODBCINST.INI key. The ODBCINST.INI key contains a subkey for each ODBC Driver that is installed on
the server.
- Click the Driver registry key for the Driver that is
specified in the ADO connection string.
- From the Security menu, click Permissions.
- Add the user account that you identified in step 1 to the
list of users who can access this key, and select the Read check box for this user.
- Click Apply, and then close Registry Editor.
Driver Name Is Misspelled or Is Not Installed on the IIS Server
Verify that the ODBC Driver name is spelled correctly in the ADO
connection string. In addition, verify that the specified driver is installed
on the IIS Server. To view a list of ODBC drivers that are installed on a
system, look in the ODBC Data Source Administrator (Odbcad32.exe) on the
Drivers tab.
Global.asa Code to Initialize the ADO Connection String Is Not Running
- Verify that the IIS Application folder has been set up as
an IIS virtual directory with permissions to execute scripts.
- Verify that the Global.asa file is located in the IIS
application's root directory.
- If the Application folder is already set up as an IIS
virtual directory, remove and re-create the IIS application.
- Refer to the articles that are listed in the "References"
section to determine if any of these articles apply to your specific
scenario.
- Contact Microsoft Product Support Services if the code in
Global.asa still does not appear to be running after you perform the preceding
steps.