473,466 Members | 1,298 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using urlMappings properly in web.config

On an ASP.NET 2.0 server, is there a way I can use urlMappings with Classical ASP pages?

The web.config file, in my web root, is this:

<?xml version="1.0" ?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<customErrors mode="Off"/>
<urlMappings enabled="true">
<add url="/test1/foo1.asp" mappedUrl="/test2/foo2.asp" />
</urlMappings>
</system.web>
</configuration>

Now, /test1/foo1.asp does not exist, /test2/foo2.asp does. Regardless, when I enter the
address for foo1.asp in my browser, I get the standard Error 404. What am I missing
here?

Thanks,

Bill.

Jul 21 '06 #1
0 1100

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

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
7
by: Stoian | last post by:
hey how is it goin, i've got this problem - declared a template but it doesn't work properly, here is the code: 53 std::map<Config, Config> seen; 54 Config new(); 55 ...
16
by: Timm | last post by:
I'm trying to use ASP objects (basically formed and populated based on Web.Config settings) and I want to use them in a different non-asp program with minimal reprogramming. So, my question is how...
1
by: Alexander Widera | last post by:
Hi, is there something new in .net 2.0 about the topic "urlMappings" regarding dynamic url "redirection" ? I want to call "/testpage/topic1/new.aspx" and it should redirect to...
2
by: Luke Dalessandro | last post by:
I have an application with the following layout /root/ /root/Default.aspx /root/web.config /root/child/ /root/child/web.config web.config has a custom configuration section "testSection"...
0
by: Rune B | last post by:
Hey Group Why does this urlMapping work just fine on the development webserver, but not at the IIS (6.0) ? <urlMappings enabled="true"> <add url="~/srs"...
1
by: Edwin Knoppert | last post by:
I'm trying to set the default page when accessing a (sub-)folder. I know i can do it with IIS but i would like to do it with web.config. http://www.mysite.com/ is the default.aspx in the root.
3
by: Edwin Knoppert | last post by:
Sorry, first message was posted prematurly :) I'm trying to set the default page when accessing a (sub-)folder. I know i can do it with IIS but i would like to do it with web.config. ...
1
by: Nathan Sokalski | last post by:
I am using the <urlMappingselement in my Web.config file as follows: <urlMappings enabled="true"> <add url="~/worldnews.aspx" mappedUrl="~/viewlinks.aspx?category=World+News&section=Main"/>...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.