<?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>Can IronPython use dynamic variables?</title><link>http://forums.asp.net/thread/3435825.aspx</link><pubDate>Thu, 01 Oct 2009 14:57:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3435825</guid><dc:creator>Gattoo</dc:creator><author>Gattoo</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3435825.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3435825</wfw:commentRss><description>&lt;p&gt;I am building a small application that can &lt;/p&gt;&lt;p&gt;1. Dynamically load 2 text boxes on a web form&lt;/p&gt;&lt;p&gt;2. Build a logic on those textboxes in IronPython to sum them and return the result.&lt;/p&gt;&lt;p&gt;3. I have already built a IPY script that does some opearions on a static text boxes. How to build a script on the dynamic textboxes?&lt;br /&gt;&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>8</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><item><title>duplicated workspace</title><link>http://forums.asp.net/thread/3215791.aspx</link><pubDate>Sun, 07 Jun 2009 08:21:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3215791</guid><dc:creator>yosiholl</dc:creator><author>yosiholl</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3215791.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3215791</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have a program in C#. I would like to add some scripting ability, so I could run commands of the program via python. For doing that, I have implemented some interface class in the program and &amp;quot;passed&amp;quot; it to the python script using ironPython 2.0.1 (from the program itself). Basically it works, only it seems that the entire workspace of the program has been duplicated, i.e. it created a new instance of the program (all variables are in their initial state etc..), and not using the same workspace of the calling program.&lt;/p&gt;&lt;p&gt;&amp;nbsp;What can I do to solve this?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Trouble opening MS Word file from Iron Python</title><link>http://forums.asp.net/thread/3197186.aspx</link><pubDate>Fri, 29 May 2009 19:09:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3197186</guid><dc:creator>Summer_Intern</dc:creator><author>Summer_Intern</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3197186.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3197186</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;br /&gt;&lt;br /&gt;I was trying to write a small script that opens an MS Word File and does something to it.&lt;br /&gt;I am getting a weird exception when I try to run the script.&lt;br /&gt;It says &amp;#39;Type-Exception - Expected clr , provided - str&amp;#39; for the line where I try to open the file.&lt;br /&gt;But the same script runs fine on a colleague&amp;#39;s computer .&lt;br /&gt;I
couldn&amp;#39;t figure out what his computer has that mine doesn&amp;#39;t.So I
thought of asking what are the necessary things (libs, dlls) that are
needed to Open/Work on MS Word File from Iron Python.&lt;br /&gt;&lt;br /&gt;MS Excel
interaction works fine in my computer though. I have Office 07, MS
Visual Studio 05, .NET Framework 2.0 installed in my computer.&lt;br /&gt;-----------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;Here is the script :&lt;br /&gt;&lt;br /&gt;import clr&lt;br /&gt;clr.AddReference(&amp;quot;Microsoft.Office.Interop.Word&amp;quot;)&lt;br /&gt;&lt;br /&gt;import Microsoft.Office.Interop.Word as Word                        &lt;br /&gt;&lt;br /&gt;source_filename = &amp;#39;C:\Sample_Report.doc&amp;#39;&lt;br /&gt;			destination_filename = &amp;#39;c:\Validation Report.doc&amp;#39;&lt;br /&gt;			&lt;br /&gt;			missing = System.Type.Missing  &lt;br /&gt;			replaceAll = Word.WdReplace.wdReplaceAll&lt;br /&gt;			&lt;br /&gt;			# Open the Report Template MSWord File&lt;br /&gt;			word_application = Word.ApplicationClass()&lt;br /&gt;			word_application.Visible = False&lt;br /&gt;			document = word_application.Documents.Open(source_filename)&lt;br /&gt;			print &amp;#39;opened microsoft word&amp;#39;&lt;/p&gt;</description></item><item><title>where to find ebooks and tutorials?</title><link>http://forums.asp.net/thread/3046283.aspx</link><pubDate>Sun, 29 Mar 2009 11:43:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3046283</guid><dc:creator>p1is1</dc:creator><author>p1is1</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3046283.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3046283</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi I am VS programmer and want to enter Ironpython. where are best ebooks tutorials or articles online with best brevity? any1 know some thing?&lt;/p&gt;&lt;p&gt;I have installed Ironpython but there is no Help section. should I download it from elsewhere?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Serialize complex objects in IronPython for ASP.NET?</title><link>http://forums.asp.net/thread/1614744.aspx</link><pubDate>Sat, 10 Mar 2007 19:00:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1614744</guid><dc:creator>jdanforth</dc:creator><author>jdanforth</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/1614744.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=1614744</wfw:commentRss><description>&lt;p&gt;I'm trying to create an XmlSerializer in an IronPython ASP.NET page to serialize an object with a few properties, but I get this error from the compiler:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;strong&gt;Parser Error Message: &lt;/strong&gt;Unable to generate a temporary class (result=1).&lt;br /&gt;error CS0012: The type 'IronMath.ISlice' is defined in an assembly that is not referenced. You must add a reference to assembly 'IronMath, Version=1.0.60816.1877, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.&lt;/p&gt;
&lt;p&gt;I've tried a number of things to get this to work. Added this in my web.config:&lt;/p&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;add&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;assembly&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;IronMath, Version=1.0.60816.1877, Culture=neutral, PublicKeyToken=31bf3856ad364e35&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;But to no change. IronMath&amp;nbsp;is in my bin directory. I've also tried to add reference to IronMath in code, but nothing works.&amp;nbsp;This is my code:&lt;font size=2&gt;
&lt;p&gt;a = MyClass(&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;"Johan"&lt;/font&gt;&lt;font size=2&gt;,40)&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;ser = XmlSerializer(a.GetType())&lt;/p&gt;
&lt;p&gt;writer = StreamWriter(&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;"c:/dump.xml"&lt;/font&gt;&lt;font size=2&gt;)
&lt;p&gt;ser.Serialize(writer,a)&lt;/p&gt;
&lt;p&gt;writer.Close()&lt;/p&gt;
&lt;p&gt;MyClass looks like this:&lt;/p&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;class&lt;/p&gt;&lt;/font&gt;&lt;font size=2&gt; MyClass:
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;nbsp; def&lt;/font&gt;&lt;font size=2&gt; __init__(self, name, height):
&lt;p&gt;&amp;nbsp; self.name = name&lt;/p&gt;
&lt;p&gt;&amp;nbsp; self.height = height&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;I guess it's a general problem&amp;nbsp;to serialize&amp;nbsp;objects in&amp;nbsp;Python... Or is there a trick?&amp;nbsp;I could define MyClass and code to serialize in a c# assembly, but I would like to do it in Python only.
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Loading iron python on c# code</title><link>http://forums.asp.net/thread/3015504.aspx</link><pubDate>Wed, 18 Mar 2009 07:47:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3015504</guid><dc:creator>rohanf4ever</dc:creator><author>rohanf4ever</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3015504.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3015504</wfw:commentRss><description>&lt;p&gt;If i want to integrate c# and iron python i have to load the iron python class. Will their be a perfomance hit. Cant i implement a WCF only using iron python.&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;
&lt;p&gt;Rohan.&lt;/p&gt;</description></item><item><title>Writing web algorithems with iron Python</title><link>http://forums.asp.net/thread/3015017.aspx</link><pubDate>Wed, 18 Mar 2009 04:30:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3015017</guid><dc:creator>rohanf4ever</dc:creator><author>rohanf4ever</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3015017.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=3015017</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I hope to write a WCF Service which is going to have lenghty algorithmes.Since perfomnace going to be a major hit in this requirement can any one sugest me a way. Can i achive perfomance using iron python and is it possible to have a wcf and iron python mix.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Rohan &lt;/p&gt;</description></item><item><title>Invoke Web Service From Python</title><link>http://forums.asp.net/thread/2984025.aspx</link><pubDate>Thu, 05 Mar 2009 07:28:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2984025</guid><dc:creator>Shakeel.ahmad</dc:creator><author>Shakeel.ahmad</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2984025.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2984025</wfw:commentRss><description>&lt;p&gt;Hello All!&lt;/p&gt;
&lt;p&gt;I have developed a test web service, which contains a Testing function which have 2 string parameters and returns a string.&amp;nbsp;This web service is accessible from dotnet client. But when I try to acces it from Python, it throws exception. Please help me.&lt;/p&gt;
&lt;p&gt;code of python is written below.&lt;/p&gt;
&lt;p&gt;python code:&lt;/p&gt;
&lt;p&gt;#!/usr/bin/env python&lt;/p&gt;
&lt;p&gt;import os&lt;br /&gt;import cPickle&lt;br /&gt;import pprint&lt;br /&gt;from time import *&lt;br /&gt;import httplib&lt;br /&gt;import urllib&lt;br /&gt;import sys&lt;br /&gt;import re&lt;br /&gt;from elementtree import ElementTree as ET&lt;/p&gt;
&lt;p&gt;import logging&lt;br /&gt;import logging.config&lt;/p&gt;
&lt;p&gt;# makes the XML pretty to look at&lt;br /&gt;def indent(elem, level=0):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = &amp;quot;\n&amp;quot; + level*&amp;quot;&amp;nbsp; &amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if len(elem):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if not elem.text or not elem.text.strip():&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elem.text = i + &amp;quot;&amp;nbsp; &amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for e in elem:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; indent(e, level+1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if not e.tail or not e.tail.strip():&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.tail = i&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if level and (not elem.tail or not elem.tail.strip()):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elem.tail = i&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;def CreateSoapMessage(action):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; envelope = &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soap:Envelope xmlns:xsi=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema-instance"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot; xmlns:xsd=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema"&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; xmlns:soap=&amp;quot;&lt;a href="http://www.w3.org/2003/05/soap-envelope"&gt;http://www.w3.org/2003/05/soap-envelope&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soap:Body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %s&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/soap:Body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/soap:Envelope&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;&amp;quot;&amp;quot; %(action)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(envelope)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;def SendHTTP(httpmessage):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blen = len(httpmessage)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; requestor = httplib.HTTP(&amp;#39;localhost&amp;#39;, 8080);&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; requestor.putrequest(&amp;#39;POST&amp;#39;, &amp;#39;/Test_Shakeel/Service.asmx&amp;#39;,&amp;#39;HTTP/1.1&amp;#39;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; requestor.putheader(&amp;#39;Host&amp;#39;, &amp;#39;localhost&amp;#39;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; requestor.putheader(&amp;#39;Content-Type&amp;#39;, &amp;#39;application/soap+xml; charset=utf-8&amp;#39;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; requestor.putheader(&amp;#39;Content-Length&amp;#39;, str(blen))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; requestor.endheaders()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; requestor.send(httpmessage)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (status_code, message, reply_headers) = requestor.getreply()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reply_body = requestor.getfile().read()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return reply_body&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;class Client:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def pythonlogger(self,level,message):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if level == &amp;quot;info&amp;quot;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info(message)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if level == &amp;quot;warn&amp;quot;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.warn(message)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if level == &amp;quot;error&amp;quot;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.error(message)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def Testing (self,first,second):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #wylessclient = WylessClient()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; action = &amp;quot;&amp;quot;&amp;quot;&amp;lt;Testing xmlns=&amp;quot;&lt;a href="http://tempuri.org/"&gt;http://tempuri.org&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a&amp;gt;%s&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;%s&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Testing&amp;gt;&amp;quot;&amp;quot;&amp;quot; %(first,second)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; httpmessage = CreateSoapMessage(action)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print httpmessage&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reply_body = SendHTTP(httpmessage)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print reply_body&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get response from server and create an elementtree&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlin = ET.XML(reply_body)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; results = xmlin.find(&amp;quot;.//http://localhost:8080}TestingResult&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; token = results.text&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return token&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;client1 = Client()&lt;br /&gt;retvalue&amp;nbsp;= client1.Testing(&amp;#39;first&amp;#39;,&amp;#39;second&amp;#39;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Exception with output is shown below.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;soap:Envelope xmlns:xsi=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema-instance"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot; xmlns:xsd=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema"&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; xmlns:soap=&amp;quot;&lt;a href="http://www.w3.org/2003/05/soap-envelope"&gt;http://www.w3.org/2003/05/soap-envelope&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soap:Body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Testing xmlns=&amp;quot;&lt;a href="http://tempuri.org/"&gt;http://tempuri.org&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a&amp;gt;first&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;second&amp;lt;/b&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Testing&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/soap:Body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/soap:Envelope&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&amp;lt;soap:Envelope xmlns:soap=&amp;quot;&lt;a href="http://www.w3.org/2003/05/soap-envelope"&gt;http://www.w3.org/2003/05/soap-envelope&lt;/a&gt;&amp;quot; xmlns:xsi=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema-instance"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot; xmlns:xsd=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema%22%3E%3Csoap:Body%3E%3Csoap:Fault%3E%3Csoap:Code%3E%3Csoap:Value%3Esoap:Sender%3C/soap:Value%3E%3C/soap:Code%3E%3Csoap:Reason%3E%3Csoap:Text"&gt;http://www.w3.org/2001/XMLSchema&amp;quot;&amp;gt;&amp;lt;soap:Body&amp;gt;&amp;lt;soap:Fault&amp;gt;&amp;lt;soap:Code&amp;gt;&amp;lt;soap:Value&amp;gt;soap:Sender&amp;lt;/soap:Value&amp;gt;&amp;lt;/soap:Code&amp;gt;&amp;lt;soap:Reason&amp;gt;&amp;lt;soap:Text&lt;/a&gt; xml:lang=&amp;quot;en&amp;quot;&amp;gt;Unable to handle request without a valid action parameter. Please supply a valid soap action.&amp;lt;/soap:Text&amp;gt;&amp;lt;/soap:Reason&amp;gt;&amp;lt;soap:Detail /&amp;gt;&amp;lt;/soap:Fault&amp;gt;&amp;lt;/soap:Body&amp;gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;br /&gt;&amp;nbsp; File &amp;quot;C:\Python25\WylessClient_Orignal.py&amp;quot;, line 137, in &amp;lt;module&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retvalue&amp;nbsp;= client1.Testing(&amp;#39;first&amp;#39;,&amp;#39;second&amp;#39;)&amp;nbsp; File &amp;quot;C:\Python25\WylessClient_Orignal.py&amp;quot;, line 84, in Testing&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retvalue&amp;nbsp;= client1.Testing(&amp;#39;first&amp;#39;,&amp;#39;second&amp;#39;)&amp;nbsp; File &amp;quot;C:\Python25\Lib\site-packages\elementtree\ElementTree.py&amp;quot;, line 327, in find&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ElementPath.find(self, path)&lt;br /&gt;&amp;nbsp; File &amp;quot;C:\Python25\Lib\site-packages\elementtree\ElementPath.py&amp;quot;, line 183, in find&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _compile(path).find(element)&lt;br /&gt;&amp;nbsp; File &amp;quot;C:\Python25\Lib\site-packages\elementtree\ElementPath.py&amp;quot;, line 173, in _compile&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p = Path(path)&lt;br /&gt;&amp;nbsp; File &amp;quot;C:\Python25\Lib\site-packages\elementtree\ElementPath.py&amp;quot;, line 90, in __init__&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;expected path separator (%s)&amp;quot; % (op or tag)&lt;br /&gt;SyntaxError: expected path separator (:)&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;</description></item><item><title>Can it be secure to allow users to write theiir code in a form?</title><link>http://forums.asp.net/thread/2837361.aspx</link><pubDate>Tue, 30 Dec 2008 08:42:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2837361</guid><dc:creator>hirokio</dc:creator><author>hirokio</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/2837361.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2837361</wfw:commentRss><description>&lt;p&gt;Hi, this is the first time to post in this forum.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I just started using IronPython a couple of weeks ago, and thinking if I can allow users to write their code like for calculation even partially and run it secure in a ASP form using PythonEngine. Imagine a case providing users a space to write their own functions for specific calculations in a text box&amp;nbsp; and test the code in PythonEngine.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;To do this, I have several possible issues, which is how to:&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight:bold;"&gt;1. Prohibit them to import .NET libraries such as &amp;quot;System.IO&amp;quot; and access to the local files.&lt;/p&gt;&lt;p style="font-weight:bold;"&gt;2. Prohibit them to run their code that could consume too much CPU and memory resources (it might make the whole process slow or hang up)&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight:bold;"&gt;3. Provide them with debug information when their code has any problems.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For the first issue, I&amp;#39;m assuming that I can prohibit it by restricting &amp;quot;import&amp;quot; by checking the code before run. However, I&amp;#39;m not so sure if any originally available method in PythonEngine makes it possible to run malicious codes. I don&amp;#39;t know how to work on this issue, so I would apprecaite if you know any idea of it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The second issue, I&amp;#39;m assuming, can be avoided by running the code in a different thread and try-catch clause as well as put a time limitation so that execute &amp;quot;Abort&amp;quot; or &amp;quot;Finalize.&amp;quot; Do you think these are enough to avoid the issue?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For the last one, I&amp;#39;m thinking to provide users debug information with ClrDebuggingEnabled property true in EngineOption.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve been trying to figure out the issues above, while the documentation seems not enouch available to me. So, I appreciate if you have any idea or useful resources.&lt;/p&gt;&lt;p&gt;Thanks, &lt;/p&gt;&lt;p&gt;hirokio &lt;br /&gt;&lt;/p&gt;</description></item><item><title>IronPython datatypes</title><link>http://forums.asp.net/thread/2771890.aspx</link><pubDate>Thu, 27 Nov 2008 16:39:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2771890</guid><dc:creator>annalady</dc:creator><author>annalady</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/2771890.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2771890</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I was wondering is the datatypes of IronPython are the same as C#&amp;#39;s datatypes.&lt;/p&gt;
&lt;p&gt;For example, do we have datasets, generic lists, generic dictionnaries, etc... in IronPython&lt;/p&gt;
&lt;p&gt;And another question : is there any advantage in using IronPython instead of C#&lt;/p&gt;
&lt;p&gt;For the moment I see only drawbacks : no syntax helping &amp;amp; highlighting, you discover errors only when the specified code is executed&lt;/p&gt;</description></item><item><title>Where to ask general IronPython questions</title><link>http://forums.asp.net/thread/2778112.aspx</link><pubDate>Mon, 01 Dec 2008 23:58:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2778112</guid><dc:creator>davidebb</dc:creator><author>davidebb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2778112.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2778112</wfw:commentRss><description>&lt;p&gt;This forum is meant for questions that are specific to the use of IronPython in ASP.NET, as described in &lt;a class="" href="http://www.asp.net/DynamicLanguages/"&gt;this page&lt;/a&gt;.&amp;nbsp; For general questions about IronPython that don&amp;#39;t directly relate to ASP.NET, please check out the &lt;a class="" href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython"&gt;IronPython Codeplex site&lt;/a&gt;, which explains how to join the discussion list.&lt;/p&gt;
&lt;p&gt;thanks!&lt;br /&gt;David&lt;/p&gt;</description></item><item><title>'IronPython' is not a supported language</title><link>http://forums.asp.net/thread/2767148.aspx</link><pubDate>Tue, 25 Nov 2008 14:55:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2767148</guid><dc:creator>annalady</dc:creator><author>annalady</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2767148.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2767148</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve spent the whole day trying to run a simple ASP.NET Web page using IronPython.&lt;/p&gt;
&lt;p&gt;Here is what I installed :&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;- Python 2.6&lt;br /&gt;- PyWin32&lt;br /&gt;- IronPythonStudio&lt;br /&gt;- VS2005 SDK 4.0 (february 2007)&lt;br /&gt;- IronPython 1.1.2&lt;br /&gt;- IronPython for ASP.NET&lt;br /&gt;- Visual C++&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Then I opened the &lt;strong&gt;IronPythonIntegration&lt;/strong&gt; project (C:\Program Files\Visual Studio 2005 SDK\2007.02\VisualStudioIntegration\Samples\IronPythonIntegration), build it and ran it.&lt;/p&gt;
&lt;p&gt;Then a new Visual Studio poped out (must be the &amp;quot;Experimental hive&amp;quot; version, why in the world do we have to use this anyway ?). I opened my Web project, added a new aspx web page with Python language. When I compile my website I get the following errors :&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;- &amp;#39;IronPython&amp;#39; is not a supported language&lt;br /&gt;- &amp;#39;py&amp;#39; is not a valid language extension&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Following the advices from the following page : &lt;a href="http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/a65ea850-d7fc-45b5-888c-097a5c080f2f/"&gt;http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/a65ea850-d7fc-45b5-888c-097a5c080f2f/&lt;/a&gt;&amp;nbsp;I registered the following dlls to the GAC :&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;gacutil /i &amp;quot;\Program Files\Visual Studio 2005 SDK\2006.08\VisualStudioIntegration\Common\Assemblies\IronMath.dll&amp;quot;&lt;br /&gt;gacutil /i &amp;quot;\Program Files\Visual Studio 2005 SDK\2006.08\VisualStudioIntegration\Common\Assemblies\IronPython.dll&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I also added the following lines to my web.config :&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;assemblies&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;add&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;assembly&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;IronPython, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;br /&gt;&amp;lt;/&lt;font color="#a31515" size="2"&gt;assemblies&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;httpHandlers&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;add&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;path&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font color="#000000" size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;*.py&lt;/font&gt;&lt;font color="#000000" 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;verb&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font color="#000000" size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;*&lt;/font&gt;&lt;font color="#000000" 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;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font color="#000000" size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;System.Web.HttpForbiddenHandler&lt;/font&gt;&lt;font color="#000000" 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;validate&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;font color="#000000" size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font color="#000000" size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; /&amp;gt;&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;httpHandlers&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000" size="2"&gt;&lt;font color="#000000" size="2"&gt;It&amp;#39;s still not working, did I miss something ? I&amp;#39;m amazed that so many modules have to be installed just for an extra language !&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000" size="2"&gt;&lt;font color="#000000" size="2"&gt;Thanks&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>How to get the line number of the code being executed</title><link>http://forums.asp.net/thread/2742066.aspx</link><pubDate>Thu, 13 Nov 2008 04:36:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2742066</guid><dc:creator>SheetalP</dc:creator><author>SheetalP</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/2742066.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2742066</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;am new to Iron Python and .Net Programming. Please help me in this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have to display the line number and the file name of the code written in Iron Python. As per my knowledge Iron Python gives the line number only when an exception occurs.&lt;/p&gt;
&lt;p&gt;Is there any way to get the line number and file name from the stack even if there is no exception ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>unhandled ObjectDisposedException though exception handler provided</title><link>http://forums.asp.net/thread/2749926.aspx</link><pubDate>Mon, 17 Nov 2008 11:23:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2749926</guid><dc:creator>SheetalP</dc:creator><author>SheetalP</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/2749926.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2749926</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am writing a serial port communication application using Iron Python. Following is my code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;class serial:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def sendMessage( self, entity, command, endstring ):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BaudRate =&amp;nbsp;9600&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataBits =&amp;nbsp;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comPort =&amp;nbsp;&amp;quot;COM1&amp;quot;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;#create a serial port instance for the desired port as specified&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serialPort = System.IO.Ports.SerialPort( comPort )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serialPort.BaudRate = BaudRate&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serialPort.DataBits = DataBits &lt;/p&gt;
&lt;p&gt;#open the port&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serialPort.Close()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serialPort.Open()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serialPort.ReadTimeout = 30000&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serialPort.Write( command )&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returnValue = serialPort.ReadTo( endstring )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;quot;error&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returnValue = &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serialPort.Close()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serialPort.Dispose()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return returnValue&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;com1 = serial()&lt;br /&gt;a = com1.sendMessage( &amp;quot;ABC&amp;quot;, &amp;quot;2&amp;quot;, &amp;quot;B&amp;quot; )&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here if i abort my application using Cntrl + C then i get ObjectDisposedException unhandled though i have provided an exception handler.&lt;/p&gt;
&lt;p&gt;Can you please help me with the same.................&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Turkish character problem</title><link>http://forums.asp.net/thread/2742672.aspx</link><pubDate>Thu, 13 Nov 2008 09:46:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2742672</guid><dc:creator>ilhantire</dc:creator><author>ilhantire</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2742672.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2742672</wfw:commentRss><description>hey all. i am a new user in ironpython-asp.net. when i try to output a turkish character on the web form i see only squares but same way in c# there is no problem. is there any solution for encoding turkish characters or is this a bug.</description></item><item><title>IronPython for asp.net and no-compile page advantages?</title><link>http://forums.asp.net/thread/2693502.aspx</link><pubDate>Mon, 20 Oct 2008 07:14:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2693502</guid><dc:creator>strashok</dc:creator><author>strashok</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2693502.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2693502</wfw:commentRss><description>&lt;p&gt;In accordiance with http://www.asp.net/ironpython/whitepaper/ the only difference (and that is announced as great advantage of dynamic langugues support) is in steps which occurs during THE 1ST LAUNCH of page.&lt;/p&gt;&lt;p&gt;So I have the following questions: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;1. What the real benefit from removing some steps during 1st page request?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2. Is this the only difference between compile and no-compile (and asp.net
statically compiled (c#) and writtne in dynamic language (python))
pages?&lt;/p&gt;&lt;p&gt;TIA,&lt;/p&gt;&lt;p&gt;Alexey &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Strange errors on this script</title><link>http://forums.asp.net/thread/2685032.aspx</link><pubDate>Wed, 15 Oct 2008 16:56:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2685032</guid><dc:creator>Juba_PornBorn</dc:creator><author>Juba_PornBorn</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2685032.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2685032</wfw:commentRss><description>Hello, Im doing my first IP script and I&amp;#39;m getting really weird mistake I don&amp;#39;t understand how to solve.

Here&amp;#39;s the code and the errors I get:

1&amp;gt; 2 form windows and system tray icons show up

2&amp;gt; Button does not work and sometimes it shows this message on press:

&lt;font face="Lucida Console" size="2"&gt;startcheck[] has 2 arguments, none given&lt;/font&gt;

I haven&amp;#39;t defined arguments for startcheck.

3&amp;gt; Can&amp;#39;t get values from the variables inside the class in the script

Here&amp;#39;s the script:
&lt;font face="Lucida Console" size="2"&gt;&amp;#39;&amp;#39;&amp;#39; Script by Juba_PornBorn, Open Source Cod4 Tool Project, To donate or any kind of support: server_help@hotmail.co.uk Oficial web Page: uadminsdevenezuela.co.nr&amp;#39;&amp;#39;&amp;#39;

import os
import os.path
import socket
import cPickle
from threading import Timer
import clr
clr.AddReference(&amp;#39;System&amp;#39;)
clr.AddReference(&amp;#39;System.Windows.Forms&amp;#39;)
clr.AddReference(&amp;#39;System.Drawing&amp;#39;)
from System import *
from System.Windows.Forms import *
from System.Drawing import *

name_saver = {}
username = &amp;#39;none&amp;#39;
martyrdom = &amp;#39;frag_grenade_short_mp&amp;#39;
noob_tube = &amp;#39;gl_weapon_mp&amp;#39;
host = &amp;#39;localhost&amp;#39;
#value to check if new line is written
checkline = 0
#tray icon on logcheck loop on else turn of
tray_on = 0

class MyForm(Form):
    def __init__(self):
        self.MaximizeBox = 0
        self.MinimizeBox = 1
        self.ShowInTakbar = 0
        self.GetStayOnTop = 0
        self.FormBorderStyle = FormBorderStyle.Sizable
        self.Size = Size(546, 381)
        self.Text = &amp;quot;COD4 Warning System&amp;quot;
        
        image = Bitmap(Application.StartupPath + &amp;#39;\picturebox3img.jpg&amp;#39;)
        self.BackgroundImage = image

        self.button1 = Button(Text=&amp;#39;Start Check&amp;#39;, Location=Point(448,320), Size=Size(75, 23))
        self.button1.BackColor = Color.FromArgb(167, 166, 170)
        self.button1.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.button1.Cursor = Cursors.Default
        self.Controls.Add(self.button1)

        self.checkbox1 = CheckBox(Text=&amp;#39;Noob Tube (Granade Launcher)&amp;#39;, Location=Point(24,24), Size=Size(184, 19))
        self.checkbox1.Checked = True
        self.checkbox1.BackColor = Color.FromArgb(255, 255, 255)
        self.checkbox1.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.checkbox1.Cursor = Cursors.Default
        self.checkbox1.BackColor = Color.Transparent
        self.Controls.Add(self.checkbox1)

        self.checkbox2 = CheckBox(Text=&amp;#39;Martyrdom&amp;#39;, Location=Point(24,56), Size=Size(168, 22))
        self.checkbox2.Checked = True
        self.checkbox2.BackColor = Color.FromArgb(255, 255, 255)
        self.checkbox2.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.checkbox2.Cursor = Cursors.Default
        self.checkbox2.BackColor = Color.Transparent
        self.Controls.Add(self.checkbox2)

        self.textbox5 = TextBox(Text=&amp;#39;Insert game_mp.log direction here...&amp;#39;, Location=Point(224,24), Size=Size(288, 20))
        self.textbox5.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox5.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox5.Cursor = Cursors.Default
        self.Controls.Add(self.textbox5)

        self.textbox2 = TextBox(Text=&amp;#39;1&amp;#39;, Location=Point(10,104), Size=Size(20, 20))
        self.textbox2.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox2.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox2.Cursor = Cursors.Default
        self.Controls.Add(self.textbox2)

        self.textbox3 = TextBox(Text=&amp;#39;1&amp;#39;, Location=Point(10,144), Size=Size(20, 20))
        self.textbox3.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox3.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox3.Cursor = Cursors.Default
        self.Controls.Add(self.textbox3)

        self.label1 = Label(Text=&amp;#39;Max Warnings on Martydom before kick&amp;#39;, Location=Point(40,144), Size=Size(238, 17))
        self.label1.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label1.Cursor = Cursors.Default
        self.label1.BackColor = Color.Transparent
        self.Controls.Add(self.label1)

        self.label2 = Label(Text=&amp;#39;Max Warnings on Noob Tube before kick&amp;#39;, Location=Point(40,104), Size=Size(238, 17))
        self.label2.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label2.Cursor = Cursors.Default
        self.label2.BackColor = Color.Transparent
        self.Controls.Add(self.label2)

        self.textbox4 = TextBox(Text=&amp;#39;20&amp;#39;, Location=Point(314,104), Size=Size(25, 20))
        self.textbox4.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox4.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox4.Cursor = Cursors.Default
        self.Controls.Add(self.textbox4)

        self.label3 = Label(Text=&amp;#39;Time in minutes to save to Database&amp;#39;, Location=Point(344,96), Size=Size(140, 34))
        self.label3.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 9)
        self.label3.Cursor = Cursors.Default
        self.label3.BackColor = Color.Transparent
        self.Controls.Add(self.label3)

        self.textbox10 = TextBox(Text=&amp;#39;20&amp;#39;, Location=Point(314,144), Size=Size(25, 20))
        self.textbox10.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox10.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox10.Cursor = Cursors.Default
        self.Controls.Add(self.textbox10)

        self.label4 = Label(Text=&amp;#39;PunkBuster Temp Ban time in minutes&amp;#39;, Location=Point(344,136), Size=Size(100, 31))
        self.label4.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 9)
        self.label4.Cursor = Cursors.Default
        self.label4.BackColor = Color.Transparent
        self.Controls.Add(self.label4)

        self.textbox6 = TextBox(Text=&amp;#39;password&amp;#39;, Location=Point(16,208), Size=Size(100, 20))
        self.textbox6.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox6.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox6.Cursor = Cursors.Default
        self.Controls.Add(self.textbox6)

        self.label5 = Label(Text=&amp;#39;Rcon Password&amp;#39;, Location=Point(16,192), Size=Size(100, 23))
        self.label5.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label5.Cursor = Cursors.Default
        self.label5.BackColor = Color.Transparent
        self.Controls.Add(self.label5)

        self.textbox7 = TextBox(Text=&amp;#39;28960&amp;#39;, Location=Point(136,208), Size=Size(100, 20))
        self.textbox7.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox7.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox7.Cursor = Cursors.Default
        self.Controls.Add(self.textbox7)

        self.label6 = Label(Text=&amp;#39;Server Port&amp;#39;, Location=Point(136,192), Size=Size(134, 17))
        self.label6.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label6.Cursor = Cursors.Default
        self.label6.BackColor = Color.Transparent
        self.Controls.Add(self.label6)

        self.textbox8 = TextBox(Text=&amp;#39;%s is going to get kicked if noob tube is used again...&amp;#39;%username, Location=Point(16,264), Size=Size(340, 20))
        self.textbox8.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox8.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox8.Cursor = Cursors.Default
        self.Controls.Add(self.textbox8)

        self.label7 = Label(Text=&amp;#39;Warning message for noob tube&amp;#39;, Location=Point(16,248), Size=Size(298, 17))
        self.label7.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label7.Cursor = Cursors.Default
        self.label7.BackColor = Color.Transparent
        self.Controls.Add(self.label7)

        self.textbox9 = TextBox(Text=&amp;#39;%s is going to get kicked if Martyrdom is used again...&amp;#39;%username, Location=Point(16,320), Size=Size(340, 20))
        self.textbox9.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox9.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox9.Cursor = Cursors.Default
        self.Controls.Add(self.textbox9)

        self.label11 = Label(Text=&amp;#39;Warning message for Martyrdom&amp;#39;, Location=Point(16,304), Size=Size(298, 17))
        self.label11.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label11.Cursor = Cursors.Default
        self.label11.BackColor = Color.Transparent
        self.Controls.Add(self.label11)
        
        self.initNotifyIcon()
        self.Resize += self.ResizeForm
        
    def initNotifyIcon(self):
        self.notifyIcon = NotifyIcon()
        self.notifyIcon.Icon = Icon(Application.StartupPath + &amp;#39;\cod4.ico&amp;#39;)
        self.notifyIcon.Visible = True
        self.notifyIcon.MouseDoubleClick += self.DoubleClickOnTrayIcon
        
    def ResizeForm(self, s, e):
        if self.WindowState == FormWindowState.Minimized:
            self.notifyIcon.Visible = True
            self.Visible = False
        
    def DoubleClickOnTrayIcon(self, s, e):
        if e.Button == MouseButtons.Left:
            self.Visible = True
            if self.WindowState == FormWindowState.Minimized:
                self.WindowState = FormWindowState.Normal
                self.notifyIcon.Visible = False
                
def StartCheckButton(sender, eventArgs):
    sender += eventArgs
    
def startcheck():
    global savedb, rcon_password, server_port, active_noobtube, active_martyrdom, minutes_kick_variable, warning_counter_tube, warning_counter_marty, game_or_mod_path, save_database, noob_text, marty_text
    
    # timer of saving database
    savedb = Timer(save_database * 60, savedatabase)
    savedb.start()
    
    #check form variables
    rcon_password = values.textbox6.Text
    server_port = values.textbox7.Text
    active_noobtube = values.checkbox1.Checked
    active_martyrdom = values.checkbox2.Checked
    minutes_kick_variable = values.textbox10.Text #In the form corresponds to the 20 minute Punkbuster variable 
    warning_counter_tube = values.textbox2.Text # Number of times player is warned before kick in the form corresponds to Max warnings Tube
    warning_counter_marty = values.textbox3.Text # Number of times player is warned before kick in the form corresponds to Max warnings Martydom 
    game_or_mod_path = values.textbox5.Text #test path
    save_database = values.textbox4.Text #time in minutes wich saves cPickle database of users
    noob_text = values.textbox8.Text
    marty_text = values.textbox9.Text
    
    # start logcheck loop
    tray_on = 1
    
    #Close form window and open system tray button
    values.WindowState = FormWindowState.Minimized
    test_socket()
    loaddatabase()
    openlogexists()
    
def socketconnect(cmd):
    try:
        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        s.settimeout(5)
        s.connect((host, server_port))
        packet = &amp;#39;&amp;#255;&amp;#255;&amp;#255;&amp;#255;rcon &amp;quot;%s&amp;quot; %s
&amp;#39; %(rcon_password, cmd)
        while len(packet) &amp;gt; 0:
            c = s.send(packet)
            packet = packet[c:]
        sleep(1)
        message = s.recv(2048)
        s.close()
        return message
    except ArgumentException:
        MessageBox.Show(&amp;quot;Could not connect to Server&amp;quot;, &amp;quot;&amp;quot;,MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

def test_socket():
    socketconnect(&amp;#39;status&amp;#39;)

def openlogexists():
    #complete path to games_mp.log
    global lastline
    global checkline
    global size
    try:
        logfile = open(game_or_mod_path, &amp;#39;r&amp;#39;)
        size = os.path.getsize(game_or_mod_path)
        lineList = logfile.readlines()
        lastline = lineList[-1]
        logfile.close()
    except ArgumentException:
        # to print on an error box
        MessageBox.Show(&amp;quot;Log %s not found&amp;quot; %game_or_mod_path , &amp;quot;&amp;quot;,MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
        
    # check if line is still the same
    if lastline:
        if checkline != lastline:
            checkline = lastline
            checkcounters()
            logcheck()
            #start loop here on log check  or wait until the logcheck function ends and wait a second or 2 and start it again
            
def logcheck():
    global size
    global lastline
    
    logfile = open(game_or_mod_path, &amp;#39;r&amp;#39;)
    logfile.seek(size)
    lineList = logfile.readlines()
    lastline = lineList[-1]
    if lastline:
        if checkline != lastline:
            checkline = lastline
            size = os.path.getsize(game_or_mod_path)
            newlenght = len(lineList) - 1
            x = -1
            while x &amp;lt; newlenght:
                x += 1
                lastline = lineList[x]
                lastline
                checkcounters()
            sleep(5) # give a 5 second space between each check    
            if tray_on == 1:
                logcheck() #perform a loop on logcheck

def getname(lastline):
    #get username from lastline
    all_sentence = lastline.split(&amp;quot;;&amp;quot;)
    if &amp;#39;allies&amp;#39; in all_sentence:
        all_sentence.remove(&amp;#39;allies&amp;#39;)
    if &amp;#39;axis&amp;#39; in all_sentence:
        all_sentence.remove(&amp;#39;axis&amp;#39;)
    username = all_sentence[8]
    return username

def loaddatabase():
    # warning database with names and number of times warned loaded on startcheck
    global db
    global name_saver
    
    try:
        db = open(Application.StartupPath + &amp;#39;\warningdatabase.db&amp;#39;, &amp;#39;r&amp;#39;)
        name_saver = cPickle.load(db)
        db.close()
    except ArgumentException:
        MessageBox.Show(&amp;quot;    Error Loading Database: 
 Check or Create warningdatabase.db in Aplication Folder&amp;quot; , &amp;quot;&amp;quot;,MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

def savedatabase():
    # saved in time defined in save_database
    global db
    global name_saver
    
    db = open(Application.StartupPath + &amp;#39;\warningdatabase.db&amp;#39;, &amp;#39;w&amp;#39;)
    cPickle.dump(name_saver, db)
    db.close()

def checkcounters():
    global lastline
    global username
    global name_saver
    
    if active_noobtube == &amp;quot;True&amp;quot;:
        #debug print &amp;quot;testcounters&amp;quot;
        if noob_tube in lastline:
          
            #get username from lastline
            getname(lastline)

            # check if player is in warning list
            if name_saver.has_key(str(username)):
                name_saver[str(username)][&amp;quot;kick_tube&amp;quot;] += 1
                
            else:
                name_saver[&amp;quot;name&amp;quot;] = str(username)
                name_saver[str(username)] ={&amp;#39;kick_tube&amp;#39;:0, &amp;#39;kick_marty&amp;#39;:0}

            if name_saver[str(username)][&amp;quot;kick_tube&amp;quot;] &amp;lt;= warning_counter_tube:
                # sockets messages here and preferably sentences are loaded from a ini supporting multiple language
                print &amp;quot;%s is about to be kicked for using noobtube!!!&amp;quot; %username
                socketconnect(noob_text)

            else:
                #here goes the sockets connection to send the pb_kick command
                socketconnect(cmd = &amp;#39;PB_SV_Kick %s %s &amp;quot;Kicked due to use of noob tube&amp;quot; | &amp;quot;No noob tube in the server ever!&amp;quot;&amp;#39;%(username, minutes_kick_variable))
    
    if active_martyrdom == &amp;quot;True&amp;quot;:
        if martyrdom in lastline:
            
            #get username from lastline
            getname(lastline)
            
            # check if player is in warning list
            if name_saver.has_key(str(username)):
                name_saver[str(username)][&amp;quot;kick_marty&amp;quot;] += 1
            else:
                name_saver[&amp;quot;name&amp;quot;] = str(username)
                name_saver[str(username)] = {&amp;#39;kick_tube&amp;#39;:0, &amp;#39;kick_marty&amp;#39;:0}

            if name_saver[str(username)][&amp;quot;kick_marty&amp;quot;] &amp;lt;= warning_counter_marty:
                print &amp;quot;%s is about to be kicked for using martyrdom!!!&amp;quot; %username
                # sockets messages here
                socketconnect(marty_text)
                
            else:
                #here goes the sockets connection to send the pb_kick command
                socketconnect(cmd = &amp;#39;PB_SV_Kick %s %s &amp;quot;Kicked due to use of Martyrdom&amp;quot; | &amp;quot;No Martyrdom in the server ever!&amp;quot;&amp;#39;%(username, minutes_kick_variable))

StartCheckButton(MyForm().button1.Click, startcheck) 
values = MyForm()               
Application.EnableVisualStyles()
Application.Run(values)&lt;/font&gt;</description></item><item><title>Strange errors on this script</title><link>http://forums.asp.net/thread/2684677.aspx</link><pubDate>Wed, 15 Oct 2008 14:33:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2684677</guid><dc:creator>Juba_PornBorn</dc:creator><author>Juba_PornBorn</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2684677.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2684677</wfw:commentRss><description>Hello, Im doing my first IP script and I&amp;#39;m getting really weird mistake I don&amp;#39;t understand how to solve.
                                                
Here&amp;#39;s the code and the errors I get:
                                              
1&amp;gt; 2 form windows and system tray icons show up
                                        
2&amp;gt; Button does not work and sometimes it shows this message on press:
                                                 
&lt;font face="Lucida Console" size="2"&gt;startcheck[] has 2 arguments, none given&lt;/font&gt;
                                  
I haven&amp;#39;t defined arguments for startcheck.
                                                   
3&amp;gt; Can&amp;#39;t get values from the variables inside the class in the script
                                         
Here&amp;#39;s the script:                                       
&lt;font face="Lucida Console" size="2"&gt;&amp;#39;&amp;#39;&amp;#39; Script by Juba_PornBorn, Open Source Cod4 Tool Project, To donate or any kind of support: server_help@hotmail.co.uk Oficial web Page: uadminsdevenezuela.co.nr&amp;#39;&amp;#39;&amp;#39;

import os
import os.path
import socket
import cPickle
from threading import Timer
import clr
clr.AddReference(&amp;#39;System&amp;#39;)
clr.AddReference(&amp;#39;System.Windows.Forms&amp;#39;)
clr.AddReference(&amp;#39;System.Drawing&amp;#39;)
from System import *
from System.Windows.Forms import *
from System.Drawing import *

name_saver = {}
username = &amp;#39;none&amp;#39;
martyrdom = &amp;#39;frag_grenade_short_mp&amp;#39;
noob_tube = &amp;#39;gl_weapon_mp&amp;#39;
host = &amp;#39;localhost&amp;#39;
#value to check if new line is written
checkline = 0
#tray icon on logcheck loop on else turn of
tray_on = 0

class MyForm(Form):
    def __init__(self):
        self.MaximizeBox = 0
        self.MinimizeBox = 1
        self.ShowInTakbar = 0
        self.GetStayOnTop = 0
        self.FormBorderStyle = FormBorderStyle.Sizable
        self.Size = Size(546, 381)
        self.Text = &amp;quot;COD4 Warning System&amp;quot;
        
        image = Bitmap(Application.StartupPath + &amp;#39;\picturebox3img.jpg&amp;#39;)
        self.BackgroundImage = image

        self.button1 = Button(Text=&amp;#39;Start Check&amp;#39;, Location=Point(448,320), Size=Size(75, 23))
        self.button1.BackColor = Color.FromArgb(167, 166, 170)
        self.button1.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.button1.Cursor = Cursors.Default
        self.Controls.Add(self.button1)

        self.checkbox1 = CheckBox(Text=&amp;#39;Noob Tube (Granade Launcher)&amp;#39;, Location=Point(24,24), Size=Size(184, 19))
        self.checkbox1.Checked = True
        self.checkbox1.BackColor = Color.FromArgb(255, 255, 255)
        self.checkbox1.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.checkbox1.Cursor = Cursors.Default
        self.checkbox1.BackColor = Color.Transparent
        self.Controls.Add(self.checkbox1)

        self.checkbox2 = CheckBox(Text=&amp;#39;Martyrdom&amp;#39;, Location=Point(24,56), Size=Size(168, 22))
        self.checkbox2.Checked = True
        self.checkbox2.BackColor = Color.FromArgb(255, 255, 255)
        self.checkbox2.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.checkbox2.Cursor = Cursors.Default
        self.checkbox2.BackColor = Color.Transparent
        self.Controls.Add(self.checkbox2)

        self.textbox5 = TextBox(Text=&amp;#39;Insert game_mp.log direction here...&amp;#39;, Location=Point(224,24), Size=Size(288, 20))
        self.textbox5.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox5.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox5.Cursor = Cursors.Default
        self.Controls.Add(self.textbox5)

        self.textbox2 = TextBox(Text=&amp;#39;1&amp;#39;, Location=Point(10,104), Size=Size(20, 20))
        self.textbox2.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox2.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox2.Cursor = Cursors.Default
        self.Controls.Add(self.textbox2)

        self.textbox3 = TextBox(Text=&amp;#39;1&amp;#39;, Location=Point(10,144), Size=Size(20, 20))
        self.textbox3.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox3.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox3.Cursor = Cursors.Default
        self.Controls.Add(self.textbox3)

        self.label1 = Label(Text=&amp;#39;Max Warnings on Martydom before kick&amp;#39;, Location=Point(40,144), Size=Size(238, 17))
        self.label1.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label1.Cursor = Cursors.Default
        self.label1.BackColor = Color.Transparent
        self.Controls.Add(self.label1)

        self.label2 = Label(Text=&amp;#39;Max Warnings on Noob Tube before kick&amp;#39;, Location=Point(40,104), Size=Size(238, 17))
        self.label2.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label2.Cursor = Cursors.Default
        self.label2.BackColor = Color.Transparent
        self.Controls.Add(self.label2)

        self.textbox4 = TextBox(Text=&amp;#39;20&amp;#39;, Location=Point(314,104), Size=Size(25, 20))
        self.textbox4.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox4.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox4.Cursor = Cursors.Default
        self.Controls.Add(self.textbox4)

        self.label3 = Label(Text=&amp;#39;Time in minutes to save to Database&amp;#39;, Location=Point(344,96), Size=Size(140, 34))
        self.label3.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 9)
        self.label3.Cursor = Cursors.Default
        self.label3.BackColor = Color.Transparent
        self.Controls.Add(self.label3)

        self.textbox10 = TextBox(Text=&amp;#39;20&amp;#39;, Location=Point(314,144), Size=Size(25, 20))
        self.textbox10.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox10.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox10.Cursor = Cursors.Default
        self.Controls.Add(self.textbox10)

        self.label4 = Label(Text=&amp;#39;PunkBuster Temp Ban time in minutes&amp;#39;, Location=Point(344,136), Size=Size(100, 31))
        self.label4.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 9)
        self.label4.Cursor = Cursors.Default
        self.label4.BackColor = Color.Transparent
        self.Controls.Add(self.label4)

        self.textbox6 = TextBox(Text=&amp;#39;password&amp;#39;, Location=Point(16,208), Size=Size(100, 20))
        self.textbox6.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox6.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox6.Cursor = Cursors.Default
        self.Controls.Add(self.textbox6)

        self.label5 = Label(Text=&amp;#39;Rcon Password&amp;#39;, Location=Point(16,192), Size=Size(100, 23))
        self.label5.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label5.Cursor = Cursors.Default
        self.label5.BackColor = Color.Transparent
        self.Controls.Add(self.label5)

        self.textbox7 = TextBox(Text=&amp;#39;28960&amp;#39;, Location=Point(136,208), Size=Size(100, 20))
        self.textbox7.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox7.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox7.Cursor = Cursors.Default
        self.Controls.Add(self.textbox7)

        self.label6 = Label(Text=&amp;#39;Server Port&amp;#39;, Location=Point(136,192), Size=Size(134, 17))
        self.label6.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label6.Cursor = Cursors.Default
        self.label6.BackColor = Color.Transparent
        self.Controls.Add(self.label6)

        self.textbox8 = TextBox(Text=&amp;#39;%s is going to get kicked if noob tube is used again...&amp;#39;%username, Location=Point(16,264), Size=Size(340, 20))
        self.textbox8.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox8.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox8.Cursor = Cursors.Default
        self.Controls.Add(self.textbox8)

        self.label7 = Label(Text=&amp;#39;Warning message for noob tube&amp;#39;, Location=Point(16,248), Size=Size(298, 17))
        self.label7.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label7.Cursor = Cursors.Default
        self.label7.BackColor = Color.Transparent
        self.Controls.Add(self.label7)

        self.textbox9 = TextBox(Text=&amp;#39;%s is going to get kicked if Martyrdom is used again...&amp;#39;%username, Location=Point(16,320), Size=Size(340, 20))
        self.textbox9.BackColor = Color.FromArgb(255, 255, 255)
        self.textbox9.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.textbox9.Cursor = Cursors.Default
        self.Controls.Add(self.textbox9)

        self.label11 = Label(Text=&amp;#39;Warning message for Martyrdom&amp;#39;, Location=Point(16,304), Size=Size(298, 17))
        self.label11.Font = Font(&amp;#39;Microsoft Sans Serif&amp;#39;, 8)
        self.label11.Cursor = Cursors.Default
        self.label11.BackColor = Color.Transparent
        self.Controls.Add(self.label11)
        
        self.initNotifyIcon()
        self.Resize += self.ResizeForm
        
    def initNotifyIcon(self):
        self.notifyIcon = NotifyIcon()
        self.notifyIcon.Icon = Icon(Application.StartupPath + &amp;#39;\cod4.ico&amp;#39;)
        self.notifyIcon.Visible = True
        self.notifyIcon.MouseDoubleClick += self.DoubleClickOnTrayIcon
        
    def ResizeForm(self, s, e):
        if self.WindowState == FormWindowState.Minimized:
            self.notifyIcon.Visible = True
            self.Visible = False
        
    def DoubleClickOnTrayIcon(self, s, e):
        if e.Button == MouseButtons.Left:
            self.Visible = True
            if self.WindowState == FormWindowState.Minimized:
                self.WindowState = FormWindowState.Normal
                self.notifyIcon.Visible = False
                
def StartCheckButton(sender, eventArgs):
    sender += eventArgs
    
def startcheck():
    global savedb, rcon_password, server_port, active_noobtube, active_martyrdom, minutes_kick_variable, warning_counter_tube, warning_counter_marty, game_or_mod_path, save_database, noob_text, marty_text
    
    # timer of saving database
    savedb = Timer(save_database * 60, savedatabase)
    savedb.start()
    
    #check form variables
    rcon_password = values.textbox6.Text
    server_port = values.textbox7.Text
    active_noobtube = values.checkbox1.Checked
    active_martyrdom = values.checkbox2.Checked
    minutes_kick_variable = values.textbox10.Text #In the form corresponds to the 20 minute Punkbuster variable 
    warning_counter_tube = values.textbox2.Text # Number of times player is warned before kick in the form corresponds to Max warnings Tube
    warning_counter_marty = values.textbox3.Text # Number of times player is warned before kick in the form corresponds to Max warnings Martydom 
    game_or_mod_path = values.textbox5.Text #test path
    save_database = values.textbox4.Text #time in minutes wich saves cPickle database of users
    noob_text = values.textbox8.Text
    marty_text = values.textbox9.Text
    
    # start logcheck loop
    tray_on = 1
    
    #Close form window and open system tray button
    values.WindowState = FormWindowState.Minimized
    test_socket()
    loaddatabase()
    openlogexists()
    
def socketconnect(cmd):
    try:
        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        s.settimeout(5)
        s.connect((host, server_port))
        packet = &amp;#39;&amp;#255;&amp;#255;&amp;#255;&amp;#255;rcon &amp;quot;%s&amp;quot; %s
&amp;#39; %(rcon_password, cmd)
        while len(packet) &amp;gt; 0:
            c = s.send(packet)
            packet = packet[c:]
        sleep(1)
        message = s.recv(2048)
        s.close()
        return message
    except ArgumentException:
        MessageBox.Show(&amp;quot;Could not connect to Server&amp;quot;, &amp;quot;&amp;quot;,MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

def test_socket():
    socketconnect(&amp;#39;status&amp;#39;)

def openlogexists():
    #complete path to games_mp.log
    global lastline
    global checkline
    global size
    try:
        logfile = open(game_or_mod_path, &amp;#39;r&amp;#39;)
        size = os.path.getsize(game_or_mod_path)
        lineList = logfile.readlines()
        lastline = lineList[-1]
        logfile.close()
    except ArgumentException:
        # to print on an error box
        MessageBox.Show(&amp;quot;Log %s not found&amp;quot; %game_or_mod_path , &amp;quot;&amp;quot;,MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
        
    # check if line is still the same
    if lastline:
        if checkline != lastline:
            checkline = lastline
            checkcounters()
            logcheck()
            #start loop here on log check  or wait until the logcheck function ends and wait a second or 2 and start it again
            
def logcheck():
    global size
    global lastline
    
    logfile = open(game_or_mod_path, &amp;#39;r&amp;#39;)
    logfile.seek(size)
    lineList = logfile.readlines()
    lastline = lineList[-1]
    if lastline:
        if checkline != lastline:
            checkline = lastline
            size = os.path.getsize(game_or_mod_path)
            newlenght = len(lineList) - 1
            x = -1
            while x &amp;lt; newlenght:
                x += 1
                lastline = lineList[x]
                lastline
                checkcounters()
            sleep(5) # give a 5 second space between each check    
            if tray_on == 1:
                logcheck() #perform a loop on logcheck

def getname(lastline):
    #get username from lastline
    all_sentence = lastline.split(&amp;quot;;&amp;quot;)
    if &amp;#39;allies&amp;#39; in all_sentence:
        all_sentence.remove(&amp;#39;allies&amp;#39;)
    if &amp;#39;axis&amp;#39; in all_sentence:
        all_sentence.remove(&amp;#39;axis&amp;#39;)
    username = all_sentence[8]
    return username

def loaddatabase():
    # warning database with names and number of times warned loaded on startcheck
    global db
    global name_saver
    
    try:
        db = open(Application.StartupPath + &amp;#39;\warningdatabase.db&amp;#39;, &amp;#39;r&amp;#39;)
        name_saver = cPickle.load(db)
        db.close()
    except ArgumentException:
        MessageBox.Show(&amp;quot;    Error Loading Database: 
 Check or Create warningdatabase.db in Aplication Folder&amp;quot; , &amp;quot;&amp;quot;,MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

def savedatabase():
    # saved in time defined in save_database
    global db
    global name_saver
    
    db = open(Application.StartupPath + &amp;#39;\warningdatabase.db&amp;#39;, &amp;#39;w&amp;#39;)
    cPickle.dump(name_saver, db)
    db.close()

def checkcounters():
    global lastline
    global username
    global name_saver
    
    if active_noobtube == &amp;quot;True&amp;quot;:
        #debug print &amp;quot;testcounters&amp;quot;
        if noob_tube in lastline:
          
            #get username from lastline
            getname(lastline)

            # check if player is in warning list
            if name_saver.has_key(str(username)):
                name_saver[str(username)][&amp;quot;kick_tube&amp;quot;] += 1
                
            else:
                name_saver[&amp;quot;name&amp;quot;] = str(username)
                name_saver[str(username)] ={&amp;#39;kick_tube&amp;#39;:0, &amp;#39;kick_marty&amp;#39;:0}

            if name_saver[str(username)][&amp;quot;kick_tube&amp;quot;] &amp;lt;= warning_counter_tube:
                # sockets messages here and preferably sentences are loaded from a ini supporting multiple language
                print &amp;quot;%s is about to be kicked for using noobtube!!!&amp;quot; %username
                socketconnect(noob_text)

            else:
                #here goes the sockets connection to send the pb_kick command
                socketconnect(cmd = &amp;#39;PB_SV_Kick %s %s &amp;quot;Kicked due to use of noob tube&amp;quot; | &amp;quot;No noob tube in the server ever!&amp;quot;&amp;#39;%(username, minutes_kick_variable))
    
    if active_martyrdom == &amp;quot;True&amp;quot;:
        if martyrdom in lastline:
            
            #get username from lastline
            getname(lastline)
            
            # check if player is in warning list
            if name_saver.has_key(str(username)):
                name_saver[str(username)][&amp;quot;kick_marty&amp;quot;] += 1
            else:
                name_saver[&amp;quot;name&amp;quot;] = str(username)
                name_saver[str(username)] = {&amp;#39;kick_tube&amp;#39;:0, &amp;#39;kick_marty&amp;#39;:0}

            if name_saver[str(username)][&amp;quot;kick_marty&amp;quot;] &amp;lt;= warning_counter_marty:
                print &amp;quot;%s is about to be kicked for using martyrdom!!!&amp;quot; %username
                # sockets messages here
                socketconnect(marty_text)
                
            else:
                #here goes the sockets connection to send the pb_kick command
                socketconnect(cmd = &amp;#39;PB_SV_Kick %s %s &amp;quot;Kicked due to use of Martyrdom&amp;quot; | &amp;quot;No Martyrdom in the server ever!&amp;quot;&amp;#39;%(username, minutes_kick_variable))

StartCheckButton(MyForm().button1.Click, startcheck) 
values = MyForm()               
Application.EnableVisualStyles()
Application.Run(values)&lt;/font&gt;                                        </description></item><item><title>How many people are actually using ASP.Net for something useful here?</title><link>http://forums.asp.net/thread/2562738.aspx</link><pubDate>Sun, 17 Aug 2008 19:59:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2562738</guid><dc:creator>dodygunawinata</dc:creator><author>dodygunawinata</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/2562738.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2562738</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m just wondering how big is the interest of using IronPython for ASP.Net for something beyond curiousity.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Translating Python Application to .NET language</title><link>http://forums.asp.net/thread/2442886.aspx</link><pubDate>Tue, 24 Jun 2008 12:00:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2442886</guid><dc:creator>Dollarjunkie</dc:creator><author>Dollarjunkie</author><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/2442886.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2442886</wfw:commentRss><description>&lt;p&gt;I have an application written in Python, that I would like to translate to .NET. Problem is I have no idea how to code in Python. Any ideas how to go about handling this problem?? Thanks in Advance&lt;/p&gt;</description></item><item><title>Hidden reference to IronPython 1.1 assembly ?</title><link>http://forums.asp.net/thread/2308544.aspx</link><pubDate>Sat, 19 Apr 2008 15:34:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2308544</guid><dc:creator>Galaxstar</dc:creator><author>Galaxstar</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/2308544.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2308544</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m using the asp.net futures (july2007) with VWD 2008 Express and Visual Studio 2008. I also have the VS2008 SDK installed with IronPython integration.&lt;/p&gt;&lt;p&gt;When i create and run a web site project with IronPython (VWD or VS2008) I get this error : &amp;quot;Could not load File or Assembly &amp;#39;IronPython, Version=1.1.0.0, ...&amp;quot;&lt;/p&gt;&lt;p&gt;Yet in the web config file the project references IronPython 2.0.0.0 and copies the IronPython.dll (version 2.0) to the bin folder of the website project.&lt;/p&gt;&lt;p&gt;How do i solve this ? I can&amp;#39;t copy the IronPython.dll (version 1.1) to the bin folder since it deletes the IronPython.dll (version 2.0). &lt;/p&gt;&lt;p&gt;Is there a way to remove the reference to IronPython 1.1 ? Or is it possible to add the IronPython.dll (1.1) in another directory than bin ?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I must add that when i run VS2008 from the experimental hive i&amp;#39;m able to create and run a website project (no reference to IronPython 2.0 here).&lt;/p&gt;&lt;p&gt;I&amp;#39;m obviously missing something about assemblies and references to assemblies.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help and tips greatly appreciated.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Is there any update to IronPython support for ASP.Net?</title><link>http://forums.asp.net/thread/2424074.aspx</link><pubDate>Sun, 15 Jun 2008 11:53:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2424074</guid><dc:creator>dodygunawinata</dc:creator><author>dodygunawinata</author><slash:comments>17</slash:comments><comments>http://forums.asp.net/thread/2424074.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2424074</wfw:commentRss><description>&lt;p&gt;The last update to IronPython for ASP.Net was back in July 2007. There hasn&amp;#39;t been any movement for almost a year now.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Evaluating instead of compiling the IronPython page at every request</title><link>http://forums.asp.net/thread/1864629.aspx</link><pubDate>Sat, 18 Aug 2007 05:42:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1864629</guid><dc:creator>dodygunawinata</dc:creator><author>dodygunawinata</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/1864629.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=1864629</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi there,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am working on a Virtual Path Provider that server IronPython .aspx page as needed.&lt;/p&gt;&lt;p&gt; With VPP, I have the ability to modify the IronPython source code of the ASPX page on the fly. The problem is, I cannot figure out a way to force ASP.Net to check the source everytime it receives a request. So there&amp;#39;s always a delay between the source code change in the VPP back end to the &amp;quot;in memory&amp;quot; ASPX page that IIS serves.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Is there any way or setting in the current VPP to allow this behaviour (Always check source - do not cache) in ASP.Net futures?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>IronPython and Mono</title><link>http://forums.asp.net/thread/2191395.aspx</link><pubDate>Sat, 23 Feb 2008 10:48:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2191395</guid><dc:creator>Yansky</dc:creator><author>Yansky</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/2191395.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1098&amp;PostID=2191395</wfw:commentRss><description>&lt;p&gt;I want to use IronPython to write an application in Python, but I&amp;#39;m confused about how to get it to work on Linux as well. &lt;br /&gt;&lt;br /&gt;Does Linux need Mono to be able to run a Windows Forms app?&lt;br /&gt;&lt;br /&gt;If the Linux installation has Mono installed, does that mean it will be able to run the app without any Linux-specific alterations to my code?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>