You should call:
load_assembly "system.web"
before using HttpRequestBase.
Shay.
--------------------------------------------------------
Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby
Unleashed
Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay
On Tue, Jul 27, 2010 at 10:34 AM, Nieve Goor <lists at ruby-forum.com>
wrote:
> 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?
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20100727/400b7274/attachment.html>