Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > ASP.NET > ASP.NET Installation > Config IIS7 for ASP.NET and Application (Windows 7)



Clound SSD Virtual Server

Config IIS7 for ASP.NET and Application (Windows 7)

Config IIS7 for ASP.NET and Application (Windows 7) เป็นวิธีการเปิดการใช้งาน IIS 7 บน Windows 7 ให้รองรับการทำงานของ ASP.NET ภายใต้การ Convert to Application แต่ปกติแล้วในการพัฒนาโปรแกรมด้วย Visual Studio 2005,2008 หรือ 2010 แทบจะไม่มีความจำเป็นในการใช้งาน IIS เลย เพราะโปรแกรมเหล่านั้นได้มีการจำลอง Web Server เป็นของตัวเองในขณะที่กำลังทำการ Run หรือ Debug ของโปรแกรม



Windows 7

เปิด Control Panel ได้ที่

Start -> Control Panel


จะแสดงหน้าจอของ Control Panel

IIS7 & Windows7 for ASP.NET

เลือก Uninstall a Program ดังรูป


IIS7 & Windows7 for ASP.NET

คลิกที่ Turn Windows features on or off ซ้ายมือ และคลิกเลือกที่ Option ของ Internet Information Service

IIS7 & Windows7 for ASP.NET

ถ้าทดสอนการทำงานโดยรัน http://localhost แล้วปรากฏดังหน้าจอแสดงว่าสามารถใช้งาน IIS7 กับ Windows 7 ได้แล้วครับ


การ Config IIS7 บน Windows 7


IIS7 & Windows7 for ASP.NET

เลือกที่เมนู Administrative Tools

IIS7 & Windows7 for ASP.NET

Internet Information Services (IIS) Manager

IIS7 & Windows7 for ASP.NET

หน้าจอ ของ Internet Information Services (IIS) Manager

IIS7 & Windows7 for ASP.NET

คลิกที่ Computer Server หรือชื่อของเครื่อง

IIS7 & Windows7 for ASP.NET

ทั้งนี้ถ้าเรามี Application ที่อยู่ภายใต้ root ของ server ซึ่งปกติจะอยู่ที่ C:\Inetpub\wwwroot เราสามารถ Convert to Application เหมือนในรูป

IIS7 & Windows7 for ASP.NET

กำหนดค่าเรียบร้อยแล้วให้คลิกที่ OK


IIS7 & Windows7 for ASP.NET

ทดสอบการรันไฟล์ด้วย asp.net

hello.aspx
<%@ Page Language="VB" %>
<script runat="server">
    	Sub Page_Load(sender As Object, e As EventArgs)	
		Me.lblText.Text = "Hello World"
	End Sub
</script>
<html>
<head>
    <title>ThaiCreate.Com Tutorial</title>
</head>
<body>
	<form id="form1" runat="server">
		<asp:Label id="lblText" runat="server"></asp:Label>
	</form>
</body>
</html>


IIS7 & Windows7 for ASP.NET

ซึ่งจะปรากฏข้อความ Error ดังรูป

IIS7 & Windows7 for ASP.NET

ให้ไปที่ Turn Windows features on or off

IIS7 & Windows7 for ASP.NET

เปิดฟีเจอร์ของ ASP.NET โดยเลือก
Internet Information Services -> World Wide Web Services -> Application Development Features -> ASP.NET


IIS7 & Windows7 for ASP.NET

ทดสอบการรันโปรแกรมอีกครั้ง


IIS7 for ASP Classic (Windows 7 , Windows Vista)


ติดตั้ง PHP บน IIS และการ Setup ให้ปรับแต่ง PHP สามารถทำงาน Run บน IIS Web Serverได้


การทำ mod_rewrite บน IIS การแปลง Convert .htaccess เป็น Web.Config (IIS and PHP)







   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2010-07-03 08:15:39 / 2013-04-06 08:09:30
  Download : No files
 Sponsored Links / Related

 
ASP.NET IIS & Web Server
Rating :

 
ASP.NET IIS Authentication Method
Rating :

 
ASP.NET Install/Download .NET Framework 1.1
Rating :

 
ASP.NET Install/Download .NET Framework 2.0
Rating :

 
ASP.NET Install/Download .NET Framework 3.5
Rating :

 
ASP.NET Install/Download .NET Framework 4.0, Silverlight
Rating :

 
Download .NET Framework 4.5 Microsoft Soft .NET Package Install
Rating :

 
ASP.NET IIS Switch to .NET Framework 1.1 & .NET Framework 2.0
Rating :

 
Install IIS/IIS7 + Windows 7 + Vista (Internet Information Service, Windows 7,Vista)
Rating :

 
Config IIS7 and SMTP E-mail (Windows 7)
Rating :

 
Config Data Sources (ODBC) On Windows 7
Rating :

 
Install IIS 7 on Windows Server 2008
Rating :

 
Config SMTP - IIS7 Windows Server 2008
Rating :

 
IIS 8 and Windows 8 และ Windows 10 วิธีติดตั้ง IIS8 กับ Windows 8 (Internet Information Services 8)
Rating :

 
IIS 8 and Windows Server 2012 วิธีติดตั้ง IIS8 กับ Windows Server 2012
Rating :

 
Setup ASP.NET - IIS 8 (Windows 8 and Windows Server 2012)
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 04
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่