non-existent non-aspx file requests not getting passed to ASP.NET?

L

Les Caudle

If a non-aspx file is requested, like "domain.com/school", IIS is not passing
this on to ASP.NET 2.0 so that urlMappings can take place in Web.Config.

IIS is simply returning a 404 and not passing the request on.

<urlMappings enabled="true">
<add
url="~/school"
mappedUrl="~/Schools.aspx" />
</urlMappings>

How can I resolve this?
 
C

Cowboy \(Gregory A. Beamer\)

That is not the purpose. You are attempting a directory to a page. The idea
behind urlMappings is a page to another page, possibly with url parameters.
If you want to take directory paths to pages, you will have to use an
HttpHandler. Example:
http://www.ftponline.com/vsm/2002_02/online/online_print/jgoodyear/default.aspx

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top