473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

make httpmodule class part of application?

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
Nov 18 '05 #1
2 1537
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?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 29 Nov 2004 17:16:08 -0500, Michael Appelmans
<ml*@zitinko.com> wrote:
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.


Nov 18 '05 #2
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.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo
"Michael Appelmans" <ml*@zitinko.com> wrote in message
news:MP************************@news.microsoft.com ...
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

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael Iantosca | last post by:
I have a custom attribute that I attach to certain pages in my application and I want to inspect each page request as it is made to see if the custom attribute is attached to the underlying page...
4
by: Chip Page | last post by:
Hello, In my top-level Web.config, I had added a number of httpModules. In a particular sub-directory in the application, I wish to prevent one of the HttpModules from executing. My attempts...
1
by: Hardy Wang | last post by:
Hi all, I built a HttpModule for one of my ASP.NET application to handle some special file format (*.DEC1, *. DEC2). My code is like below public class MyClass : IHttpModule { public MyClass() {...
2
by: craigkenisston | last post by:
I have an asp.net application. This have a very special class that I use all over the site code. I also have an HttpModule which has been working quite fine. Now, due a strange requirement I need...
2
by: Simon-Pierre Jarry | last post by:
Hi, I created a custom HttpModule for managing the security of my application. in "Init" sub, I regsiter the events doing that : Public Sub Init(ByVal context As System.Web.HttpApplication)...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
3
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I need to write asynchronous HTTPModule which will sometimes execute long job. I've written it using AddOnBeginRequestAsync but it still executes synchronously - I am checking performance...
2
by: Jimi Schacht | last post by:
ok, so, i've got a web project in c#. I'm using IIS instead of dev server. The application builds fine until I add an httpmodule I intend to use for URL rewriting and it's entry in the web.config....
3
by: Joseph Geretz | last post by:
I'm implementing a web application whose purpose in life is to act as a data conduit. Data is posted to my Web app in XML format, my application examines the data and forwards it onward by posting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.