HOWTO: Configure Visual InterDev to Work with an Authenticated Web ProjectID: Q178215
|
The default setup of a Visual InterDev project will not allow both the Web
server to access a file database (for example, Access or FoxPro database)
and authors on remote machines to use Visual InterDev to work on the
project when Active Server Pages (ASP) pages that perform database access
are secured.
This article describes how to setup a Visual InterDev project so that data
access works correctly from the secured pages, and individuals on other
machines can use Visual InterDev to author those pages.
While this article uses an Access .mdb file as the example, the discussion
applies to any file based resource.
Symptoms for this problem can appear on either the Web server or the Visual
InterDev clients. The most common symptoms are as follows:
Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Microsoft Access 97 Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
The root of this problem is that the Web server and Visual InterDev clients have conflicting needs with respect to the kind of path used to reference the database.
DSN=MyDSN;DBQ=C:\data\orders.mdb;DriverId=25;FIL=MS Access...
to simply this:
DSN=MyDSN
Notice that there is no longer a DBQ in the connection string that points
to the file. When the Web server reads the Global.asa, it will look on its
own local system for the "MyDSN" data source and use the information it
contains to access the database. Likewise, when the Visual InterDev clients
read the Global.asa, they will look on their local systems for a DSN of the
same name and use that information. The key is to manually create these
DSN's with the appropriate information for each platform.
For a complete discussion on NT challenge/response and delegation, see the following:
http://msdn.microsoft.com/library/backgrnd/html/msdn_implement.htm
http://support.microsoft.com/support/vinterdev/
Additional query words:
Keywords : kbExtension kbNTOS400 kbVisID100 kbVisID600 kbGrpASP FTAuthent
Version : WINDOWS:1.0,6.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: May 11, 1999