<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tips &amp; Tricks</title><link>http://forums.asp.net/53.aspx</link><description>Cool code and exciting examples, provided by our members.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Good news for those of you who get "Unable to make the session state request to the session state server." error..</title><link>http://forums.asp.net/thread/3479149.aspx</link><pubDate>Tue, 27 Oct 2009 10:11:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3479149</guid><dc:creator>Tasha1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3479149.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=53&amp;PostID=3479149</wfw:commentRss><description>&lt;p&gt;Thanks ! I am working on IIS 7 and just checking the Startup solved it for me!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Good news for those of you who get "Unable to make the session state request to the session state server." error..</title><link>http://forums.asp.net/thread/3469377.aspx</link><pubDate>Wed, 21 Oct 2009 12:15:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3469377</guid><dc:creator>moindear</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3469377.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=53&amp;PostID=3469377</wfw:commentRss><description>&lt;p&gt;aspnet_regiis -i&lt;/p&gt;&lt;p&gt;running this in the command prompt of the .net version worked for me&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Good news for those of you who get "Unable to make the session state request to the session state server." error..</title><link>http://forums.asp.net/thread/2264320.aspx</link><pubDate>Sun, 30 Mar 2008 04:35:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2264320</guid><dc:creator>jenzwhiz</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2264320.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=53&amp;PostID=2264320</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for this tip.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried it already and it&amp;#39;s working just fine &lt;img src="http://forums.asp.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;&lt;/p&gt;
&lt;p&gt;Kudos!&lt;/p&gt;
&lt;p&gt;___________________________________________________&lt;br /&gt;&lt;em&gt;&lt;b&gt;Custom auto graphic designs&lt;br /&gt;&lt;/em&gt;&lt;a href="http://www.autoskinzonline.com/"&gt;&lt;em&gt;http://www.autoskinzonline.com&lt;/b&gt;&lt;/em&gt;&lt;/a&gt; &lt;/p&gt;</description></item><item><title>Re: Good news for those of you who get "Unable to make the session state request to the session state server." error..</title><link>http://forums.asp.net/thread/2240678.aspx</link><pubDate>Tue, 18 Mar 2008 17:25:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2240678</guid><dc:creator>caesar</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2240678.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=53&amp;PostID=2240678</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://forums.asp.net/members/HiTech2k.aspx"&gt;2 HiTech2k&lt;/a&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I&amp;#39;ve got the 100% same problem with only difference that it crashes immediately when I&amp;#39;m trying to write something to session, but works ok when I&amp;#39;m reading it. I&amp;#39;ve reinstalled iis asp.net config like you described but it didn&amp;#39;t help. Any suggestions ?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Good news for those of you who get "Unable to make the session state request to the session state server." error..</title><link>http://forums.asp.net/thread/2177196.aspx</link><pubDate>Sat, 16 Feb 2008 05:52:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2177196</guid><dc:creator>Scott Nation</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2177196.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=53&amp;PostID=2177196</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I just moved my web sites to a new local Windows Small Business Server 2003 and got the same error when I tried connecting to a site with a login screen, after logging in. (The site was built with Visual Studio 2005, using ASP.NET 2.0.50727.)&lt;br /&gt;I tried the solution in this article and got a different error when I refreshed the web page (&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-bidi-font-size:8.0pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Validation of viewstate MAC failed...&lt;/span&gt;). So I closed the browser window (on a client in the same LAN) and tried again, then got the original error again.&lt;/p&gt;
&lt;p&gt;The solution I found is this:&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 3pt;"&gt;On the server, go to Administrative Tools – Services:&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 3pt;"&gt;Service: &amp;quot;ASP.NET State Service&amp;quot; had Startup Type set to Manual, and was not running.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 3pt;"&gt;Changed Startup Type to Automatic, and started it. (Right-click on “ASP.NET State Service” – Properties to change settings). Then it worked.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;br /&gt;Scott&lt;/p&gt;</description></item><item><title>Re: Good news for those of you who get "Unable to make the session state request to the session state server." error..</title><link>http://forums.asp.net/thread/2147665.aspx</link><pubDate>Fri, 01 Feb 2008 13:29:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2147665</guid><dc:creator>sweetypie</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2147665.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=53&amp;PostID=2147665</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I wanted to use the StateServer for storing sessions in a web farm scenario. To start with, I tried initally on one server where I ran the client and host on the same machine and I added the following code in web.config:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;sessionState&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;mode&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;StateServer&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;stateConnectionString&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;tcpip=localhost:42424&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;cookieless&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;quot;/&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;But i kept getting the error mentioned above. Then I tried the solution mentioned, but I still keep getting the same error.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;Can anyone please let me know&amp;nbsp; what is it that I am doing wrong and what should I do?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;Thanks&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Good news for those of you who get "Unable to make the session state request to the session state server." error..</title><link>http://forums.asp.net/thread/2088022.aspx</link><pubDate>Thu, 03 Jan 2008 13:35:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2088022</guid><dc:creator>jlc321</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2088022.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=53&amp;PostID=2088022</wfw:commentRss><description>&lt;p&gt;Awesome, Dude.&lt;/p&gt;&lt;p&gt;Thanks for the fix.&amp;nbsp;&lt;/p&gt;&lt;p&gt;james&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;quoted:&lt;/p&gt;&lt;p&gt;So I &amp;quot;adapted&amp;quot; the hotfix to:&lt;/p&gt;&lt;p&gt;1. change dir to: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727&lt;br /&gt;2. type aspnet_regiis -i -enable|&lt;br /&gt;3. Machine chews command for about 1 minute or so&lt;br /&gt;4. Done! When I click &amp;quot;log in&amp;quot; button on the start page with correct credentials, the session state is working fine again.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Good news for those of you who get "Unable to make the session state request to the session state server." error..</title><link>http://forums.asp.net/thread/1413643.aspx</link><pubDate>Fri, 29 Sep 2006 04:14:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1413643</guid><dc:creator>HiTech2k</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1413643.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=53&amp;PostID=1413643</wfw:commentRss><description>&lt;p&gt;Dear all,&lt;/p&gt;&lt;p&gt;Due to the known problem of session variables getting lost if using InProc-server during frequent changes in development, I had to choose between SQL and ASP.NET State server, so I opted for the second. Initially, all fine, but&amp;nbsp;after using it for a few days, I started to get this error:&lt;/p&gt;&lt;p&gt;&amp;nbsp;Server Error in &amp;#39;/cv2&amp;#39; Application.&lt;br /&gt;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.&amp;nbsp; 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.&amp;nbsp; 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 &amp;#39;localhost&amp;#39; or &amp;#39;127.0.0.1&amp;#39; as the server name.&lt;br /&gt;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.&lt;/p&gt;&lt;p&gt;Exception Details: System.Web.HttpException: 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.&amp;nbsp; 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.&amp;nbsp; 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 &amp;#39;localhost&amp;#39; or &amp;#39;127.0.0.1&amp;#39; as the server name.&lt;/p&gt;&lt;p&gt;Source Error:&lt;/p&gt;&lt;p&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/p&gt;&lt;p&gt;Stack Trace:&lt;/p&gt;&lt;p&gt;[HttpException (0x80004005): 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.&amp;nbsp; 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.&amp;nbsp; 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 &amp;#39;localhost&amp;#39; or &amp;#39;127.0.0.1&amp;#39; as the server name.]&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.SessionState.OutOfProcSessionStateStore.MakeRequest(StateProtocolVerb verb, String id, StateProtocolExclusive exclusiveAccess, Int32 extraFlags, Int32 timeout, Int32 lockCookie, Byte[] buf, Int32 cb, Int32 networkTimeout, SessionNDMakeRequestResults&amp;amp; results) +1565&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.SessionState.OutOfProcSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +192&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +355&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously) +64&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Meanwhile the event log on the server (W2K2003) always logged this error (rI&amp;#39;ve emoved some details from it):&lt;/p&gt;&lt;p&gt;&amp;nbsp;Event code: 3009 &lt;br /&gt;Event message: Unable to make the session state request to the session state server. Details: last phase=&amp;#39;Reading response from the state server&amp;#39;, error code=0x8007274C, size of outgoing data=45999 &lt;br /&gt;Event time: 9/29/2006 11:40:17 AM &lt;br /&gt;Event time (UTC): 9/29/2006 3:40:17 AM &lt;br /&gt;Event ID: 0ec55d45b61f457d95d3d3c256d7cab7 &lt;br /&gt;Event sequence: 4 &lt;br /&gt;Event occurrence: 1 &lt;br /&gt;Event detail code: 50016 &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Application information: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application domain: /LM/W3SVC/1/Root/cv2-4-128039748000937500 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trust level: Full &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application Virtual Path: **********&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application Path:&amp;nbsp;**********&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Machine name: **********&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Process information: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Process ID: 720 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Process name: w3wp.exe &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Account name: NT AUTHORITY\NETWORK SERVICE &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Exception information: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exception type: HttpException &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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.&amp;nbsp; 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.&amp;nbsp; 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 &amp;#39;localhost&amp;#39; or &amp;#39;127.0.0.1&amp;#39; as the server name. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Request information: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Request URL: **********&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Request path: **********&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User host address: 192.168.0.181 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; User: **********&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is authenticated: True &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Authentication Type: Forms&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Thread information: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread ID: 1&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is impersonating: False &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stack trace: &lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Custom event details: &lt;/p&gt;&lt;p&gt;For more information, see Help and Support Center at &lt;a href="http://go.microsoft.com/fwlink/events.asp"&gt;http://go.microsoft.com/fwlink/events.asp&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;&amp;quot;Of course&amp;quot; the link &lt;a href="http://go.microsoft.com/fwlink/events.asp"&gt;http://go.microsoft.com/fwlink/events.asp&lt;/a&gt;&amp;nbsp;did not help, &amp;quot;we&amp;#39;re sorry&amp;quot; page showed up.&lt;/p&gt;&lt;p&gt;I also saw a lot of abandoned posts asking about lost session state on this forum when searching. Some suggested increasing the time out, which I believe had nothing to do with the issue.&lt;/p&gt;&lt;p&gt;The state service configuration worked fine when running on the development machine, and I was 100% sure the asp.net state service had the correct and same port numbers.&lt;/p&gt;&lt;p&gt;I also tried the latest VS 2005 SP1 beta on&amp;nbsp;dev. machine and server but no effect on the issue (although it solved some other bugs).&lt;/p&gt;&lt;p&gt;I also tried setting the ASP.NET state server registry key to accept remote connections (flag to 1 instead of 0), but no effect.&lt;/p&gt;&lt;p&gt;It turned out this KB solved the issue:&lt;/p&gt;&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/919080/en-us?spid=8940&amp;amp;sid=global"&gt;http://support.microsoft.com/kb/919080/en-us?spid=8940&amp;amp;sid=global&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Interestingly enough, I have not uninstalled the .NET 1.1 framework,&amp;nbsp;and the server is a plain 32-bit platform, so the title was pretty misleading.&lt;/p&gt;&lt;p&gt;So I &amp;quot;adapted&amp;quot; the hotfix to:&lt;/p&gt;&lt;p&gt;1. change dir to: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727&lt;br /&gt;2. type aspnet_regiis -i -enable|&lt;br /&gt;3. Machine chews command for about 1 minute or so&lt;br /&gt;4. Done! When I click &amp;quot;log in&amp;quot; button on the start page with correct credentials, the session state is working fine again.&lt;/p&gt;&lt;p&gt;And actually, that&amp;#39;s all!&lt;/p&gt;&lt;p&gt;Apparently, the ASP.NET 2.0 framework with IIS was corrupted, but I can&amp;#39;t recall any particular action that specifically broke it, except that I did a system restart, which may have triggered some pending action initiated long ago.&lt;/p&gt;&lt;p&gt;Would be interesting to know if this solves the problem for others who have the same issue.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>