{"id":330,"date":"2013-06-04T17:14:59","date_gmt":"2013-06-04T17:14:59","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=330"},"modified":"2022-02-03T11:25:04","modified_gmt":"2022-02-03T17:25:04","slug":"installing-iis-and-asp-net","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/","title":{"rendered":"Installing IIS and ASP.NET &#8211; installing things so you can get your website up and running"},"content":{"rendered":"<p>I have gotten a lot of issues of tinkering with IIS solved before &#8211; but never have I written anything down and I have never installed it from scratch. Now, I have to do these steps again so this time I will write them down for myself and others. I will not be using the default website. \u00a0I am doing so on Windows 7. Note that this is on the Intranet &#8211; so security is NOT my main focus although it is on my mind while setting it up but I am not going to be crazy on that in this discussion &#8211; just mention a few thing here or there that you might want to think about. <a href=\"http:\/\/www.asp.net\/mvc\/tutorials\/mvc-4\/getting-started-with-aspnet-mvc4\/intro-to-aspnet-mvc-4\" target=\"_blank\" rel=\"noopener noreferrer\">This is where I started from a tutorial standpoint<\/a> &#8211; but I am going back to this once I am done. There is a <a href=\"http:\/\/www.asp.net\/web-forms\" target=\"_blank\" rel=\"noopener noreferrer\">great MS tutorial in the 1st link<\/a> in the install section below.<\/p>\n<p>UPDATE: This little step of registering IIS (aspnet_regiis.exe -I) after install has gotten me SOOO many times. ALWAYS do this &#8211; <a href=\"http:\/\/serverfault.com\/questions\/1649\/why-does-iis-refuse-to-serve-asp-net-content\" target=\"_blank\" rel=\"noopener noreferrer\">see this link<\/a>.<\/p>\n<h2>Install MS Visual Studio Express 2012 for Web<\/h2>\n<ul>\n<li><span style=\"line-height: 15px;\">download from Microsoft and follow the instructions<\/span><\/li>\n<li><a href=\"http:\/\/www.asp.net\/web-forms\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.asp.net\/web-forms<\/a>\u00a0&#8211; great tutorial site too<\/li>\n<li>register it, MS says its free but you have to register &#8211; ok &#8211; no issues<\/li>\n<li>you will require a reboot<\/li>\n<\/ul>\n<h2>Install IIS<\/h2>\n<ul>\n<li><span style=\"line-height: 15px;\"><!--more-->Go to your Control Panel-&gt;Programs and Features<\/span><\/li>\n<li>on the left, click &#8220;Turn Windows features on or off&#8221;<\/li>\n<li>expand the Internet Information Services (IIS) and hunt\/enable these items\n<ul>\n<li>FTP Service<\/li>\n<li>IIS Management Service &#8211; so I won&#8217;t have to get up and go to my computer to make changes<\/li>\n<li>.Net Extensibility<\/li>\n<li>ASP.NET<\/li>\n<li>ISAPI Extensions<\/li>\n<li>ISAPI Filters<\/li>\n<li>HTTP Errors<\/li>\n<li>Directory Browsing &#8230; you might want to turn this off<\/li>\n<li>Default Document (means you have to have Default.aspx, index.htm, index.html and it will magically find them first if they exist<\/li>\n<li>URL Authentication (optional)<\/li>\n<li>Basic Authentication (optional)<\/li>\n<li>Request Filtering<\/li>\n<li>Windows Authentication (cause I am lazy and don&#8217;t want to set up special user tables etc and all the other tools use Windows logins\/passwords &#8211; keeps things simple)<\/li>\n<li>Click OK a few times to exit the screens and close Control Panel<\/li>\n<li>Go to http:\/\/your_computer_name and you should see the IIS start screen\n<ul>\n<li>Put your computer&#8217;s name as the host\n<ul>\n<li>\n<ul style=\"display: inline !important;\">\n<li style=\"display: inline !important;\">where is this name? right mouse click on Start-&gt;Computer and choose properties<\/li>\n<li style=\"display: inline !important;\"><\/li>\n<li>scroll to the bottom to see your computer name<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>This little step of registering IIS (aspnet_regiis.exe -I) after install has gotten me SOOO many times. ALWAYS do this &#8211; <a href=\"http:\/\/serverfault.com\/questions\/1649\/why-does-iis-refuse-to-serve-asp-net-content\" target=\"_blank\" rel=\"noopener noreferrer\">see this link<\/a>.<\/li>\n<\/ul>\n<h2>Initialize your website \/ space<\/h2>\n<ul>\n<li><span style=\"line-height: 15px;\">make a folder somewhere on your computer like c:\\iis_websites<\/span><\/li>\n<li>Start the Internet Information Services (IIS) Manager by clicking on start and typing IIS &#8211; then click on the shortcut that bubbles to the top<\/li>\n<li>On the left, right mouse click on Sites and choose Add Website<\/li>\n<li>Fill in the details &#8211; you can leave port 80 &#8211; but then you have to change the default site&#8217;s port to something else like 81. The directory to choose is the one you just made. Put your computer&#8217;s name as the host.\n<ul>\n<li>where is this name? right mouse click on Start-&gt;Computer and choose properties<\/li>\n<li>scroll to the bottom to see your computer name<\/li>\n<\/ul>\n<\/li>\n<li>Click OK<\/li>\n<li>Right mouse click on Sites-&gt;Default Web Site and choose Edit Bindings<\/li>\n<li>change the port to 81<\/li>\n<li>Click OK<\/li>\n<li>Put a file in your new website called index.htm using Notepad and put &#8220;Hello&#8221; in it.<\/li>\n<li>Go to http:\/\/your_computer_name and you should see the IIS start screen\n<ul>\n<li>Put your computer&#8217;s name as the host\n<ul>\n<li>where is this name? right mouse click on Start-&gt;Computer and choose properties<\/li>\n<li><em id=\"__mceDel\">scroll to the bottom to see your computer name<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Make you first website<\/h2>\n<ul>\n<li><span style=\"line-height: 15px;\">start up MS Visual Studio<\/span><\/li>\n<li>Choose File-&gt;New Website.<\/li>\n<li>Choose ASP.Net Web Forms Site<\/li>\n<li>Click Build Publish Website\n<ul>\n<li>make a new profile &#8211; I chose the file method cause its is much easier<\/li>\n<li>Click Publish<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>Go to http:\/\/your_computer_name and you should see the new project. I saw errors &#8211; so I will keep typing\n<ul>\n<li>Put your computer&#8217;s name as the host\n<ul>\n<li>where is this name? right mouse click on Start-&gt;Computer and choose properties<\/li>\n<li><em id=\"__mceDel\">scroll to the bottom to see your computer name<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>Errors? I didn&#8217;t have 4.5 installed. My error was\u00a0Unrecognized attribute &#8216;targetFramework&#8217;. Note that attribute names are case-sensitive.\n<ul>\n<li>Go to\u00a0<a href=\"http:\/\/stackoverflow.com\/questions\/4890245\/how-to-add-asp-net-4-0-as-application-pool-on-iis-7-windows-7\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/stackoverflow.com\/questions\/4890245\/how-to-add-asp-net-4-0-as-application-pool-on-iis-7-windows-7<\/a>\u00a0&#8211; do those steps<\/li>\n<li>I had to put the website to use the 4.X framework<\/li>\n<\/ul>\n<\/li>\n<li>Then I got error:\u00a0Handler &#8220;PageHandlerFactory-Integrated&#8221; has a bad module &#8220;ManagedPipelineHandler&#8221; in its module list\n<ul>\n<li>Obnoxious &#8211; but this fixed it\u00a0<a href=\"http:\/\/stackoverflow.com\/questions\/6846544\/how-to-fix-handler-pagehandlerfactory-integrated-has-a-bad-module-managedpip\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/stackoverflow.com\/questions\/6846544\/how-to-fix-handler-pagehandlerfactory-integrated-has-a-bad-module-managedpip<\/a><\/li>\n<\/ul>\n<\/li>\n<li>There &#8211; it works!<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I have gotten a lot of issues of tinkering with IIS solved before &#8211; but never have I written anything down and I have never installed it from scratch. Now, I have to do these steps again so this time I will write them down for myself and others. I will not be using the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,13,7],"tags":[],"class_list":["post-330","post","type-post","status-publish","format-standard","hentry","category-general","category-web-integration","category-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Installing IIS and ASP.NET - installing things so you can get your website up and running - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing IIS and ASP.NET - installing things so you can get your website up and running - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"I have gotten a lot of issues of tinkering with IIS solved before &#8211; but never have I written anything down and I have never installed it from scratch. Now, I have to do these steps again so this time I will write them down for myself and others. I will not be using the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2013-06-04T17:14:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:25:04+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/installing-iis-and-asp-net\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/installing-iis-and-asp-net\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"Installing IIS and ASP.NET &#8211; installing things so you can get your website up and running\",\"datePublished\":\"2013-06-04T17:14:59+00:00\",\"dateModified\":\"2022-02-03T17:25:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/installing-iis-and-asp-net\\\/\"},\"wordCount\":826,\"articleSection\":[\"General\",\"Web Integration\",\"Windows\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/installing-iis-and-asp-net\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/installing-iis-and-asp-net\\\/\",\"name\":\"Installing IIS and ASP.NET - installing things so you can get your website up and running - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2013-06-04T17:14:59+00:00\",\"dateModified\":\"2022-02-03T17:25:04+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/installing-iis-and-asp-net\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/installing-iis-and-asp-net\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/installing-iis-and-asp-net\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing IIS and ASP.NET &#8211; installing things so you can get your website up and running\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing IIS and ASP.NET - installing things so you can get your website up and running - ELB Solutions.com Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/","og_locale":"en_US","og_type":"article","og_title":"Installing IIS and ASP.NET - installing things so you can get your website up and running - ELB Solutions.com Inc.","og_description":"I have gotten a lot of issues of tinkering with IIS solved before &#8211; but never have I written anything down and I have never installed it from scratch. Now, I have to do these steps again so this time I will write them down for myself and others. I will not be using the [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2013-06-04T17:14:59+00:00","article_modified_time":"2022-02-03T17:25:04+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"Installing IIS and ASP.NET &#8211; installing things so you can get your website up and running","datePublished":"2013-06-04T17:14:59+00:00","dateModified":"2022-02-03T17:25:04+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/"},"wordCount":826,"articleSection":["General","Web Integration","Windows"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/","url":"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/","name":"Installing IIS and ASP.NET - installing things so you can get your website up and running - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2013-06-04T17:14:59+00:00","dateModified":"2022-02-03T17:25:04+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/installing-iis-and-asp-net\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"Installing IIS and ASP.NET &#8211; installing things so you can get your website up and running"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=330"}],"version-history":[{"count":10,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/330\/revisions"}],"predecessor-version":[{"id":2853,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/330\/revisions\/2853"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}