Article ID: 242425 - Last Review: July 7, 2008 - Revision: 3.1 Using Session Objects with Session State Disabled Returns Type Mismatch Error
This article was previously published under Q242425 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: http://www.microsoft.com/technet/security/prodtech/IIS.mspx
(http://www.microsoft.com/technet/security/prodtech/IIS.mspx)
For more information about IIS 7.0, visit the following Microsoft Web site: http://www.iis.net/default.aspx?tabid=1
(http://www.iis.net/default.aspx?tabid=1)
SYMPTOMS
When trying to use a session-level object or variable when session state is disabled, you may receive the following error message:
Microsoft VBScript runtime error '800a000d' Type mismatch: 'Session' /scripts/sessiontest/test.asp, line XXX CAUSE
This behavior is by design. The session object is not registered in the scripting name space, so any executing scripts do not understand it and return a "Type mismatch" error message.
MORE INFORMATION
The following steps will reproduce this behavior.
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
