Thanks for doing this investigation! I'll document these web.config changes for IIS 6 so your efforts can benefit others.
~Jimmy Sent from my phone On Aug 14, 2009, at 3:22 PM, "Web Administrator" <webad...@nobts.edu> wrote: > OK. I rearranged the LibraryPaths option in web.config and that > seems to have dealt with the issue. IronRuby.Rack is now serving up > the example app using this web.config on IIS 6: > > <?xml version="1.0"?> > <configuration> > > <configSections> > <!-- custom configuration section for DLR hosting --> > <section name="microsoft.scripting" > type="Microsoft.Scripting.Hosting.Configuration.Section, > Microsoft.Scripting, Version=0.9.5.1, Culture=neutral, > PublicKeyToken=null" requirePermission="false"/> > </configSections> > > <system.web> > <!-- make this true if you want to compile any of the DLR code, > IronRuby.Rack, or your own managed code --> > <authentication mode="None" /> > <globalization culture="en-US" uiCulture="en-US" /> > <compilation defaultLanguage="c#" /> > <httpHandlers> > <add path="*" verb="*" type="IronRuby.Rack.HttpHandlerFactory, > IronRuby.Rack"/> > </httpHandlers> > <customErrors mode="Off"/> > </system.web> > > <!-- DLR configuration. Set debugMode to "true" if you want to > debug your dynamic language code with VS --> > <microsoft.scripting debugMode="false"> > <options> > <!-- > Library paths. Requires that you have Ruby installed at C: > \ruby (default install location) > Note: paths are relative to this file's directory > --> > <set option="LibraryPaths" value=".;C:\IronRuby\lib\IronRuby;C: > \IronRuby\lib\ruby\1.8;C:\IronRuby\lib\ruby\site_ruby;C:\IronRuby\lib > \ruby\site_ruby\1.8"/> > </options> > </microsoft.scripting> > > <appSettings> > > <!-- Settings for IronRuby.Rack --> > <add key="AppRoot" value="." /> <!-- Where is "config.ru" > located --> > <add key="Log" value="ironrack.log" /> <!-- Log for IronRuby.Rack > only --> > <add key="GemPath" value="c:\IronRuby\lib\IronRuby\gems\1.8" /> > <!-- Path to find RubyGems packages --> > > <!-- Other settings --> > > </appSettings> > </configuration> > > > > -----Original Message----- > From: Web Administrator > Sent: Fri 8/14/2009 5:02 PM > To: ironruby-core@rubyforge.org > Subject: Re: [Ironruby-core] IronRuby.Rack and IIS 6 > > Ok. The web.config has to be done up differently for IIS 6 versus > IIS 7 with relation to the HttpHandlers. I've fixed that and am now > getting a more particular error message regarding not being able to > load thread.so > > web.config and Error trace: http://gist.github.com/168133 > > Error Trace: > > [LoadError: no such file to load -- thread.so] > Microsoft.Scripting.Interpreter.ThrowInstruction.Run > (InterpretedFrame frame) in C:\Documents and Settings\webadmin\My > Documents\Development\ironruby\Merlin\Main\Runtime > \Microsoft.Scripting\Interpreter\Instruction.cs:760 > Microsoft.Scripting.Interpreter.Interpreter.RunInstructions > (InterpretedFrame frame) in C:\Documents and Settings\webadmin\My > Documents\Development\ironruby\Merlin\Main\Runtime > \Microsoft.Scripting\Interpreter\Interpreter.cs:233 > Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame > frame) in C:\Documents and Settings\webadmin\My Documents\Development > \ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Interpreter > \Interpreter.cs:94 > Microsoft.Scripting.Interpreter.LightLambda.Run2(T0 arg0, T1 arg1) > in C:\Documents and Settings\webadmin\My Documents\Development > \ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Interpreter > \LightLambda.Generated.cs:93 > IronRuby.Runtime.RubyScriptCode.Run(Scope scope, Boolean > bindGlobals) in C:\Documents and Settings\webadmin\My Documents > \Development\ironruby\Merlin\Main\Languages\Ruby\Ruby\Runtime > \RubyScriptCode.cs:107 > IronRuby.Runtime.RubyScriptCode.Run(Scope scope) in C:\Documents > and Settings\webadmin\My Documents\Development\ironruby\Merlin\Main > \Languages\Ruby\Ruby\Runtime\RubyScriptCode.cs:79 > Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink > errorSink) in C:\Documents and Settings\webadmin\My Documents > \Development\ironruby\Merlin\Main\Runtime\Microsoft.Scripting > \SourceUnit.cs:232 > Microsoft.Scripting.SourceUnit.Execute(Scope scope) in C: > \Documents and Settings\webadmin\My Documents\Development\ironruby > \Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs:217 > Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope > scope) in C:\Documents and Settings\webadmin\My Documents\Development > \ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting > \ScriptSource.cs:133 > IronRuby.Rack.RubyEngine.Execute(String code, ScriptScope aScope) > in C:\Documents and Settings\webadmin\My Documents\Development > \ironruby\Merlin\Main\Hosts\IronRuby.Rack\RubyEngine.cs:53 > IronRuby.Rack.RubyEngine.Execute(String code) in C:\Documents and > Settings\webadmin\My Documents\Development\ironruby\Merlin\Main\Hosts > \IronRuby.Rack\RubyEngine.cs:48 > IronRuby.Rack.Utils.ReportError(HttpContext context, Exception e) > in C:\Documents and Settings\webadmin\My Documents\Development > \ironruby\Merlin\Main\Hosts\IronRuby.Rack\Utils.cs:52 > IronRuby.Rack.HttpHandlerFactory.GetHandler(HttpContext context, > String requestType, String url, String pathTranslated) in C: > \Documents and Settings\webadmin\My Documents\Development\ironruby > \Merlin\Main\Hosts\IronRuby.Rack\HttpHandlerFactory.cs:48 > System.Web.HttpApplication.MapHttpHandler(HttpContext context, > String requestType, VirtualPath path, String pathTranslated, Boolean > useAppConfig) +193 > > System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute( > ) +93 > System.Web.HttpApplication.ExecuteStep(IExecutionStep step, > Boolean& completedSynchronously) +155 > > > -----Original Message----- > From: Web Administrator > Sent: Fri 8/14/2009 3:55 PM > To: ironruby-core@rubyforge.org > Subject: [Ironruby-core] IronRuby.Rack and IIS 6 > > I am trying to get IronRuby.Rack working with an IIS 6 install on > Windows Server 2003. > > I successfully compiled the necessary DLLs and put them into a bin/ > folder alongside the files from IronRuby.Rack.Example which I simply > copied over to my IIS machine and assigned appropriate permissions. > > I went through everything I can think of in terms of setting ASP.NET > to 2.0.x and setting up a wildcard handler that points to the aspnet > DLL. But everything I've done yields an ugly Directory Listing Not > Allowed error. > > I don't have access to any servers that can use IIS 7, so I'm stuck. > Any ideas as far as what may be going wrong. > > > Thanks, > James Thompson > > > <winmail.dat> > _______________________________________________ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core