urlMapping problem

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Hello all,

I have the following urlMapping element in my web.config:

<urlMappings enabled="true">
<clear />
<add url="~/establishments.aspx" mappedUrl="~/
EstablishmentList.aspx?type=1"/>
</urlMappings>

This was taken from help on MSDN. When i try to navigate to
establishments.aspx I just get a 404 Page not found error, rather than
having EstablishmentList.aspx?type=1 served. Can anyone please help?

Thanks,

Jon
 
Hello Jon,

Are you sure that your file EstablishmentList.aspx exists?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


J> Hello all,
J>
J> I have the following urlMapping element in my web.config:
J>
J> <urlMappings enabled="true">
J> <clear />
J> <add url="~/establishments.aspx" mappedUrl="~/
J> EstablishmentList.aspx?type=1"/>
J> </urlMappings>
J> This was taken from help on MSDN. When i try to navigate to
J> establishments.aspx I just get a 404 Page not found error, rather
J> than having EstablishmentList.aspx?type=1 served. Can anyone please
J> help?
J>
J> Thanks,
J>
J> Jon
J>
 
Hello Jon,

Are you sure that your file EstablishmentList.aspx exists?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

J> Hello all,
J>
J> I have the following urlMapping element in my web.config:
J>
J> <urlMappings enabled="true">
J> <clear />
J> <add url="~/establishments.aspx" mappedUrl="~/
J> EstablishmentList.aspx?type=1"/>
J> </urlMappings>
J> This was taken from help on MSDN. When i try to navigate to
J> establishments.aspx I just get a 404 Page not found error, rather
J> than having EstablishmentList.aspx?type=1 served. Can anyone please
J> help?
J>
J> Thanks,
J>
J> Jon
J>

Hello Michael, positive it's there, checked it many times incase that
was the error!
 
Hello Michael, positive it's there, checked it many times incase that
was the error!- Hide quoted text -

- Show quoted text -

Try to install Fiddler, to check what is really requested there.
 

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

Back
Top