Forum: Ruby on Rails trouble invoking dispatch.rb via cgi on IIS5

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ball, Donald A Jr (Library) (Guest)
on 2007-01-19 17:29
(Received via mailing list)
Howdy folks. I'm trying to get a rails app running behind IIS5. Yes, I
know, I know, but my hands are tied. After much banging my head against
FastCGI and friends, I've decided to try to get it working using vanilla
CGI first and then maybe attempt something more ambitious.

I mapped .rb to 'c:\ruby\bin\rubyw.exe "%s" %s' in IIS's Application
Configuration, Application Mappings dialog, making sure to uncheck the
"Check that file exists" box. Thereafter, I tried to hit one of my
applications' URLs through dispatch.rb:


and sadly, I get this stacktrace:

CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:

Status: 400 Bad Request

rt/dependencies.rb:399:in `to_constant_name': Anonymous modules have no
name to be referenced by (ArgumentError)
rt/dependencies.rb:211:in `qualified_name_for'
rt/dependencies.rb:470:in `const_missing'
  from C:/sites/npl/public/dispatch.rb:10

I'm using rails-1.2rc1 with ruby-1.8.4, winxpsp2, iis5. Any suggestions?

- donald
Steve R. (Guest)
on 2007-09-26 00:32
(Received via mailing list)
I've never tried this, but the things to check are:

1) What's in your path under IIS and what version of Ruby does it point
2) Does your shebag #! line in dispatch.cgi point to someplace other

Let everyone know in case we need to deploy under IIS.

Ball, Donald A Jr (Library) wrote:
> applications' URLs through dispatch.rb:
> c:/ruby/lib/ruby/gems/1.8/gems/rails-
> >

View this message in context:
Sent from the RubyOnRails Users mailing list archive at
This topic is locked and can not be replied to.