asp.net¡°·þÎñÆ÷Ó¦ÓóÌÐò²»¿ÉÓá± ½â¾ö·½·¨
ÒýÆðÕâ¸öµÄÔÒò´ó¸ÅÊÇÏÖ°²×°ÁË.Net Frameworkºó×°µÄIISµ¼ÖÂ.NetûÓÐÔÚIISÀï×¢²á¡£
ÔÚÍøÉÏÕÒÁ˺ܾö¼ÊÇ˵´Ó.netÃüÁîÐй¤¾ßÀïÔËÐÐaspnet_regIIS /i¾Í¿ÉÒÔÁË(»òÕßÔÚÀàËÆÏÂÃæµÄĿ¼£ºC:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i)£¬µ«ÊÇ×Ô¼ºÊÔÁ˺ܶà´Î¶¼²»ÐУ¬ºóÀ´·¢ÏÖ»¹ÊÇÒªÏÈжÔØÔÙ°²×°£¬ÖØд´½¨ÎªÓ¦ÓóÌÐò²ÅÐУ¬¾ßÌåÈçÏ£º
´Ó.netÃüÁîÐй¤¾ßÀïÔËÐÐ aspnet_regIIS /u жÔØ£¬ÔÙaspnet_regIIS /i°²×°
È»ºóÖØÆôIIS £¬É¾³ý“ĬÈÏÓ¦ÓóÌÐò”£¬È»ºó½«Õ¾µãÖØд´½¨ÎªÓ¦ÓóÌÐò¡£
ÁíÍ⣬»¹ÓпÉÄÜÊÇASPNETÕË»§Ã»ÓÐIISËùÖ¸¶¨·þÎñÆ÷Ŀ¼µÄȨÏÞ¡£ÔÚ×ÊÔ´¹ÜÀíÆ÷ÖÐÕÒµ½“¹¤¾ß-Îļþ¼ÐÑ¡Ïî-²é¿´-ʹÓüòµ¥Îļþ¼Ð¹²Ïí£¨ÍƼö£©”£¬°ÑÇ°ÃæµÄ¹´È¥µô£¬È»ºóÔÚ·þÎñÆ÷Ö¸¶¨Ä¿Â¼ÉϵãÓÒ¼ü£¬ÊôÐÔ-°²È«-Ìí¼Ó-¸ß¼¶-Á¢¼´²éÕÒ£¬°ÑASPNETÕâ¸öÕË»§Ìí¼Ó½øÈ¥£¬¸øËüÖ¸¶¨ÍêÈ«·ÃÎʵÄȨÏÞ¡£ÕâÑù×öÁËÒÔºó¾Í»á·¢ÏÖûÓÐÁËÄǸö´íÎ󣬲»¹ýÈç¹û·ÃÎÊÊý¾Ý¿â¿ÉÄÜÓлáÌáʾASPNETÕâ¸öÕË»§Ã»ÓÐȨÏÞ·ÃÎÊÊý¾Ý¿â¡£Õâ¸öÌáʾ¾ÍÇå³þ¶àÁË£¬°Ñ¸ÃÕË»§ÔÚÊý¾Ý¿âÖмÓÈëÏàÓ¦µÄȨÏ޾ͿÉÒÔÁË¡£
½â¾ö·½·¨Ò» ÖØÐÂ×¢²á.Net 2.0:
C:WINDOWSMicrosoft.NetFrameworkv2.0.50727as.Net_regiis.exe –i
½â¾ö·½·¨¶þ н¨Ó¦ÓóÌÐò³Ø:
н¨Ó¦ÓóÌÐò³ØµÄ²½Öè
1. µ¥»÷“¿ªÊ¼”£¬Ö¸Ïò“³ÌÐò”£¬È»ºóµ¥»÷“¿ØÖÆÃæ°å”¡£
2. Ë«»÷“¹ÜÀí¹¤¾ß”£¬È»ºóË«»÷“Inte.Net ÐÅÏ¢·þÎñ (IIS)”¡£
3. ÓÒ¼üµ¥»÷“Ó¦ÓóÌÐò³Ø”£¬Ö¸Ïò“н¨”£¬È»ºóµ¥»÷“Ó¦ÓóÌÐò³Ø”¡£
4. ÔÚ“Ó¦ÓóÌÐò³Ø ID”Îı¾¿òÖмüÈë AppPool1¡£
5. µ¥»÷“È·¶¨”¡£
½«Ó¦ÓóÌÐò·ÖÅäµ½Ó¦ÓóÌÐò³Ø
1. µ¥»÷“¿ªÊ¼”£¬Ö¸Ïò“³ÌÐò”£¬È»ºóµ¥»÷“¿ØÖÆÃæ°å”¡£
2. Ë«»÷“¹ÜÀí¹¤¾ß”£¬È»ºóË«»÷“Inte.Net ÐÅÏ¢·þÎñ (IIS)”¡£
3. Ë«»÷“Web Õ¾µã”¡£
4. Ë«»÷“ĬÈÏ Web Õ¾µã”¡£
5. ÓÒ¼üµ¥»÷“DebugApp1”£¬È»ºóµ¥»÷“ÊôÐÔ”¡£
6. ÔÚ“Ö÷Ŀ¼”±êÇ©ÖеēӦÓóÌÐò³Ø”Áбí¿òÖÐÑ¡Ôñ“AppPool1”£¬È»ºóµ¥»÷“È·¶¨”¡£
½â¾ö·½·¨Èý,ÐÞ¸ÄÍøվĿ¼ËùÔÚÎļþ¼ÐµÄ·ÃÎÊȨÏÞ:
ÕÒµ½µ±Ç°ÍøվĿ¼£>ÓÒ¼ü£>ÊôÐÔ£>°²È«£>Ìí¼Ó£>¸ß¼¶£>Á¢¼´²éÕÒ£
Ïà¹ØÎĵµ£º
using System;
using System.Text;
using System.Web;
using System.IO;
namespace Chsword {
/// <summary>
/// ³É»Ã»¥Áª»º´æÀà
/// ×Þ½¡ 2007.5
///  ......
ÔÚGlobal.asax
ÐèÒª»Ø¹ËµÄ֪ʶµãÊÇ Ïß³Ì ºÍ Îı¾ÎļþµÄ¶Áд¡£
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Threading" %>
<script runat="server">
string logpath;
Thread thread;
......
ÏÈ¿´¿´ASP.NETÒ³ÃæˢеÄʵÏÖ·½·¨£º
µÚÒ»£º
C# code
private void Button1_Click( object sender, System.EventArgs e )
{
Response.Redirect( Request.Url.ToString( ) );
}
µÚ¶þ£º
C# code
private void Button2_Click( object sender, System.EventArgs e )
{
Response.Write( " < script lang ......
Windows Éí·ÝÑéÖ¤Ìṩ³ÌÐò ÌṩÓйØÈçºÎ½« Windows Éí·ÝÑéÖ¤Óë Microsoft Internet ÐÅÏ¢·þÎñ (IIS) Éí·ÝÑéÖ¤½áºÏʹÓÃÀ´È·±£ ASP.NET Ó¦ÓóÌÐò°²È«µÄÐÅÏ¢¡£ Forms Éí·ÝÑéÖ¤Ìṩ³ÌÐò ÌṩÓйØÈçºÎʹÓÃÄú×Ô¼ºµÄ´úÂë´´½¨Ó¦ÓóÌÐòÌض¨µÄµÇ¼´°Ìå²¢Ö´ÐÐÉí·ÝÑéÖ¤µÄÐÅÏ¢¡£Ê¹Óà Forms Éí·ÝÑéÖ¤µÄÒ»ÖÖ¼ò±ã·½·¨ÊÇʹÓà ASP.NET ³ÉÔ±×ʸñ ......