IIS7: cannot access a database from a page with authentication on local webserver
- From: Noël Danjou [noeld] <noeld@xxxxxxxxxxxxx>
- Date: Thu, 9 Aug 2007 12:19:16 +0200
Vista Ultimate / IIS7
MS Access 2000 database
Hello,
I have an .ASP page that requires authentication. I enabled Windows Authentication in IIS Manager > Authentication.
For the database, I successfully completed the solutions and workaround in KB article at
http://support.microsoft.com/kb/926939/. I also gave IUSR > Modify rights to the containing folder and database files.
The ASP page begins as follow:
<% @Language=JScript %>
<%
var bAccessDenied = (Request.ServerVariables("LOGON_USER") == "");
if (bAccessDenied)
{
Response.Status = "401 access denied";
}
else
{
var oConn = Server.CreateObject("ADODB.Connection");
var strDBPath = Server.MapPath("/db/data.mdb");
var strOpen = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strDBPath;
oConn.Open(strOpen); // <<<< JET error here when authenticated
}
%>
When I open the page on a remote server (running IIS6) I can successfully access the page but when I try it on my local webserver, I get:
Microsoft JET Database Engine error '80004005'
Unspecified error
Without authentication, the page works correctly remotely and locally.
Could you please tell me how to fix this issue? Thank you.
--
Noël
http://noeld.com/
.
- Follow-Ups:
- Re: IIS7: cannot access a database from a page with authentication on local webserver
- From: Daniel Crichton
- Re: IIS7: cannot access a database from a page with authentication on local webserver
- Prev by Date: Re: hide IP address ..
- Next by Date: Re: IIS7: cannot access a database from a page with authentication on local webserver
- Previous by thread: Re: IIS prompt for domain userid after server is hardened
- Next by thread: Re: IIS7: cannot access a database from a page with authentication on local webserver
- Index(es):
Relevant Pages
|