{"id":2724,"date":"2011-03-14T21:40:00","date_gmt":"2011-03-14T21:40:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2011\/03\/14\/enabling-iis-express-support-in-vs-2010-sp1\/"},"modified":"2022-08-12T02:52:21","modified_gmt":"2022-08-12T09:52:21","slug":"enabling-iis-express-support-in-vs-2010-sp1","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/enabling-iis-express-support-in-vs-2010-sp1\/","title":{"rendered":"Enabling IIS Express support in VS 2010 Sp1"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>With the <a target=\"_blank\" href=\"http:\/\/blogs.msdn.com\/b\/jasonz\/archive\/2011\/03\/08\/announcing-visual-studio-2010-service-pack-1.aspx\" rel=\"noopener\">Sp1 release<\/a> of Visual Studio 2010 now available for <a target=\"_blank\" href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=209902\" rel=\"noopener\">download<\/a>, you now have the option to use IIS Express as the development server for your web projects instead of the built-in Visual Studio Development server (aka. Cassini). Here are some previous blog posts explaining the IIS Express integration features in VS 2010 Sp1 Beta, which are also available with this new release of Sp1:<\/p>\n<ul>\n<li><a target=\"_blank\" href=\"http:\/\/weblogs.asp.net\/scottgu\/archive\/2011\/01\/03\/vs-2010-sp1-beta-and-iis-developer-express.aspx\" rel=\"noopener\">VS 2010 SP1 (Beta) and IIS Express<\/a><\/li>\n<li><a target=\"_blank\" href=\"http:\/\/blogs.msdn.com\/b\/webdevtools\/archive\/2010\/12\/11\/visual-studio-2010-sp1-beta-iis-express-integration.aspx\" rel=\"noopener\">Visual Studio 2010 SP1 Beta IIS Express Integration<\/a><\/li>\n<\/ul>\n<p><strong><span style=\"text-decoration: underline\">VS 2010 SP1 and IIS Express should <em>both be<\/em> <em>installed <\/em>to enable IIS Express support<\/span><\/strong><\/p>\n<p>To enable using IIS Express as the development server for your web projects, you need to have both the Sp1 release of VS 2010 as well as the IIS Express web server installed. See the &#8216;Installing VS 2010 Sp1 and IIS Express&#8217; section below for details on how to do this.<\/p>\n<p><span style=\"text-decoration: underline\">Sharing projects that use IIS Express in a team environment<\/span> &#8211; Note that the RTM release of VS 2010 does not know about IIS Express, as the feature was added only in Sp1. This means that if you have a project using IIS Express in VS 2010 Sp1 and share that project with a teammate who is still running VS 2010 RTM, then VS 2010 RTM will make an attempt to open the project as if it were an <em>IIS<\/em> project and probably give you an error similar to &ldquo;Could not find the server &lsquo;http:\/\/localhost:20221&rsquo; on the local machine&rdquo; (assuming that no site with that binding exists in IIS). If everyone on the team is using VS 2010 Sp1, then you will not run into this problem.<\/p>\n<p>If you do have some folks on the team using VS 2010 RTM and others using VS 2010 Sp1, then for Web Application Projects, you can work around the above issue by unchecking the &ldquo;Apply server settings to all users (store in project file)&rdquo; checkbox in the Property Pages &gt; Web tab of the WAP. This causes the server selection (Cassini or IIS Express) and related settings to get stored on a per-user basis in the .suo user file rather than in the project file, thus causing the server selection to not persist into source control. This will allow the VS 2010 RTM users on the team to still use Cassini while the VS 2010 Sp1 user can use IIS Express for the same project. For Website Projects, it is necessary that everyone on the team need to be using VS 2010 Sp1 to be able to share projects and use IIS Express.<\/p>\n<p><strong><span style=\"text-decoration: underline\">Installing VS 2010 SP1 and IIS Express<\/span><\/strong>:<\/p>\n<ul>\n<li><strong>When you install Sp1 from the <a target=\"_blank\" href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=209902\" rel=\"noopener\">download page<\/a>, you should install the IIS Express server separately <br \/><\/strong>The VS 2010 Sp1 installer, by itself, includes only the tooling in VS to support using IIS Express as the development server. So after installing Sp1, you will see that a new checkbox exists under <em>Tools &gt; Options &gt; Projects and Solutions &gt; Web Projects<\/em> to use IIS Express for new websites and web projects, but this checkbox is disabled (see figure 1 below). \n<p><strong><span style=\"text-decoration: underline\">Figure 1<\/span> &ndash; IIS Express needs to be installed for Sp1 tooling to light-up<\/strong> <\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/03\/8524.IISxNotEnabled_thumb_5122D684.png\"><img decoding=\"async\" height=\"264\" width=\"484\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/03\/8524.IISxNotEnabled_thumb_5122D684.png\" alt=\"Use IIS Express in Tools-Options\" border=\"0\" title=\"Use IIS Express in Tools-Options\" style=\"border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px\" \/><\/a> <\/p>\n<p>To enable the above checkbox and to &ldquo;light-up&rdquo; other IIS Express support features such as the right-click option to change from Cassini to IIS Express, you will need to <a target=\"_blank\" href=\"http:\/\/www.microsoft.com\/downloads\/en\/details.aspx?FamilyID=abc59783-89de-4adc-b770-0a720bb21deb\" rel=\"noopener\">download and install the IIS Express server<\/a>. <\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Alternatively, if you install Sp1 via <a target=\"_blank\" href=\"http:\/\/www.microsoft.com\/web\/downloads\/platform.aspx\" rel=\"noopener\">Web Platform Installer<\/a>, IIS Express is bundled along with the VS 2010 Sp1 installer<\/strong><strong> <br \/><\/strong>You can also install VS 2010 Sp1 via the Web Platform Installer (Web PI). To do this, you need to first <a target=\"_blank\" href=\"http:\/\/www.microsoft.com\/web\/downloads\/platform.aspx\" rel=\"noopener\">download and install Web PI<\/a>. Then open WebPI and choose &lsquo;Visual Studio 2010 SP1&rsquo; (or &lsquo;Visual Web Developer Express 2010 SP1&rsquo; if you are using VWD Express) and click Add, and then Install (see figure 2 below). \n<p>Installing VS 2010 Sp1 in this fashion allows you to quickly install not only the core VS 2010 Sp1 package but also various other goodies such as ASP.NET MVC 3, SQL CE 4 and the stand-alone IIS Express server (see figure 3 below). <\/p>\n<p><strong><span style=\"text-decoration: underline\">Figure 2<\/span> &ndash; Installing Sp1 via Web Platform Installer<\/strong> <\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/03\/2744.InstallSp1viaWebPI_thumb_02AE441A.png\"><img decoding=\"async\" height=\"336\" width=\"484\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/03\/2744.InstallSp1viaWebPI_thumb_02AE441A.png\" alt=\"InstallSp1viaWebPI\" border=\"0\" title=\"InstallSp1viaWebPI\" style=\"border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px\" \/><\/a>&nbsp; <\/p>\n<p><strong><span style=\"text-decoration: underline\">Figure 3<\/span> &ndash; Installing Sp1 via WebPI gets you various goodies such as IIS Express, MVC 3 and SQL CE 4 <\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/03\/2251.AppsInstalledviaWebPI_thumb_3D9576E3-1.png\"><img decoding=\"async\" height=\"484\" width=\"468\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/03\/2251.AppsInstalledviaWebPI_thumb_3D9576E3-1.png\" alt=\"AppsInstalledviaWebPI\" border=\"0\" title=\"AppsInstalledviaWebPI\" style=\"border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px\" \/><\/a>&nbsp; <br \/><\/strong><\/li>\n<\/ul>\n<p><strong><span style=\"text-decoration: underline\">Verifying that IIS Express is installed<\/span><\/strong><\/p>\n<ul>\n<li>You can verify that it is installed properly by looking at the list of installed programs, as shown in figure 4. \n<p><strong><span style=\"text-decoration: underline\">Figure 4<\/span> &ndash; IIS Express is installed<\/strong> <\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/03\/6560.IISxInARP_thumb_1D0E3731.png\"><img decoding=\"async\" height=\"346\" width=\"484\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/03\/6560.IISxInARP_thumb_1D0E3731.png\" alt=\"IISxInARP\" border=\"0\" title=\"IISxInARP\" style=\"border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px\" \/><\/a>&nbsp; <\/p>\n<p>Once you install IIS Express, the checkbox in figure 1 will now become enabled and you can check it if you want to use IIS Express as the default server for new websites and web projects. Additionally, the right-click option to use IIS Express will also show up in the context menu for both websites and web application projects (see figure 5 below). If your project is already using IIS Express, the context menu will change to &lsquo;Use Visual Studio Development Server &hellip;&rsquo; to allow you to change back to Cassini if you need to. <\/p>\n<p><strong><span style=\"text-decoration: underline\">Figure 5<\/span> &ndash; Use IIS Express context menu<\/strong> <\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/03\/8032.UseIISxContextMenu_thumb_2E7E9809.png\"><img decoding=\"async\" height=\"462\" width=\"484\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/03\/8032.UseIISxContextMenu_thumb_2E7E9809.png\" alt=\"UseIISxContextMenu\" border=\"0\" title=\"UseIISxContextMenu\" style=\"border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px\" \/><\/a> <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; With the Sp1 release of Visual Studio 2010 now available for download, you now have the option to use IIS Express as the development server for your web projects instead of the built-in Visual Studio Development server (aka. Cassini). Here are some previous blog posts explaining the IIS Express integration features in VS 2010 [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[7344,7323,7324,7363],"class_list":["post-2724","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-bala-chirtsabesan","tag-visual-studio-2010","tag-vs10","tag-vs2010"],"acf":[],"blog_post_summary":"<p>&nbsp; With the Sp1 release of Visual Studio 2010 now available for download, you now have the option to use IIS Express as the development server for your web projects instead of the built-in Visual Studio Development server (aka. Cassini). Here are some previous blog posts explaining the IIS Express integration features in VS 2010 [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/2724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=2724"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/2724\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=2724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=2724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=2724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}