<?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>IronPython for ASP.NET</title><link>http://forums.asp.net/1098.aspx</link><description>Discussions/Questions about IronPython for ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Can't enable session state</title><link>http://forums.asp.net/thread/3242244.aspx</link><pubDate>Thu, 18 Jun 2009 11:00:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3242244</guid><dc:creator>romu0</dc:creator><author>romu0</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3242244.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3242244</wfw:commentRss><description>&lt;p&gt;solved. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;System.Web.SessionState.HttpSessionState session = HttpContext.Current.Session;&lt;/p&gt;</description></item><item><title>Re: Can't enable session state</title><link>http://forums.asp.net/thread/3242224.aspx</link><pubDate>Thu, 18 Jun 2009 10:41:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3242224</guid><dc:creator>romu0</dc:creator><author>romu0</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3242224.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3242224</wfw:commentRss><description>&lt;p&gt;server error 500 is now gone; but cannot i use Session or base.Session in my base class? the base class is in the App-Code folder and is derived from System.Web.UI.Page. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Can't enable session state</title><link>http://forums.asp.net/thread/3242212.aspx</link><pubDate>Thu, 18 Jun 2009 10:35:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3242212</guid><dc:creator>romu0</dc:creator><author>romu0</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3242212.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3242212</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;i have a base class (in the App_Code folder) derived from System.Web.UI.Page; this base class does not have a aspx page for itself.&lt;/p&gt;&lt;p&gt;but other aspx-pages derive from the base class.&lt;/p&gt;&lt;p&gt;i cannot use Session in the base class.&lt;/p&gt;&lt;p&gt;&lt;b&gt;i tried &amp;lt;pages buffer=&amp;quot;true&amp;quot; enableSessionState=&amp;quot;true&amp;quot; /&amp;gt; and &amp;lt;pages enableSessionState=&amp;quot;true&amp;quot; /&amp;gt; in the webconfig (under node &amp;lt;system.web&amp;gt;) but then i get an 500 internal server error, for every page in the project! i use Asp.net 2 and VS2008!&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Any ideas? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Can't enable session state</title><link>http://forums.asp.net/thread/1822712.aspx</link><pubDate>Wed, 25 Jul 2007 14:03:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1822712</guid><dc:creator>Kaan</dc:creator><author>Kaan</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1822712.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=1822712</wfw:commentRss><description>&lt;p&gt;Hi Viper do&amp;nbsp; u use tinyMCE in an updatepanel? &lt;/p&gt;</description></item><item><title>Re: Can't enable session state</title><link>http://forums.asp.net/thread/1747645.aspx</link><pubDate>Sun, 10 Jun 2007 17:16:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1747645</guid><dc:creator>NirvanaViper</dc:creator><author>NirvanaViper</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1747645.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=1747645</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&lt;span class="dir"&gt;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; AutoEventWireup=&amp;quot;true&amp;quot; CodeFile=&amp;quot;insertcode.aspx.cs&amp;quot; Inherits=&amp;quot;TinyMCE_jscripts_tiny_mce_plugins_insertcode_insertcode&amp;quot; %&amp;gt;&lt;/span&gt;&amp;lt;&lt;span class="tag"&gt;!DOCTYPE&lt;/span&gt; html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Re: Can't enable session state</title><link>http://forums.asp.net/thread/1552306.aspx</link><pubDate>Sun, 28 Jan 2007 20:11:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1552306</guid><dc:creator>mbeauregard</dc:creator><author>mbeauregard</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1552306.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=1552306</wfw:commentRss><description>&lt;p&gt;Setting enableSessionState in the page directive works. Thanks for your help.&lt;/p&gt;&lt;p&gt;Michael&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Can't enable session state</title><link>http://forums.asp.net/thread/1551275.aspx</link><pubDate>Sat, 27 Jan 2007 08:24:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1551275</guid><dc:creator>qingye</dc:creator><author>qingye</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1551275.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=1551275</wfw:commentRss><description>&lt;p&gt;There seems to be an issue with enabling sesstion state via pages/enableSessionState setting in web.config. We will investigate. For now, Michael, have you tried to enable it from page directive on the aspx file? For example,&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;&amp;lt;%&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;@&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#a31515 size=2&gt;Page&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Language&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="IronPython"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;CodeFile&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Default.aspx.py"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;EnableSessionState&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="true"&lt;/font&gt;&lt;font size=2&gt; %&amp;gt;&lt;/font&gt;
&lt;p&gt;&lt;font size=2&gt;I was able to get below code working on an IronPython page:&lt;br /&gt;&lt;/font&gt;&lt;font size=2&gt;&lt;br /&gt;&lt;font color=#0000ff size=2&gt;def&lt;/font&gt;&lt;font size=2&gt; Page_Load():&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session.Add(&lt;/font&gt;&lt;font color=#800000 size=2&gt;"test"&lt;/font&gt;&lt;font size=2&gt;, &lt;/font&gt;&lt;font color=#800000 size=2&gt;"some test value"&lt;/font&gt;&lt;font size=2&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write(Session[&lt;/font&gt;&lt;font color=#800000 size=2&gt;"test"&lt;/font&gt;&lt;font size=2&gt;])&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write(Session.IsCookieless)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write(Session.Timeout)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;&lt;font size=2&gt;settings in &amp;lt;sessionState&amp;gt; section are all effective.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;&lt;font size=2&gt;Please let us know if this doesn't help.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;&lt;font size=2&gt;Thanks!&lt;br /&gt;Qing&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Can't enable session state</title><link>http://forums.asp.net/thread/1551039.aspx</link><pubDate>Fri, 26 Jan 2007 23:33:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1551039</guid><dc:creator>ask_Scotty</dc:creator><author>ask_Scotty</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1551039.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=1551039</wfw:commentRss><description>&lt;p&gt;Hello my friend,&lt;/p&gt;
&lt;p&gt;I have not tried IronPython but what I would do is try the other modes of session state besides InProc.&amp;nbsp; Read up on this as this gets quite complicated.&amp;nbsp;By the way, 120 minutes&amp;nbsp;per session is excessive.&amp;nbsp; In a live environment serving many users, this would drain the server memory.&amp;nbsp; The default of 20 should suffice.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Scotty&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Can't enable session state</title><link>http://forums.asp.net/thread/1551012.aspx</link><pubDate>Fri, 26 Jan 2007 23:14:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1551012</guid><dc:creator>mbeauregard</dc:creator><author>mbeauregard</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1551012.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=1551012</wfw:commentRss><description>&lt;p&gt;I'm working on a project that is using IronPython for ASP.NET and can't seem to get simple session state to work. I don't know if this has anything to do with the IRequiresSessionState marker interface not being implemented in the HttpHandler used by the CTP or maybe I'm just doing something wrong.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have configured my web.config to enable session state like so:&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;pages&lt;/span&gt;&lt;span class="attr"&gt; enableSessionState=&lt;/span&gt;&lt;span class="attrv"&gt;"true"&lt;/span&gt;&lt;span class="attr"&gt; compilationMode=&lt;/span&gt;&lt;span class="attrv"&gt;"Auto"&lt;/span&gt;&lt;span class="attr"&gt; pageParserFilterType=&lt;/span&gt;&lt;span class="attrv"&gt;"Microsoft.Web.IronPython.UI.NoCompileCodePageParserFilter"&lt;/span&gt;/&amp;gt;

&amp;lt;&lt;span class="tag"&gt;sessionState&lt;/span&gt;&lt;span class="attr"&gt; mode=&lt;/span&gt;&lt;span class="attrv"&gt;"InProc"&lt;/span&gt;&lt;span class="attr"&gt; cookieless=&lt;/span&gt;&lt;span class="attrv"&gt;"false"&lt;/span&gt;&lt;span class="attr"&gt; timeout=&lt;/span&gt;&lt;span class="attrv"&gt;"120"&lt;/span&gt;/&amp;gt;
&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Michael Beauregard&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>