# IIS + IronRuby

**URL:** <https://www.ruby-forum.com/t/iis-ironruby/185131>\
**Category:** IronRuby\
**Created:** [March 14, 2010, 8:13pm UTC](https://www.ruby-forum.com/t/iis-ironruby/185131 "2010-03-14T20:13:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rambor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9de053/32.png) [@rambor](https://www.ruby-forum.com/u/rambor)\
**Post date:** [March 14, 2010, 8:13pm UTC](https://www.ruby-forum.com/t/iis-ironruby/185131/1 "2010-03-14T20:13:51Z")

</div>

Hello,

I know this has been asked quite a few times, but I donÂ¹t see any  
progress  
on a full set of directions for using IIS to host IronRuby R./Rack  
applications.

Anything out there that IÂ¹m missing?

---

<div class="post-metadata">

**Author:** ![rambor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9de053/32.png) [@rambor](https://www.ruby-forum.com/u/rambor)\
**Post date:** [March 14, 2010, 8:27pm UTC](https://www.ruby-forum.com/t/iis-ironruby/185131/2 "2010-03-14T20:27:18Z")

</div>

Well it’s not really working atm at least not for me

## [IronRuby.Rack how to debug? - IronRuby - Ruby-Forum](http://www.ruby-forum.com/topic/205999)

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
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 ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))  
Microsoft IronRuby/C# MVP

---

<div class="post-metadata">

**Author:** ![rambor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9de053/32.png) [@rambor](https://www.ruby-forum.com/u/rambor)\
**Post date:** [March 14, 2010, 8:39pm UTC](https://www.ruby-forum.com/t/iis-ironruby/185131/3 "2010-03-14T20:39:01Z")

</div>

but what I did was create a new solution in visual studio  
Added references to the files from the ironruby rc3 distribution  
Add the files from Merlin\Main\Hosts\IronRuby.Rack\*.cs to the solution

Applied this patch:  
[http://www.mail-archive.com/removed\_email\_address@domain.invalid/msg06039.html](http://www.mail-archive.com/removed_email_address@domain.invalid/msg06039.html)

compiled as release

Added a bin folder to my public folder and copied the resulting  
assemblies  
there.  
Added a web.config much like this one:  
[http://github.com/ironruby/ironruby/blob/master/Merlin/Main/Hosts/IronRuby.Rack/IronRuby.RailsDB.Example/Web.config](http://github.com/ironruby/ironruby/blob/master/Merlin/Main/Hosts/IronRuby.Rack/IronRuby.RailsDB.Example/Web.config)

But I changed the values of LibraryPaths and GemPath to point to my  
ironruby  
install  
based on C:\ironruby\

I also changed the value of AppRoot to ..

and my [config.ru](http://config.ru) in the RAILS\_ROOT contains:

ENV[‘RAILS\_ENV’] = ‘production’  
require “config/environment”

use Rails::Rack::LogTailer  
use Rails::Rack::Static  
run ActionController::Dispatcher.new

## That should make your application work on IIS but there is still an open problem around it not serving the images.

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
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 ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))  
Microsoft IronRuby/C# MVP

---

<div class="post-metadata">

**Author:** ![rambor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9de053/32.png) [@rambor](https://www.ruby-forum.com/u/rambor)\
**Post date:** [March 14, 2010, 9:18pm UTC](https://www.ruby-forum.com/t/iis-ironruby/185131/4 "2010-03-14T21:18:13Z")

</div>

Hello,

IÂ¹ve done the equivalent of that and IIS returns a 403 error when I try  
to  
access the site.

On 3/14/10 1:38 PM, “Ivan Porto C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
