Hello
I'm using NetAdvantage 12.1 ASP.NET CLR3x vs 2008 .
I'd like to use webupload control in my application
I got error when i add the webupload control on my page
"Session state can only be used when enableSessionState is set to true,
either in a configuration file or in the Page directive. Please also
make sure that System.Web.SessionStateModule or a custom session state
module is included in the <configuration>\<system.web>\<httpModules>
section in the application configuration."
I already input that code, my sample source as below
default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" EnableSessionState="True" %>
<%@ Register Assembly="Infragistics35.Web.jQuery.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
Namespace="Infragistics.Web.UI.DisplayControls" TagPrefix="ig" %>
<%@ Register Assembly="Infragistics35.Web.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.Web.UI.LayoutControls" TagPrefix="ig" %>
<%@ Register assembly="Infragistics35.Web.jQuery.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.EditorControls" tagprefix="ig" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<ig:WebUpload ID="WebUpload1" runat="server">
</ig:WebUpload>
<form id="form1" runat="server">
<div>
</form>
</body>
</html>
web.config
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
<add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule" />
</httpModules>
And i got same error message from your sample source
it doesn't work either
Any help in resolving this would be greatly appreciated!
Thanks.
Hi cyc0521,
Can you try to put the following line on page load:
var session = this.Session;
Let me know if this helps.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Hi gsashev.
Actually, not yet, I could not find out this problem from this thread.
http://community.infragistics.com/forums/p/65795/345264.aspx#345264
i still got message as below
i wish i could make a web application like your sample site but ....
please, give me a solution
Hi Cyc0521,
Were you able to handle this.
For any further assistance do not hesitate to contact me.
This was known issue which should be fixed in the latest service releases.
Follow this thread here: