[Mono-list] System.Web.IHttpModule support using xsp and mono

Shawn Vose mono@programmerforrent.com
Sun, 05 Dec 2004 20:10:07 -0500


I have written a project that inherits from System.Web.IHttpModule 
indicated in my webconfig file. Are httpModules supported in Mono. When 
I run my app on windows it will automatically direct me to the correct 
page as indicated in my webconfig. Something like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="Seo">
            <section name="pagePaths" 
type="pfrseoindex.Engine.Framework.Base.SeoSectionHandler, pfrseoindex" />
        </sectionGroup>
    </configSections>
    <Seo>
        <pagePaths>
            <add key="basePage" value="/seoHandler.aspx"/>
            <add key="urlRoot" value="/pfrseoindex"/>
        </pagePaths>
    </Seo>
  <system.web>
    <compilation
         defaultLanguage="c#"
         debug="true"
    />
    <customErrors
    mode="RemoteOnly"
    />
   <httpModules>
        <add name="SeoInit" 
type="pfrseoindex.Engine.Framework.Base.SeoInit, pfrseoindex"/>
    </httpModules>


So no matter what I type in as a url it will always call the basePage 
value first of the root. For example on windows if I type the url

http://localhost/pfrseoindex/default.aspx

it would in reality be
http://localhost/pfrseoindex/seoHandler.aspx

because I am using 
Context.RewritePath(Path.GetFileName(Request.RawUrl)); in the 
seoHandler.aspx page

Additionally if I type:

http://localhost/pfrseoindex/test/default.aspx

it would in reality be :
http://localhost/pfrseoindex/seoHandler.aspx

However if I do the same on linux running mono it complains about 
directory or file not found, which makes me wonder if  
System.Web.IHttpModule is fully supported when using xsp.

Any help suggestions would be appreciated.

Kindest Regards,
Shawn Vose