locked
Does VS use its own built in web server? RRS feed

  • Question

  • User-257409430 posted

    When you click debug you run a project and a browser windows opens with it in.

    Is this using VS own built in version of IIS as opposed to any IIS on the machine already?

    Can you configure this?

    Friday, September 6, 2013 3:40 AM

Answers

  • User-821857111 posted

    By default, Visual Studio (up to 2010) uses it's own built in server (Cassini, also known as Visual Studio Development Server). You can right click in 2010 SP1 on the solution and choose to use IIS Express instead. From 2012, IIS Express is the default server.

    http://msdn.microsoft.com/en-us/library/ms178108(v=vs.100).aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 6, 2013 3:46 AM
  • User-1360095595 posted

    Well eventually when you deploy your project you'll be running it from IIS. So at least at some point prior to moving it live, you should give it a try in IIS and make sure you iron out all the potential issues related to security/app pool setup etc.

    Or just use IIS from the start and you'll know what you're dealing with from the begining.

    Note that some versions of windows cannot run IIS, I think (not 100% sure).

    [Edit: Corrected spelling.]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 6, 2013 4:15 AM
  • User71929859 posted

    Thanks. Is there an advantage in using an alternative to Casini. Why would you do this? 

    Some applications- for an example, SignalR applications, only works with IIS.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 10, 2013 3:24 AM

All replies

  • User1070236303 posted

    In the project settings the Web tab contains the web server configuration.

    Friday, September 6, 2013 3:44 AM
  • User-821857111 posted

    By default, Visual Studio (up to 2010) uses it's own built in server (Cassini, also known as Visual Studio Development Server). You can right click in 2010 SP1 on the solution and choose to use IIS Express instead. From 2012, IIS Express is the default server.

    http://msdn.microsoft.com/en-us/library/ms178108(v=vs.100).aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 6, 2013 3:46 AM
  • User-1360095595 posted

    Indeed you can configure a project to use the built in web server or IIS. It's under the project property pages, and in the "Start Options" for website projects and "Web" for web applciations.

    Friday, September 6, 2013 3:47 AM
  • User-257409430 posted

    Thanks. Is there an advantage in using an alternative to Casini. Why would you do this? 

    Friday, September 6, 2013 4:07 AM
  • User-1360095595 posted

    Well eventually when you deploy your project you'll be running it from IIS. So at least at some point prior to moving it live, you should give it a try in IIS and make sure you iron out all the potential issues related to security/app pool setup etc.

    Or just use IIS from the start and you'll know what you're dealing with from the begining.

    Note that some versions of windows cannot run IIS, I think (not 100% sure).

    [Edit: Corrected spelling.]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 6, 2013 4:15 AM
  • User1070236303 posted

    Thanks. Is there an advantage in using an alternative to Casini. Why would you do this? 

    If your app will be published ever: no. Always test/debug/develop with IIS (and not IIS Express, Cassini) if possible. This way you will/can learn how to install IIS, configure application pools, compression, iis url routing  etc. 

    (I'm using IIS as the debug server since win xp)

    Friday, September 6, 2013 5:00 AM
  • User71929859 posted

    Thanks. Is there an advantage in using an alternative to Casini. Why would you do this? 

    Some applications- for an example, SignalR applications, only works with IIS.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 10, 2013 3:24 AM
  • User753101303 posted

    Hi,

    And If I remember Cassini anyway doesn't ship any more with VS 2013 Preview so you'll have to use IIS Express. As it likely share common code with IIS Full, it will be closer (as reported SignalR  support, classic ASP support, likely other IIS modules support etc...) to your real target which is always good.

    Tuesday, September 10, 2013 3:35 AM