Friday, September 25, 2009

Using NWSGI 2.0 Beta 2 with IronPython 2.6 RC1

UPDATE: This won't work. The IronPython team made some changes that break the ABI (Microsoft.Dynamic, I'm looking at you) which renders this fix unworkable.

NWSGI is linked against specific versions of IronPython, so every time the IronPython team changes the AssemblyVersion, I need to respin NWSGI. In the meantime, an <assemblyBinding/> section can be used in web.config to make previous NWSGI version work with newer IronPython versions.

Thanks to Markus Törnqvist for coming up the specific elements for this case:

       <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
               <assemblyIdentity name="IronPython" publicKeyToken="31bf3856ad364e35" culture="neutral" />
               <bindingRedirect oldVersion="" newVersion="2.6.10920.0" />
               <assemblyIdentity name="Microsoft.Scripting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
               <bindingRedirect oldVersion="" newVersion="" />

I’ll try to get an update of NWSGI out as soon as possible.