HttpRequestBase

Hello all,
I’m new to iron ruby so apologies in advance if the question is stupid.

I’ve been trying to run an example I found on the net
(http://github.com/BenHall/Kona) and it seems that ir doesn’t like the
inheritance from HttpRequestBase, since I get an error saying
System::Web::HttpRequestBase is an uninitialized const… When I try
accessing the class in cmd ir (after putting in the 'require
web.abstraction.dll) I get the same error, while other classes from the
same namespace work.

Any idea what was I doing wrong here?

You should call:

load_assembly “system.web”

before using HttpRequestBase.

Shay.

Shay F. | Microsoft Visual C#/IronRuby MVP | Author of IronRuby
Unleashed
Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay

Thanks a lot Shay!!!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs