Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
redtail  
#1 Posted : Tuesday, March 14, 2006 2:13:29 PM(UTC)
redtail

Rank: Member

Groups: Member
Joined: 3/14/2006(UTC)
Posts: 2

How do I resolve this error (I did not receive this on my dev env.). I am using SQL Server Session State.

Using Win2003 IIS 6

Code:
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.HttpException: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive

Source Error: 


Line 40:         
Line 41:         Public Sub New()
Line 42:             MyBase.New
Line 43:             Dim dependencies As System.Collections.ArrayList
Line 44:             If (ASP.upload_aspx.__initialized = false) Then
 

Source File: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\ddaed0d2\ea60270\ysceifha.0.vb    Line: 42 

Stack Trace: 


[HttpException (0x80004005): Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive]
   System.Web.UI.Page.get_Session() +147
   Imaging.upload..ctor() +96
   ASP.upload_aspx..ctor() in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\ddaed0d2\ea60270\ysceifha.0.vb:42

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
   System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +164

[HttpException (0x80004005): Failed to create page of type 'ASP.upload_aspx'.]
   System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +340
   System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +44
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +699
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300 

Edited by user Monday, February 18, 2008 1:38:35 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Wednesday, March 15, 2006 1:56:15 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Try to run Aurigma sample on your site. If it works then the problem is in your code. It looks like you have done something wrong with enableSessionState configuration property value.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.