{"id":267,"date":"2011-07-29T11:58:09","date_gmt":"2011-07-29T09:58:09","guid":{"rendered":"http:\/\/www.extradrm.com\/?p=267"},"modified":"2013-05-18T19:33:11","modified_gmt":"2013-05-18T17:33:11","slug":"configuration-asp-net-server-iis","status":"publish","type":"post","link":"https:\/\/www.extradrm.com\/?p=267","title":{"rendered":"Configuration ASP.NET server (IIS)"},"content":{"rendered":"<p>Before starting, be sure you have .NET Framework installed.<\/p>\n<p>You can check if any Framework is installed : by exploring C:[WINDOWS]Microsoft.NETFramework<\/p>\n<p>To check version <a title=\"How To Verify .Net Framework Version\" href=\"http:\/\/www.extradrm.com\/?p=271\">you can read this<\/a>.<\/p>\n<p>If not installed, you can install it using Windows Update or download the package and install manually.<\/p>\n<p>ASP runs inside IIS (Internet Information Services). Therefore first you should install IIS (under Windows 2000, Windows XP or Windows 2003), of course if it isn&#8217;t already installed.<br \/>\nUsually, you can install it from Control Panel \/ Add or Remove Programs \/ Add\/Remove Windows Components.<\/p>\n<p>Go to Start Menu \/ All Programs \/ Administrative Tools \/ Internet Information Services.<br \/>\nChoose your computer name (local computer) \/ Web Sites \/ Default Web Site.<\/p>\n<p>Right click &#8216;Default Web Site&#8217; and select &#8216;Properties&#8217;. Choose the &#8216;Home Directory&#8217; tab and type in the &#8216;Local Path&#8217; the path to where you want your files to be stored. For example &#8216;D:testaspiis&#8217;. This is the root of your webserver, this folder will open when you type http:\/\/localhost in your web broswer.<br \/>\nBelow, check the &#8216;Script source access&#8217;, &#8216;Read&#8217;, &#8216;Write&#8217; and &#8216;Directory browsing&#8217; values. Click OK and now let&#8217;s start the server.<\/p>\n<p>Click on the &#8216;Start item&#8217; button to start the service. Be sure you don&#8217;t have any other server running on localhost on port 80, Apache for example.<\/p>\n<p>After the server is up and running you can open http:\/\/localhost in your web browser. It should show you an empty list if you don&#8217;t have any files in the folder specified on the &#8216;Local Path&#8217;.<\/p>\n<p>You should now be able to open any .asp file and parse it correclty with your browser. Still, you don&#8217;t have installed ASP.NET, that means you can&#8217;t run any .ASPX files.<br \/>\n<strong>To install ASP.NET follow the steps:<\/strong><\/p>\n<p>Go to the place where you installed the .NET Framework :<br \/>\n&#8216;C:WINDOWSMicrosoft.NETFramework&#8217;<br \/>\nthere should be a folder similar to &#8216;v1.1.4322&#8217; (your version of .NET). Note it and let&#8217;s continue:<\/p>\n<p>Open the MSDOS Command Prompt (Start Menu \/ Start \/ Run and type &#8216;cmd&#8217;).<br \/>\nAt the command prompt type (replace &#8216;vxxxxxx&#8217; with your version):<\/p>\n<pre>%windir%Microsoft.NETFrameworkvxxxxxxaspnet_regiis.exe -i<\/pre>\n<p>&nbsp;<\/p>\n<p>After it finishes, you have one more step :<\/p>\n<p>Open &#8216;Run&#8217; from &#8216;Start Menu&#8217; and type:<\/p>\n<pre>regsvr32 %windir%Microsoft.NETFrameworkvxxxxxxaspnet_isapi.dll<\/pre>\n<p>Again, by replacing &#8216;vxxxxxx&#8217; with your version.<br \/>\nPress OK, wait, and you should receive a confirmation message.<\/p>\n<p>&nbsp;<\/p>\n<p>To test it, make a test.aspx file in the folder that you typed in the &#8216;Local Path&#8217; (&#8216;D:testaspiis&#8217; for example) with the following code:<\/p>\n<pre>&lt;!DOCTYPE\u00a0HTML\u00a0PUBLIC\u00a0\"-\/\/W3C\/\/DTD\u00a0HTML\u00a04.01\u00a0Transitional\/\/EN\"\u00a0\"http:\/\/www.w3.org\/TR\/html4\/loose.dtd\"&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Hello Dear Friends&lt;\/title&gt;\r\n&lt;meta\u00a0http-equiv=\"Content-Type\"\u00a0content=\"text\/html;\u00a0charset=iso-8859-1\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;%\r\nresponse.write(\"<code>Hello Dear Friends<\/code>\")\r\n%&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt; <\/pre>\n<p>Open the page with your web broswer using &#8216;http:\/\/localhost\/test.aspx&#8217;<\/p>\n<p>and check if web browser displays : <\/p>\n<pre>Hello Dear Friends<\/pre>\n<p>So it works<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before starting, be sure you have .NET Framework installed. You can check if any Framework is installed : by exploring C:[WINDOWS]Microsoft.NETFramework To check version you can read this. If not installed, you can install&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":2841,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[157,158],"youtube_video":null,"_links":{"self":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/267"}],"collection":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=267"}],"version-history":[{"count":0,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/267\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/media\/2841"}],"wp:attachment":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}