[Mono-list] SetHandler (and "Failed to get Session object") vs AddHandler Mod_mono 1.0.2

Gonzalo Paniagua Javier gonzalo.reply.to.the.list.iam.subscribed@ximian.com
Mon, 27 Sep 2004 03:52:50 +0200


On Fri, 2004-09-24 at 16:10, Barbara Plank wrote:
> Hi to all, 
> 
> I have a big question. I've upgraded my mono installation to Mono 1.0.2.
> (Red Hat 9/Apache2/Mod_mono 1.0.2)
> I've a web application which run under Mono 1.0, but on 1.0.2 I had some
> problems, for example the stylesheet was not rendered properly and when I
> tried to access it mod_mono gave me an "Failed to get Session object" error.
> Even when I tried to put a simple textfile in the virtual directory which
> was handled by mod_mono, I got this session error.... I seemed if as
> Mod_mono has locked the file/or some access rights where wrong, but the file
> had actually 777. 

You're probably using a global.asax that uses Session. The problem is
that if you use SetHandler xsp will serve all the files and for those
that are not ASP.NET pages/handlers it will fail with that error. In
this case, using AddHandler is the way to go, which is the same thing
that IIS does, ie, let apache serve non-ASP.NET files.

-Gonzalo