PRB: Error Message "Unspecified Error Was Not Handled" When You Use Visual InterDev to Debug ASP Page (268710)
The information in this article applies to:
- ActiveX Data Objects (ADO) 1.5
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.01
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.1 SP1
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
- Microsoft Visual InterDev 6.0
This article was previously published under Q268710 SYMPTOMS
When you debug an Active Server Page (ASP) page by using the Visual InterDev debugger, you encounter one of the following error messages if the page creates a connection to a Microsoft Access database:
An exception of type MS Jet Database Engine: Unspecified error was not
handled.
An exception of type 'Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Microsoft Access Driver] Disk or network error.' was not handled.
CAUSE
When a connection to an Access database is established, Microsoft Jet creates a temporary file by using the credentials of the Thread identity. (Unless Anonymous access is disabled for the application, this identity is the IUSR account.)
To do this, Jet first checks the TMP or TEMP environment variable and uses that path to define where the temporary file is created. If the Thread identity user does not have appropriate access to the temp folder, one of the errors messages in the "Symptoms" section may occur.
RESOLUTION
All of the following are possible workarounds for this issue:
-
Disable Anonymous access to the directory, and enable either Basic access or Windows Integrated access. If you enable Basic, enter the credentials for the user that you are logged in as to ensure that the Thread identity is the same as the console and process identity. If you enable Windows Integrated, you do not need to enter the same credentials as the console identity; these are used automatically. This account has access to its temp folder.
To disable Anonymous and enable either Basic or Windows Integrated, follow these steps:- In Internet Services Manager, right-click the folder for your application, and then select Properties.
- On the Security tab in the Directory, click Edit for Anonymous access and authentication control.
- Deselect Anonymous Access, and then select either Basic authentication or Integrated Windows authentication. (For Internet Information Server (IIS) 4.0, select Windows NT Challenge/Response.)
-
Debug as a different user than the user who is logged in to the computer. Because the console identity (user logged in to the computer) and the process identity (user you are debugging as) are different in this scenario, Jet uses the system temp folder to which the IUSR (Thread identity) account must have access.
-
Give the IUSR account sufficient NTFS file system permissions to create a file in the temp folder of the specific user. To determine the location of the temp folder, following these steps:
- On the command line, type set.
- In the list of settings, note that there are two entries titled Temp= and Tmp=; this is the path that Jet uses.
REFERENCESFor additional information about related debuggingarticles, click the article number below
to view the article in the Microsoft Knowledge Base:
244272 INFO: Visual InterDev 6.0 Debugging Resources
For additional information about related Access articles, click the article number below
to view the article in the Microsoft Knowledge Base:
251254 PRB: Disk or Network Error or Unspecified Error Returned When Using Jet
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kbBug kbDatabase kbDebug kbDSupport kbprb kbServer kbWebServer KB268710 |
---|
|