locked
Web Development Server-Preview ASPX Pages RRS feed

  • Question

  • When I try to preview an aspx page, I get the famous IE error unable to display page. When I click the preview button, the Web Development Server icon shows up in the lower right taskbar but no preview. I have think I installed the program correctly. Any help would be appreciated. Maybe I have some files not in the correct folder?

    I am running Expression Web 2, operating system Vista Home premium, and Internet Explorer 7.0.
    • Moved by Anna UllrichModerator Monday, August 24, 2009 5:58 PM question for Expression Web (From:Expression Studio)
    Monday, August 24, 2009 5:00 PM

Answers

  • Take a look at this thread:

    http://social.expression.microsoft.com/Forums/en-US/web/thread/cddd9627-b833-4f28-9af3-ae7203199df8

    Here's the text of my reply in the above thread:

    In Vista, an automatic update or certain virus protection apps may have made a change to your 'hosts' file.

    Your "hosts" file is what tells your computer that "localhost" should map to "127.0.0.1" so here is where your file is:

        C:\WINDOWS\system32\drivers\etc\hosts

    Close Expression Web and any browser that open.

    Locate the 'hosts' using Windows Explorer

    Open that file in Notepad under a 'computer administrator account'. The following entry should be present. If it is not, or does not look like the following, add or edit the entry:

        127.0.0.1       localhost

    Save the file. (You may need to restart your computer

    Try to open the page(s) that were giving you the 404 error.

    -Preston


    Columbia, CA. USA http://www.gildedmoon.com
    • Proposed as answer by Chris Leeds Monday, August 24, 2009 11:31 PM
    • Marked as answer by OldSid Tuesday, August 25, 2009 2:55 AM
    Monday, August 24, 2009 6:34 PM

All replies

  • There's nothing extra to install.  If you've got Expression Web installed the dev server will know what to do with an ASPX page.  With PHP there's a little bit of work, but not so for ASPX.
    Restart the application, select a page and then preview in a browser.  If it fails again, tell us exactly what the error message said, and also tell us what the URL in the page was.  It should begin like http://localhost:####/FolderName/Page.aspx (where #### is a random port number, FolderName is the name of the folder it's residing in, and Page.aspx would be the actual page name).
    Don't sweat it though, this isn't going to be a big issue to get past.

    HTH
    Chris

    Chris Leeds
    Join My Expression Studio SIG, I'll make it worth your while. ;-)
    Microsoft Press "Expression Web Step by Step"

    Monday, August 24, 2009 6:28 PM
  • Take a look at this thread:

    http://social.expression.microsoft.com/Forums/en-US/web/thread/cddd9627-b833-4f28-9af3-ae7203199df8

    Here's the text of my reply in the above thread:

    In Vista, an automatic update or certain virus protection apps may have made a change to your 'hosts' file.

    Your "hosts" file is what tells your computer that "localhost" should map to "127.0.0.1" so here is where your file is:

        C:\WINDOWS\system32\drivers\etc\hosts

    Close Expression Web and any browser that open.

    Locate the 'hosts' using Windows Explorer

    Open that file in Notepad under a 'computer administrator account'. The following entry should be present. If it is not, or does not look like the following, add or edit the entry:

        127.0.0.1       localhost

    Save the file. (You may need to restart your computer

    Try to open the page(s) that were giving you the 404 error.

    -Preston


    Columbia, CA. USA http://www.gildedmoon.com
    • Proposed as answer by Chris Leeds Monday, August 24, 2009 11:31 PM
    • Marked as answer by OldSid Tuesday, August 25, 2009 2:55 AM
    Monday, August 24, 2009 6:34 PM
  • I edited the host file like Preston B said and now the preview works fine. Thanks so much.
    Monday, August 24, 2009 8:21 PM
  • I edited the host file like you said. That entry was missing... added the entry and now the preview works fine. Thank you ever so much.
    • Marked as answer by OldSid Monday, August 24, 2009 8:22 PM
    • Unmarked as answer by OldSid Monday, August 24, 2009 8:23 PM
    Monday, August 24, 2009 8:22 PM
  • Glad it worked for you. Since that's the case, would you please mark my reply as "Answer". This helps folks when they have a similar issue and my reply might help them.
     Thanks!

    -Preston
    Columbia, CA. USA http://www.gildedmoon.com
    Monday, August 24, 2009 8:51 PM