BUG: Global.asa Not Executed If Restricting Web AccessID: Q173742
|
Session variables initialized in Global.asa's Session_onStart are empty when access to the Web requires authentication, even though the user has sufficient permissions to access the Web site. There are many possible error messages associated with this behavior; however, here's the most common:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified
/<web name>/<asp filename>.asp, line xx
Active Server Pages (ASP) requires Anonymous access to Global.asa regardless of the authentication process.
To fix this behavior, change the NTFS permissions on the Global.asa file to
give the Anonymous Logon account -- as defined in the "Internet Service
Manager" -- Read (RX) permissions. For instructions on setting file
permissions, see Windows NT Help.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
<META HTTP-EQUIV="Content-Type" content="text/html;
charset=iso-8859-1">
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>
<%x=Session("session_var")
if x <>"" then
response.write "Global.asa was executed.<br> Session_var="&x
else
response.write "Global.asa was NOT executed.<br> Session_var="&x
end if%>
</BODY>
</HTML>
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Session_OnStart
Session("session_var")="Hello"
End Sub
</SCRIPT>
For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:
http://support.microsoft.com/support/vinterdev/
Additional query words:
Keywords : kbcode kbASP kbASPObj kbVBScript kbVisID100 kbWebServer kbGrpASP
Version : winnt:
Platform : winnt
Issue type : kbbug
Last Reviewed: May 27, 1999