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 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.
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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() {...
|
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...
|
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)...
|
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...
|
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...
|
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....
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
| |