Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type mismatch: 'Session' - works on my PC not on Server

Status
Not open for further replies.

pmrankine

Programmer
Joined
Jul 18, 2001
Messages
71
Location
GB
I've started to write a small intranet. Got it working on my PC. The IT section needs a login, so I look up the database for the login details, then save the username to a session variable for use elsewhere. I now want to move the intranet to a server but have come up against this error:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'Session'

/Intranet/systems.asp, line 50
Line 50:
Code:
Set Session("UserID") = objRecordSet("user_name")

My original error was "Object required" - so I added "Set" to the start of the line.

The only difference I can see is that I'm running IIS5 and the server is IIS6.

Any help would be greatly appreciated.
 
Try to post in the ASP forum.
 
Thanks PHV. Posted there and then thought I should do a search! Surprise, surprise I found the answer:
Thread333-747622
which points to an MS article: "Using Session Objects with Session State Disabled Returns Type Mismatch Error" - I wasn't aware of this on my own PC but when I changed it on the server it seems to work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top