404 error on URLmapping..newbie needs help!

Discussion in 'ASP.NET / ASP.NET Core' started by lapogunev, Sep 29, 2009.

  1. Hi everyone,

    Just getting started on hosting my little site on DASP. I have a problem that's probably simple, but I'm a newbie..

    In my web.config, I have URL mappings like

    <add url="~/result" mappedUrl="~/product/productresult.aspx"/>

    This works fine on my local machine where if I type, say,
    http://localhost:1280/result

    it gets mapped correctly and I get a proper result. Now I uploaded my site to DASP and when I type my <url>/result I get a 404.0 error

    Requested URL http://aaa.bbb.discountasp.net:80/result
    Physical Path E:\web\mysite\htdocs\result

    What am I doing wrong? in my local dev. I've set the virtual path to /, is that a problem? do I need to do something else?

    Please help!
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    are you hosted on IIS6? if so, you'll need to create a ticket to setup wildcard mapping.
     
  3. no, I believe I'm on IIS7. I'm not using any of the URL rewrite modules etc. - just simple web.config URLmappings property..and it works fine on my local m/c

    Edit - I am on IIS7 Integrated mode

    I'd really like to have this working -- what am I missing?
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    does it work if you add a rule to map to a file to another location?
     
  5. I couldn't figure out what to do and not much help on the web either on this specific issues. But that turned out to be a blessing in disguise anyway...I then spent time learning IIS7 URLRewrite, configured it and it works beautifully -- much better option and lot more powerful.
     

Share This Page