Visual Studio 2008 - When adding existing website from IIS7, it runs using file webserver, not IIS7

Last post 01-31-2008 3:32 AM by rjcox. 5 replies.

Sort Posts:

  • Visual Studio 2008 - When adding existing website from IIS7, it runs using file webserver, not IIS7

    01-28-2008, 6:38 PM
    • Member
      10 point Member
    • danman1977
    • Member since 05-13-2007, 9:59 PM
    • Posts 8

    I am trying to get a website to run in my solution from IIS7 and not the file webserver.  I setup the website as an application in IIS7, then in my solution I then add and choose the website.  However when it is added to the solution, the default webserver is the built in file webserver and not IIS7 like I expect it to be?

    If I open the website by itself however, it opens and runs fine using IIS7.

    Any help appreciated!

    Dan

  • Re: Visual Studio 2008 - When adding existing website from IIS7, it runs using file webserver, not IIS7

    01-29-2008, 3:16 AM
    • Contributor
      7,054 point Contributor
    • rjcox
    • Member since 12-19-2007, 9:14 AM
    • Basingstoke, UK
    • Posts 1,444

     Go into project properties, and under the web tab there are options to select development web server or IIS for debugging.

    Richard
  • Re: Visual Studio 2008 - When adding existing website from IIS7, it runs using file webserver, not IIS7

    01-29-2008, 10:16 PM
    • Member
      10 point Member
    • danman1977
    • Member since 05-13-2007, 9:59 PM
    • Posts 8

    Hi Richard, Thanks for your reply.

    How are you getting into the project properties?  I am right clicking the web project and then selecting property pages but I am not seeing a web tab there?

    Cheers,Dan

  • Re: Visual Studio 2008 - When adding existing website from IIS7, it runs using file webserver, not IIS7

    01-30-2008, 1:11 AM

    After you set up IIS, try opening site as http://localhost instead of opening file system folder. Go to File | Open | Web Site and click IIS button at the left side of the dialog.

    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Visual Studio 2008 - When adding existing website from IIS7, it runs using file webserver, not IIS7

    01-30-2008, 10:19 PM
    • Member
      10 point Member
    • danman1977
    • Member since 05-13-2007, 9:59 PM
    • Posts 8

    Hi Mikahail,

    Yeah, I have tried that, but even if I add from IIS it still seems to come up in my solutions using the filesystem.  However if i create a new blank solution it adds correctly.  Other people in my team open up the solution and it uses IIS fine, just not me!

    Cheers,
    Dan

  • Re: Visual Studio 2008 - When adding existing website from IIS7, it runs using file webserver, not IIS7

    01-31-2008, 3:32 AM
    • Contributor
      7,054 point Contributor
    • rjcox
    • Member since 12-19-2007, 9:14 AM
    • Basingstoke, UK
    • Posts 1,444

    In that case, it seems likely it is some local configuration item.

    Delete everything and grab again from source control (depending on your VCS maybe you'll need to force) and start again. 

    Richard
Page 1 of 1 (6 items)