# IronRuby-Rake-0.0.9-Universal-dotnet only for IIS 7?

**URL:** <https://www.ruby-forum.com/t/ironruby-rake-0-0-9-universal-dotnet-only-for-iis-7/191231>\
**Category:** IronRuby\
**Created:** [July 7, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/ironruby-rake-0-0-9-universal-dotnet-only-for-iis-7/191231 "2010-07-07T20:15:31Z")\
**Posts on this page:** 3\
**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:** [July 7, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/ironruby-rake-0-0-9-universal-dotnet-only-for-iis-7/191231/1 "2010-07-07T20:15:31Z")

</div>

I have a Windows XP machine and noticed when i try and run the  
deploy2iis i  
get an error (see below). Looking at the source of the error its trying  
to  
do something with the user IIS\_IUSRS which isn’t a user under Windows  
XP. Is  
this by design? I know Windows XP is old and all, but getting work to  
upgrade isnt possible right now. I changed the user to the IIS user  
under  
Windows XP and now it says it can connect to the server but it just cant  
view the page, 403 Error, it created the site in IIS. Any ideas?

Error:  
C:\Code\>deploy2iis myapp C:\Code  
mscorlib:0:in `Translate': Some or all identity references could not be translated. (System::Security::Principal::IdentityNotMappedException) from mscorlib:0:in`Translate’  
from mscorlib:0:in `ModifyAccess' from mscorlib:0:in`AddAccessRule’  
from mscorlib:0:in `AddAccessRule' from C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:161:in`add\_acl’  
from  
C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/…/lib/rack/deploy/iis.rb:48:in  
`set_permissions' from C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/../lib/rack/deploy/iis.rb:32:in`deploy’  
from  
C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/deploy2iis:36:in  
` __send__' from C:/IronRuby/lib/ironruby/gems/1.8/gems/ironruby-rack-0.0.9-universal-dotnet/bin/deploy2iis:36 from C:/IronRuby/bin/deploy2iis:19:in`load’  
from C:/IronRuby/bin/deploy2iis:19

Code:  
def set\_permissions app\_path  
dfr = FileSystemRights.full\_control  
gan = ‘IIS\_IUSRS’

unless acl\_exists? app\_path, dfr, gan  
add\_acl app\_path, dfr, gan  
end  
end

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:** [July 7, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/ironruby-rake-0-0-9-universal-dotnet-only-for-iis-7/191231/2 "2010-07-07T20:41:51Z")

</div>

The deploy2iis hasn’t been tested on IIS6; I can provide a better error  
message in the meantime. The application generated by rack2aspnet should  
run  
on IIS6, so let me know if at least that works for you. deploy2iis is  
just  
intended to do the one-time setup required to run the application in  
IIS; I  
can also include the manual steps in the error message when IIS7 isn’t  
installed.

If you’re interested in tracking down some of the issues on IIS6 and  
reporting more directed bugs / submitting patches, I’d be more than  
happy to  
support configuring IIS6 for IronRuby Rack.

~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:** [July 7, 2010, 9:15pm UTC](https://www.ruby-forum.com/t/ironruby-rake-0-0-9-universal-dotnet-only-for-iis-7/191231/3 "2010-07-07T21:15:13Z")

</div>

Jimmy,  
The rack2aspnet worked fine. I was able to use Cassini to load and run  
the  
simple app, but for some reason it wont run under IIS6. I will try and  
track  
down what i can and see why its not working. It may be a configuration  
issue  
on my iis server. I will keep looking and see what i can come up with.  
-Nick
