Tutorials

Prerequisites

Installation

Unzip the HelloWorld example to C:\inetpub\wwwroot\HelloWorld. Copy NWSGI.dll (skip if you used the installer) and IronPython.dll, IronPython.Modules.dll, Microsoft.Scripting.Core.dll, and Microsoft.Scripting.dll into the HelloWorld\bin folder. The HelloWorld folder should look like this:
  • HelloWorld\
    • bin\
      • NWSGI.dll (optional)
      • IronPython.dll
      • IronPYthon.Modules.dll
      • Microsoft.Scripting.Core.dll
      • Microsoft.Scripting.dll
    • hello.wsgi
    • Web.Classic.config
    • Web.Integrated.config

If you are using IIS7 and the installer, copy Web.Integrated.config to Web.config. Otherwise, copy Web.Classic.config to Web.config.

The next step is to point IIS at this folder. This can be done from the UI, but IIS7 has a very nice command line that is much simpler to demonstrate (be sure to run this from an elevated command prompt):
   %systemroot%\system32\inetsrv\appcmd add app /site.name:"Default Web Site" /path:/hello /physicalPath:C:\inetpub\wwwroot\HelloWorld


If you are using IIS6, then you'll have to use the UI to create the application. Also, set a script mapping for *.wsgi that points to the ASP.NET ISAPI filter (e.g. copy the path from the .aspx mapping).

Now visit http://localhost/hello/hello.wsgi. If it says "Hello, World!", then it works!

Last edited Oct 3, 2009 at 5:45 PM by jdhardy, version 15

Comments

No comments yet.