locked
Python is not a supported language RRS feed

  • Question

  • User156944936 posted

    I know .aspx files work because I just tested one using C#. But Python is what I want to be working in. The test script I have been using is at http://www.4guysfromrolla.com/webtech/082201-1.shtml . I get an error that Python is not a supported language.

    I have installed:

    PyWin32 at http://starship.python.net/crew/mhammond/win32/Downloads.html

    IronPython 1.1 (Nov. 2nd)

     Ajax Extension

     ASP.NET Visual Studio Futures

    Visual Studio 2005 plus 2007.02 SDK

    WinXP-SP2

    What do I still need to do to be able to use Python is my .aspx?

     


     

    Wednesday, November 7, 2007 3:08 PM

All replies

  • User1083762747 posted

    Hi Hotaru,

    It definitely works. you can see here:

    http://weblogs.asp.net/scottgu/archive/2006/11/16/ironpython-for-asp-net-ctp.aspx

    the IDE mentioned is Visual Web Developer, so Visual Studio 2005 should be able to work too. But no installation steps mentioned.
     

    Wednesday, November 28, 2007 10:31 PM
  • User156944936 posted

    I know it is supposed to work, but it doesn't.

    http://img143.imageshack.us/img143/8206/clipboard01uo7.png

     

    Tuesday, December 4, 2007 3:21 PM
  • User1186657406 posted

    It is IronPython that is supported. [:)]

    Tuesday, December 4, 2007 4:25 PM
  • User156944936 posted

    Then what about this?

    http://img141.imageshack.us/img141/550/clipboard01ng7.png

     

    Wednesday, December 5, 2007 10:15 AM
  • User1186657406 posted

    You likely don't have the right bits installed.

    - do all assemblies exist under bin of your web app?
       Microsoft.Web.Scripting.dll
       Microsoft.Scripting.dll
       IronPython.dll
       IronPython.Modules.dll

    - does web.config have the needed settings?

            <pages compilationMode="Auto"
                pageParserFilterType="Microsoft.Web.Scripting.UI.NoCompileCodePageParserFilter">
            </pages>

            <httpHandlers>
                <add path="*.py" verb="*" type="System.Web.HttpForbiddenHandler" validate="true" />
            </httpHandlers>

            <httpModules>
                <add name="DynamicLanguageHttpModule" type="Microsoft.Web.Scripting.DynamicLanguageHttpModule"/>
            </httpModules>

     

    Wednesday, December 5, 2007 2:41 PM