Answered ASP.NET Development Server configuration

  • Monday, August 28, 2006 6:27 AM
     
     

    When I create new Web Service project and try to run/debug it - ASP.NET Development Server instance are created and I could see results (Web Site on http://localhost:<port>/Site/<WS_name>.asmx).

    But - I got the project source from other developer (it contain Form and WebService project which cooperate) and ASP.NET Developer Server isn't starts when I run/debug project.So I cannot see results of my experiments.

    Furthermore Web Service Project was in unloaded state until I changed IIS settings root folder on this folder with WS directly.

    It is some configuration changes in project to start ASP.NET Development Server? Or same manipulations which allow to see results of remotely created (I mean created by some other developer, which has some specific settings of the VS/IIS) Web Service?

    P.S. I know about possibility to type in IE http://localhost/.../ws.asmx but I would be know about some built-in tool.

     

    Best regards, Vasily

All Replies

  • Monday, August 28, 2006 6:43 PM
     
     
    If I understand correctly, the project you received from another developer was created to go against IIS and when you copied it to your machine, you want it to run against the web development server. Unfortunately, this isn't supported directly in the IDE. The server information is stored in the solution (.sln) file so that it is shared across developers - for the exact reason you point out. You have two projects in the solution and one of them is a web service consumed by the second project. Changing the URL will break the consumption of the web service.  Unfortunately, there isn't a tool to view this information prior to opening the solution. The .sln file is a text file so you could examine it first to the the web site urls.
  • Tuesday, August 29, 2006 6:15 AM
     
     

    But why?

    Project has been created in Visual Studio and in time of creating it uses ASP.NET Development Server. After coping on other machine:

    1. Web Service part was unloadable

    2. After changed settings IIS - it loads successfuly but lost the link with ASP.NET Development Server.

    It is strange to me.

    One more question - in solution .sln i so that string "Debug.AspNetCompiler.PhysicalPath = "..\..\..\..\inetpub\wwwroot\ConfigDataStore\" " is it meen - if I place solution or correct this string on right (to this path and path to solution will be equal) link will be restored?

  • Tuesday, August 29, 2006 8:13 PM
     
     Answered

    I assume the original solution constains a web site project that pointed to a web created on IIS. When you copied to your machine, it did not open because you the virtual directory probably doesn't exist on your local machine. If you change it to open as a file system (disk path) web that uses the Development Server then the URL of the project will change (see my comments in the previous post). .

    That entry in the .sln file is only used when doing command line builds of visual studio when we run

  • Wednesday, August 22, 2007 6:20 PM
     
     

     

    I have a web project on my system that uses the IIS server on my developer computer, which works just fine. 

     

    I am wanting to change the web project to use the asp.net development server included in Visual Studio 2005.  I am not seeing any menu options or properties to change this setting.. Any pointers?

     

     

     

  • Thursday, August 23, 2007 7:03 AM
    Moderator
     
     Answered

    Right-click the Project node in the Solution Explorer, select "Properties", go to the "Web" tab, and then the "Servers" zone.

  • Saturday, September 01, 2012 4:58 AM
     
     
    Thank you. Solved a big teaser as it was always opening the home page while i wanted it to always open current page.