# IronRuby on Rails and IIS 6 or IIS 7

**URL:** <https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131>\
**Category:** IronRuby\
**Created:** [March 31, 2010, 11:44pm UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131 "2010-03-31T23:44:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [March 31, 2010, 11:44pm UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131/1 "2010-03-31T23:44:42Z")

</div>

Is there a way to get IronRuby on Rails to work under IIS6 or IIS7? I  
have seen some articles about Ruby on Rails, but not IronRuby. I guess  
it wouldn’t be too difficult since these are both MS apps. I just cant  
find how to do it, sure the built in tester for rails is there for  
development, but i would like a static always-on-solution for some  
serious testing of my app as well as available to anyone who can hit  
the web server.  
Thanks,  
–Nick

---

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [April 1, 2010, 12:13am UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131/2 "2010-04-01T00:13:22Z")

</div>

[http://ironruby.net/Documentation/Real\_Ruby\_Applications/Rails](http://ironruby.net/Documentation/Real_Ruby_Applications/Rails) should  
have the info you need.

Did this not show up in a web search? Could the web site be better  
organized? Just wondering how we could make it easier for people to get  
to the info on [ironruby.net](http://ironruby.net)…

---

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [April 1, 2010, 1:08am UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131/3 "2010-04-01T01:08:58Z")

</div>

I think the problem is that the information really isn’t complete. The  
IIS stuff isn’t even on this page, it’s in the IronRuby.Rack readme,  
which I have yet to have success with.

---

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [April 1, 2010, 1:47am UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131/4 "2010-04-01T01:47:04Z")

</div>

It probably is a configuration issue for me.

I could never get it to actually run anything through Rack.

I’ll try again at some point very soon and note what I’ve tried. I was  
just a little frustrated last time, so I didn’t write anything useful  
down.

On Wed, Mar 31, 2010 at 5:37 PM, Jimmy S.

---

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [April 1, 2010, 1:40am UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131/5 "2010-04-01T01:40:38Z")

</div>

Nick,

IronRuby.Rack lets you run Rack-based applications on IIS, like Rails.  
Read more here:  
[http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack#readme](http://github.com/ironruby/ironruby/tree/master/Merlin/Main/Hosts/IronRuby.Rack#readme)

Basically get the IronRuby source code, build IronRuby.Rack.sln, and try  
the IronRuby.Rails.Example app; it will run Rails in IIS. If it doesn’t  
work, it’s probably just a configuration issue, so please let me know.  
The next release of IronRuby will be accompanied by a build of  
IronRuby.Rack.dll, if you’d rather wait until then.

Robert, what problems have you been having? I’ll want to capture common  
issues in the docs, and also make sure you’re unblocked.

~Jimmy

---

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [April 1, 2010, 8:00am UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131/6 "2010-04-01T08:00:27Z")

</div>

I can get it to work kind of… (IronRuby.Rack) but it doesn’t show  
images  
for me. everything else works great.

Here’s an example of a [config.ru](http://config.ru) file. Although in rails I put the bin  
folder and web.config file in the public folder and change the app root  
setting in web.config.  
[http://github.com/casualjim/rubyconfindia/tree/master/samples/sinatra/](http://github.com/casualjim/rubyconfindia/tree/master/samples/sinatra/)

* * *

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C. - Mob: +32.486.787.582  
Web: [http://whiterabbitconsulting.eu](http://whiterabbitconsulting.eu) - [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))  
Microsoft IronRuby/C# MVP

---

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [April 17, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131/7 "2010-04-17T20:59:49Z")

</div>

yeah I am getting the same thing. Even just pulling the image up  
directly.  
[mysite.com/images/image.png](http://mysite.com/images/image.png) in firefox says the image is corrupt.

On Sat, Apr 17, 2010 at 11:26 AM, Brian Sullivan  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> on shipping 1.0!
> 
> ## Brian
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> * * *
> 
> Ironruby-core mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
“The explanation requiring the fewest assumptions is most likely to be  
correct.”

- Occamâ€™s Razor  
[Occam's razor - Wikipedia](http://en.wikipedia.org/wiki/Occam's_Razor)

---

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [April 17, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131/8 "2010-04-17T20:26:42Z")

</div>

Ivan, I’m having the same problem. Everything else seems to work, but  
no images show up. The image URLs generated by the framework seem to be  
correct, but I get broken image icons when I paste those URLs directly  
into the address bar.

It seems odd, because other types of static content (css files and  
index.html) seem to come down just fine. Not sure whether this needs to  
be tweaked in Rails, IIS, or the Rack implementation.

Any guidance from the IronRuby team here? Thanks, and congrats  
on shipping 1.0!

Brian

---

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [April 17, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131/9 "2010-04-17T21:16:12Z")

</div>

As I’ve already said:

> There’s also a bug with serving binary files, so images won’t work, but that’ll be fixed for this release.

~Jimmy

On Apr 17, 2010, at 12:00 PM, “Bobby J.”  
\<[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

yeah I am getting the same thing. Even just pulling the image up  
directly. [http://mysite.com/images/image.png](http://mysite.com/images/image.png)  
[mysite.com/images/image.png](http://mysite.com/images/image.png)[http://mysite.com/images/image.png](http://mysite.com/images/image.png) in  
firefox says the image is corrupt.

On Sat, Apr 17, 2010 at 11:26 AM, Brian Sullivan  
\<[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
wrote:  
Ivan, I’m having the same problem. Everything else seems to work, but  
no images show up. The image URLs generated by the framework seem to be  
correct, but I get broken image icons when I paste those URLs directly  
into the address bar.

It seems odd, because other types of static content (css files and  
index.html) seem to come down just fine. Not sure whether this needs to  
be tweaked in Rails, IIS, or the Rack implementation.

Any guidance from the IronRuby team here? Thanks, and congrats  
on shipping 1.0!

## Brian

Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/) [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

* * *

Ironruby-core mailing list  
[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
“The explanation requiring the fewest assumptions is most likely to be  
correct.”

- Occamâ€™s Razor  
[http://en.wikipedia.org/wiki/Occam’s\_Razor](http://en.wikipedia.org/wiki/Occam's_Razor)[Occam's razor - Wikipedia](http://en.wikipedia.org/wiki/Occam's_Razor)

* * *

Ironruby-core mailing list  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

---

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [April 17, 2010, 11:06pm UTC](https://www.ruby-forum.com/t/ironruby-on-rails-and-iis-6-or-iis-7/186131/10 "2010-04-17T23:06:41Z")

</div>

Jimmy,

Apologies, my searches didn’t turn up that particular comment. Didn’t  
mean to make you repeat yourself. 🙂 Looking forward to future releases  
of IronRuby and Rack for IIS!

Brian
