WebFormRouting tool NOT working with IIS7

Last post 04-06-2008 4:04 AM by leftend. 4 replies.

Sort Posts:

  • WebFormRouting tool NOT working with IIS7

    04-05-2008, 5:34 PM
    • Loading...
    • leftend
    • Joined on 03-09-2006, 3:27 PM
    • San Diego, CA
    • Posts 44

    My title may turn out to not be exactly correct - but I was trying to be concise.  I am using the "WebFormRouting" tool created by Phil Haack which can be found here:

    http://haacked.com/archive/2008/03/11/using-routing-with-webforms.aspx

    I've been using it successfully for a while - but all the sudden... it stopped working.  I finally figured why - I stopped using the built-in ASP.NET Development Server.

    So, when I run my site using the built in ASP.NET Development Server (url: http://localhost:60505/......) - all works fine.  If I create an Application in IIS and point it to my site (running Vista / IIS7), and run it from there (url: http://localhost/MyAppName/......) - the routing does not work at all.

    Anybody know why?  I'm worried that it won't work once I upload it to my shared hosting...

    Thanks in advance!

     

  • Re: WebFormRouting tool NOT working with IIS7

    04-06-2008, 12:10 AM
    • Loading...
    • Haacked
    • Joined on 09-17-2003, 2:43 PM
    • Posts 278

    When you deploy your site, will it be running in a virtual directory? Or will it run in the root of an IIS website?

    Phil Haack (http://haacked.com/)
    Senior Program Manager, Microsoft

    What wouldn’t you do for a Klondike bar?
  • Re: WebFormRouting tool NOT working with IIS7

    04-06-2008, 1:36 AM
    • Loading...
    • leftend
    • Joined on 03-09-2006, 3:27 PM
    • San Diego, CA
    • Posts 44
    I feel silly for not knowing exactly... I would guess a virtual directory.  I mostly use WebHost4Life.com or GoDaddy.com for my shared hosting if that helps - and that's most likely what this current project will go on.  Thanks for the Routing tool BTW - I love it!
  • Re: WebFormRouting tool NOT working with IIS7

    04-06-2008, 1:51 AM
    • Loading...
    • Haacked
    • Joined on 09-17-2003, 2:43 PM
    • Posts 278

    Do you have anything up there now? What's the URL to it? If not, upload a test.html page and test how you access it.

    Phil Haack (http://haacked.com/)
    Senior Program Manager, Microsoft

    What wouldn’t you do for a Klondike bar?
  • Re: WebFormRouting tool NOT working with IIS7

    04-06-2008, 4:04 AM
    • Loading...
    • leftend
    • Joined on 03-09-2006, 3:27 PM
    • San Diego, CA
    • Posts 44

    I don't have anything up yet - but it would be stored in the root directory of my shared hosting account - so the URL would be something like: www.mydomain.com

    One of the routes I'm using is "{category}/{page}/default.aspx" - so the url for that would be: www.mydomain.com/all/1/default.aspx

    Thanks 

Page 1 of 1 (5 items)