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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top