{"id":1527,"date":"2018-10-25T10:17:41","date_gmt":"2018-10-25T10:17:41","guid":{"rendered":"http:\/\/help.sealionshipping.co.uk\/?p=1527"},"modified":"2018-10-25T10:17:41","modified_gmt":"2018-10-25T10:17:41","slug":"iis-unable-to-start-website-port-in-use-how-to-determine-app-using-port","status":"publish","type":"post","link":"http:\/\/gardiner.tech\/bluebook\/blog\/2018\/10\/25\/iis-unable-to-start-website-port-in-use-how-to-determine-app-using-port\/","title":{"rendered":"IIS &#8211; unable to start website. Port in use; how to determine app using port"},"content":{"rendered":"<p>\t\t\t\tChecking IIS and see that the Default Site (Appserver) will not start. Try to start produces an error.<\/p>\n<p>Error is shown in IIS as <strong>The process cannot access the file because it is being used by another process (Exception from HSRESULT: 0x80070020)<\/strong><\/p>\n<p>Also in Windows System logs as Error 1004 &#8211; IIS-W3SVC service did not register URL with prefix &#8220;http:\/\/*.*:80&#8221;<\/p>\n<p>To check which application is using the port (in this case Port 80)<\/p>\n<p>In the Command Prompt type<\/p>\n<pre class=\"default prettyprint prettyprinted\"><code><span class=\"pln\">netstat <\/span><span class=\"pun\">-<\/span><span class=\"pln\">aon <\/span><span class=\"pun\">|<\/span><span class=\"pln\"> find <\/span><span class=\"str\">\":80\"<\/span><\/code><\/pre>\n<p>The output would be similar to<\/p>\n<pre class=\"default prettyprint prettyprinted\"><code><span class=\"pln\">TCP    <\/span><span class=\"lit\">0.0<\/span><span class=\"pun\">.<\/span><span class=\"lit\">0.0<\/span><span class=\"pun\">:<\/span><span class=\"lit\">80<\/span>            <span class=\"lit\">0.0<\/span><span class=\"pun\">.<\/span><span class=\"lit\">0.0<\/span><span class=\"pun\">:<\/span><span class=\"lit\">0<\/span><span class=\"pln\">              LISTENING       <\/span><span class=\"lit\">3604<\/span> <\/code><\/pre>\n<p>Now open Task Manager and select right click on the columns of the processes running and select PID (Process ID). Then run through the processes and see which one is using the ID 3604 (in this case it was Apache).<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/24021071\/unable-to-start-web-site-iis-hresult-0x80070020\">https:\/\/stackoverflow.com\/questions\/24021071\/unable-to-start-web-site-iis-hresult-0x80070020<\/a>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Checking IIS and see that the Default Site (Appserver) will not start. Try to start produces an error. Error is shown in IIS as The process cannot access the file because it is being used by another process (Exception from HSRESULT: 0x80070020) Also in Windows System logs as Error 1004 &#8211; IIS-W3SVC service did not register URL with prefix &#8220;http:\/\/*.*:80&#8221; To check which application is using the port (in this case Port 80) In the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[85,33],"tags":[97,159,251,269],"_links":{"self":[{"href":"http:\/\/gardiner.tech\/bluebook\/wp-json\/wp\/v2\/posts\/1527"}],"collection":[{"href":"http:\/\/gardiner.tech\/bluebook\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gardiner.tech\/bluebook\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gardiner.tech\/bluebook\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gardiner.tech\/bluebook\/wp-json\/wp\/v2\/comments?post=1527"}],"version-history":[{"count":0,"href":"http:\/\/gardiner.tech\/bluebook\/wp-json\/wp\/v2\/posts\/1527\/revisions"}],"wp:attachment":[{"href":"http:\/\/gardiner.tech\/bluebook\/wp-json\/wp\/v2\/media?parent=1527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gardiner.tech\/bluebook\/wp-json\/wp\/v2\/categories?post=1527"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gardiner.tech\/bluebook\/wp-json\/wp\/v2\/tags?post=1527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}