Re: BUG? With A HTTPModule

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 09:38:34 GMT

Hi,

Thanks for your reply. As you mentioned that you use some certain string to
concate the whole new url which is used to rewrite the Requested path. Have
you also tried a fixed path, for example:
put a test page named test.aspx in the application's root folder and change
the rewritepath code as below:
void OnBeginRequest(object sender, EventArgs a)
{
        HttpApplication application = (HttpApplication)sender;
......................// check the querystring
......................
                
application.Context.RewritePath("http://localhost:8080/CompanyName/test.aspx
");
}

Or you can try the "~/....aspx" url, the "~/" means begin from the
application's root folder(virutal directory) which can help specify the
application's root directory without hardcode it. If the above test still
failed, I'm afraid that it would require intensive troubleshooting. You may
need to submit a service request to
our Product Support Service. We may do some dump analysis on it and see why
the exception happens. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx



Relevant Pages

  • Re: BUG? With A HTTPModule
    ... > concate the whole new url which is used to rewrite the Requested path. ... > application's root folderwhich can help specify the ... > application's root directory without hardcode it. ... > our Product Support Service. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: cyrus & sendmail
    ... rewritten as: root ... rewritten as: daemon @ edu. ... rewrite: ruleset Local_localaddr input: daemon ... mailbox is overqouta." ...
    (comp.mail.sendmail)
  • Re: local user FQDN or domain rewrite on outgoing mail
    ... to root on the local box, ... Then it forwards to the external isp account. ... It looks a rewrite and a resubmit occurs there ...
    (comp.mail.sendmail)
  • LOCAL_RULE_0 and prog mailer problem
    ... rewrite: ruleset ParseLocal returns: root ... Contrast that with a successful prog-mailer selection. ... Tietotekniikkaosasto / Helsingin yliopisto ...
    (comp.mail.sendmail)
  • Re: ldap_routing and local aliases
    ... The intent with ldap_routing would be merely for validity checking of addresses, ... rewrite: ruleset ParseLocal returns: root ... gtest0@xxxxxxxxxxxx deliverable: mailer cyrusv2, user gtest0@xxxxxxxxx ...
    (comp.mail.sendmail)