Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Urlmappings - works locally not on server IIS

Posted on 2007-03-18
3
Medium Priority
?
1,992 Views
Last Modified: 2007-12-19
Hi,
I'm trying to use the urlmappings in asp.net 2.0 on iis 6 / win 2003.
Everything works fine on my local xp vs 2005 edition, but on server I get a 404 page.
Here is sample of web.config with relevant bits:
<system.web>
<urlMappings enabled="true">
      <add url="~/wakefield.html" mappedUrl="~/partner/index.aspx?p=1"/>
    </urlMappings>
</system.web>

- when I go to wakefield.html local, everything works fine and it goes to the correct page.
On the server I get a 404 page.

If I change it to

<add url="~/wakefield.aspx" mappedUrl="~/partner/index.aspx?p=1"/>
ie change the file type to aspx from html, everything works fine, so I know the code is ok.  Am I missing something in the setup of IIS and the way it copes with the .html?

Any help greatly appreciated,
Andrew
0
Comment
Question by:andrewh123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 2000 total points
ID: 18746382
Do you have HTML mapped to ASPNET_Isapo in the application mappings?

If no then requests to .html pages will not be handled by ASP.Net and will not be mapped properly.

Dave Dietz
0
 
LVL 1

Author Comment

by:andrewh123
ID: 18746824
Cheers Dave - but did you actually mean aspnet_isapi.dll ?  Mapped this and all seems to work now.
Regards
Andrew
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 18747982
D'oh!  Yes, I fumble fingered my spelling.

aspnet_isapi.dll is correct.  

If you actally have an aspnet_isapo mapping you might want to run some antivirus scans.....  ;-)

Dave Dietz
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question