{"id":1028,"date":"2012-08-29T11:39:15","date_gmt":"2012-08-29T09:39:15","guid":{"rendered":"http:\/\/hen.co.za\/blog\/?p=1028"},"modified":"2012-08-29T11:39:15","modified_gmt":"2012-08-29T09:39:15","slug":"enabling-net-4-0-on-web-server","status":"publish","type":"post","link":"https:\/\/hen.co.za\/blog\/2012\/08\/enabling-net-4-0-on-web-server\/","title":{"rendered":"Enabling .Net 4.0 on Web server"},"content":{"rendered":"<p>Not being an active &#8216;web&#8217; developer for some time I stumble across an issue to make a small .Net 4.0 web application to work on a new Windows 2008 R2 server. After copying the application files to the local server (inetpub) and even creating the application in IIS (with no warnings or indications of a problem) I tried to test the application from the local machine.<\/p>\n<p>That&#8217;s when I got the &#8216;HTTP Error 404.2&#8217; error with further details &#8216;The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.&#8217;. As usual I did not read the whole page again and went on to find an answer on Google which did not really help too much &#8211; but it did point me in the right direction. Eventually I went back and read the full error\/warning page that actually list the solution&#8230;<\/p>\n<p>The solution is to enable .Net 4.0 for IIS (this is a 64-bit machine) doing the following:<\/p>\n<ol>\n<li>Open the IIS Manager and navigate to the server level.<\/li>\n<li>In the Features view, double-click ISAPI and CGI Restrictions to verify that the Web service extension is set to Allowed.<\/li>\n<\/ol>\n<p>At least next time I will know better (or find it quicker) \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not being an active &#8216;web&#8217; developer for some time I stumble across an issue to make a small .Net 4.0 web application to work on a new Windows 2008 R2 server. After copying the application files to the local server &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/hen.co.za\/blog\/2012\/08\/enabling-net-4-0-on-web-server\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[231,230,31,232],"class_list":["post-1028","post","type-post","status-publish","format-standard","hentry","category-development","tag-net-4-0","tag-http-error-404-2","tag-iis","tag-isapi-and-cgi-restriction-list-settings"],"_links":{"self":[{"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/posts\/1028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/comments?post=1028"}],"version-history":[{"count":2,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/posts\/1028\/revisions"}],"predecessor-version":[{"id":1030,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/posts\/1028\/revisions\/1030"}],"wp:attachment":[{"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/media?parent=1028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/categories?post=1028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hen.co.za\/blog\/wp-json\/wp\/v2\/tags?post=1028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}