This topic is locked

VBScript error: 800a000d

7/23/2004 11:47:22 AM
ASPRunnerPro General questions
ngomong author

Hi all,
I am trying to deploy an ASPRunner page, running on IIS, connecting to a SQL Server database. I can bring up the login page, but I get this error when it first tries to connect to the database:

Microsoft VBScript runtime  error '800a000d'
Type mismatch: 'Session'
/supply/login.asp, line 48


The line in question is the third line below:

  If StrComp(cPassword, Request("password"), vbBinaryCompare) = 0 _

   and StrComp(cUserName, Request("username"), vbBinaryCompare) = 0 Then

   Session("UserID") = Request("username")

   Session("AccessLevel")=ACCESS_LEVEL_USER

   Response.Redirect Replace("Contacts_list.asp", "%20", " ")


Can anybody explain to me what is going wrong?
Thanks!

ngomong author 7/23/2004

Well, I figured it out. Session objects weren't enabled for that directory:
http://support.microsoft.com/default.aspx?...kb;en-us;242425
Just needed to go into IIS to enable session objects.