Tuesday, April 1, 2014

Install IIS and run ASP .net in Windows 7

ASP .net in Windows
http://www.w3schools.com/asp/asp_install.asp

Stop Apache if any
Control panel ->Programs ->Programs and Features ->Turn Windows features on or off
Check  Internet Information Services, check ASP ASP.NET under development features as follows and click OK, it will take a few minutes.

Run localhost to check IIS running
http://localhost/

Under
C:\inetpub\wwwroot
create test1.asp
<!DOCTYPE html>
<html>
<body>
<%
response.write("Hello World!")
%>
</body>
</html> 

http://localhost/test1.asp
Output
Hello World! 
Default file for site reference:
http://www.iis.net/configreference/system.webserver/defaultdocument 
To configure a site ( see the following iamge), go to IIS manager, under site, click add site ( for example wwwroot),  Physics path: C:\inetpub\wwwroot, Application pool using  ASP .NET V4.0,(I  found ASP .NET classic has issue to display default page), click Default Document to see a list of default document. I create a default file called Default.asp. ( I copy test1.asp to Default.asp)
http://localhost/
Output
Hello World! 
Video: Install IIS and run ASP .net in Windows 7

No comments:

Post a Comment