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
( 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 F. | Microsoft Visual C#/IronRuby MVP | Author of IronRuby
Blog: | Twitter:

Thanks a lot Shay!!!