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
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to