March 9th, 2008 — 2:36pm
If you want to have a go with IronPython on Silverlight 2.0, you could do worse than to follow the advice in this article. Although the example is rather simplistic it should get you up and running in no time.
As the Chiron tool is in the Microsoft SDK’s folder, I am presuming that you will need to install the Silverlight 2.0 SDK first (as well as the Silverlight 2.0 runtime of course). These can be downloaded from here:
Have fun!
Comment » | silverlight
February 29th, 2008 — 11:52pm
If, like me, you fancied playing around with IronPython and Silverlight on Apache, here’s how I got mine set-up:
- Download and unpack DLRConsole.zip from http://silverlight.net/Samples/1.1/DLR-Console/DLRConsole.zip
- Added the following to my Apache httpd.conf file:
<VirtualHost 127.0.0.1>
ServerName DLRConsole
DocumentRoot "C:/dev/DLRConsole"
AddType text/python .py
AddType text/jscript .jsx
DirectoryIndex index.htm index.html
</VirtualHost>
<Directory "C:/dev/DLRConsole">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.htm index.html
</Directory>
- I also set up the following in my hosts file (typically located on Windows at C:WINDOWSSYSTEM32DRIVERSETCHOSTS):
127.0.0.1 dlrconsole
- Re-start Apache and point your browser to http://dlrconsole
You may need to comment out any other Python handlers in you httpd.conf file and add them on a per <Directory> basis, but obviously if you’ve got loads of Python-based sites on your Apache installation then your mileage may vary. Fortunately this wasn’t an issue for me so the following was sufficient:
AddHandler cgi-script .pl
#AddHandler cgi-script .py
For more on the DLRConsole see this article from MSDN Magazine.
Comment » | Uncategorized