Hi,
I am using an update panel for a seamless change when someone changes something on the page. However, I get an error message the second time I change something. The first time i used the update panel was to chan ge the contents of one dropdown list after another list was changed, it would work once but as soon as you change it again in that same session it would error out. I am now trying it again with a checkbox and the ToggleButtonExtender so that images toggle back and forth and I am getting the same error again. Here are the details:
Event Viweer - Application warnings:
Event code: 3009
Event message: Unable to make the session state request to the session state server. Details: last phase='Sending request to the state server', error code=0x80072749, size of outgoing data=0
Event time: 7/21/2007 11:15:09 AM
Event time (UTC): 7/21/2007 5:15:09 PM
Event ID: 9010d9cb58c2471b99f8c0988127eaf5
Event sequence: 181
Event occurrence: 1
Event detail code: 50016
Application information:
Application domain: 7fb7c3c2-1-128295113834687500
Trust level: Full
Application Virtual Path: /AjaxControlToolkitWebSite2
Application Path: D:\WebProjects\AjaxControlToolkitWebSite2\
Machine name: SATURN-V
Process information:
Process ID: 4652
Process name: WebDev.WebServer.EXE
Account name: LAUNCHZONE\CurtisL
Exception information:
Exception type: HttpException
Exception message: Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.
Request information:
Request URL: http://localhost:2536/AjaxControlToolkitWebSite2/images/minus.gif
Request path: /AjaxControlToolkitWebSite2/images/minus.gif
User host address: 127.0.0.1
User: LAUNCHZONE\CurtisL
Is authenticated: True
Authentication Type: NTLM
Thread account name: LAUNCHZONE\CurtisL
Thread information:
Thread ID: 4
Thread account name: LAUNCHZONE\CurtisL
Is impersonating: False
Stack trace:
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Error on page:
Sys, WebForms.PageRequestManagerServerErrorException: an unknow error occured while processing the request on the server. the status code returned from the server was: 500
My Code:
<%@dotnet.itags.org.PageLanguage="VB"AutoEventWireup="true"CodeFile="Default.aspx.vb"Inherits="_Default" %>
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml">
<headrunat="server">
<title>Untitled Page</title></head>
<body>
<formid="form1"runat="server">
<asp:ScriptManagerID="ScriptManager1"runat="server"/>
<div>
<asp:UpdatePanelID="UpdatePanel1"runat="server">
<ContentTemplate>
<asp:TextBoxID="TextBox1"runat="server"></asp:TextBox><asp:CheckBoxID="CheckBox1"runat="server"AutoPostBack="True"/><ajaxToolkit:ToggleButtonExtenderID="ToggleCheckbox"CheckedImageUrl="images/plus.gif"ImageHeight="9"ImageWidth="9"TargetControlID="CheckBox1"UncheckedImageUrl="images/minus.gif"runat="server">
</ajaxToolkit:ToggleButtonExtender>
</ContentTemplate>
</asp:UpdatePanel>
<br/>
<br/>
<br/>
<br/>
</div>
</form>
</body></html>
Code Behind:
PartialClass _DefaultInherits System.Web.UI.Page
ProtectedSub CheckBox1_CheckedChanged(ByVal senderAsObject,ByVal eAs System.EventArgs)Handles CheckBox1.CheckedChangedDim strValueAsString =""
If CheckBox1.Checked =TrueThen
TextBox1.Text ="in"
Else
TextBox1.Text ="out"
EndIfEndSub
EndClass
I have had this error more than once now and I'm not sure how to fix it. When I remove the update panel everything works fine, any ideas?
It seems you are uaing different setting for Session other than "InProc". Pls make sure you have configured it properly.
Thanks, I think that helped.
No comments:
Post a Comment