Hello
I've spent the whole day trying to run a simple ASP.NET Web page using IronPython.
Here is what I installed :
- Python 2.6
- PyWin32
- IronPythonStudio
- VS2005 SDK 4.0 (february 2007)
- IronPython 1.1.2
- IronPython for ASP.NET
- Visual C++
Then I opened the IronPythonIntegration project (C:\Program Files\Visual Studio 2005 SDK\2007.02\VisualStudioIntegration\Samples\IronPythonIntegration), build it and ran it.
Then a new Visual Studio poped out (must be the "Experimental hive" 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 :
- 'IronPython' is not a supported language
- 'py' is not a valid language extension
Following the advices from the following page : http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/a65ea850-d7fc-45b5-888c-097a5c080f2f/ I registered the following dlls to the GAC :
gacutil /i "\Program Files\Visual Studio 2005 SDK\2006.08\VisualStudioIntegration\Common\Assemblies\IronMath.dll"
gacutil /i "\Program Files\Visual Studio 2005 SDK\2006.08\VisualStudioIntegration\Common\Assemblies\IronPython.dll"
I also added the following lines to my web.config :
<assemblies>
<add assembly="IronPython, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
<
httpHandlers>
<add path="*.py" verb="*" type="System.Web.HttpForbiddenHandler" validate="true" />
</httpHandlers>
It's still not working, did I miss something ? I'm amazed that so many modules have to be installed just for an extra language !
Thanks