make httpmodule class part of application?

  • Thread starter Thread starter Michael Appelmans
  • Start date Start date
M

Michael Appelmans

I have implemented an httpmodule class and added it in the web.config, but when
I try and use Context.RewritePath I get error:

The virtual path "/searchresult?categoryid=104" maps to another application
which is not allowed.

How to I make my httpmodule part and parcel of the storefront shopping cart
application I am using? What determines, in a given directory, who the
application is?

Thanks for any insight.
 
Dabbler:

It sounds as if the HttpModule is installed correctly, the problem is
probably in the parameter you are passing. Where is your app located
(in the root, in a sub dir)? and where are you trying to rewrite to?
 
Michael,
IIS determines your application boundaries. If you have a virtual
directory that is configured as an application, then you can't rewrite a url
to a url of a different logical application. If you have
http://localhost/myapp/, you can't rewrite to http://localhost/default.aspx,
but you can put the HttpModule in the other application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top