ASP.NET WebÓ¦ÓóÌÐòдEventLog³ö´íµÄ½â¾ö·½°¸
×î½üÔÚ¶ÔÓ¦Ò»¸öASP.NET WebÓ¦ÓóÌÐòBugµÄʱºò£¬ÎªÁ˵÷²éÔËÐл·¾³ÖоßÌåµÄBugÓÚÊDzéÔÄÁËһϴíÎóÈÕÖ¾¡£
Õâ¸ö³ÌÐòµÄ´íÎóÈÕÖ¾ÊÇÖ±½Ó±£´æÔÚÒ»¸öÎı¾ÎļþÖеģ¬½á¹û·¢ÏÖ¾ÍËãÊdzö´íÒ²²»»áÁôÏÂÈκκۼ£¡£
Ò»µ÷ÊÔ£¬¾¹È»ÊÇ°Ñ´íÎóÈÕÖ¾µÄ±£´æ·¾¶¸øд´íÁË¡£My God£¡
°Ñ·¾¶¸ÄÁË£¬×ªÄîÒ»ÏëÏ´γö´íÔÙ²»±£´æÔõô°ì£¿ËÖªµÀÕæÕýµÄ»·¾³Àï»á³öʲô״¿öÄØ¡£
ÓÚÊǺõ£¬³ö´íÁ˾ÍÖ±½Ó°Ñ´íÎóÈÕ־дµ½·þÎñÆ÷µÄEventLogÉÏ°É¡£
ÈýÏÂÎå³ý¶þ¸ÄÍêÁ˾͵ÈןÃÏûÏ¢ÄØ¡£
¿ÉÊÇ×óµÈÓҵȻ¹ÊÇûÓÐÈÕÖ¾ÁôÏÂÀ´£¬Bug»¹ÊÇÕվɡ£
Ò»²é£¬ºÙ£¬²»ÈÃдEventLog¡£
ÍøÉÏÒ»²é£¬¹ûÈ»ÒѾÓÐÇ°³µÖ®¼ø¡£Î¢Èí¹Ù·½ÉÏÒ²Óнâ¾ö·½·¨¡£
°´ÕÕµÚÒ»¸ö·½·¨×öÁËһϣ¬¸ÄÁË·þÎñÆ÷µÄ×¢²á±í¾ÍºÃÓÃÁË¡£
µÚ¶þ¸ö¾Íû³¢ÊÔÁË¡£
½â¾öÎÊÌâµÄÎÄÕ¾ÍÕªÏÂÀ´×ö¸ö¾Ñé±£Áô¡£
µØÖ·£ºhttp://support.microsoft.com/?scid=kb;zh-cn;329291&spid=810&sid=58#appliesto
ÔÎÄ£º
Ö¢×´
ʹÓà ASP.NET ÔÚʼþÈÕÖ¾Öд´½¨Ò»¸öеÄʼþԴʱ£¬Äú¿ÉÄÜ»áÊÕµ½ÏÂÃæµÄ´íÎóÐÅÏ¢£ºSystem.Security.SecurityException:Requested registry access is not allowed.
ÔÒò
ĬÈÏÇé¿öÏ£¬ASP.NET ¹¤×÷½ø³ÌµÄÓû§ÁîÅÆÊÇ ASPNET£¨»òÕߣ¬¶ÔÓÚ Internet ÐÅÏ¢·þÎñ [IIS] 6.0 ÉÏÔËÐеÄÓ¦ÓóÌÐòÊÇ NetworkService£©¡£ÓÉÓÚÄúµÄÕÊ»§²»¾ßÓд´½¨Ê¼þÔ´µÄÕýÈ·Óû§È¨ÏÞ£¬»á³öÏÖ“Ö¢×´”²¿·ÖÖеÄÎÊÌâ¡£
½â¾ö·½°¸
¾¯¸æ
£º×¢²á±í±à¼Æ÷ʹÓò»µ±¿Éµ¼ÖÂÑÏÖØÎÊÌ⣬´Ó¶ø¿ÉÄÜÐèÒªÖØа²×°²Ù×÷ϵͳ¡£Microsoft ²»Äܱ£Ö¤Äú¿ÉÒÔ½â¾öÒò×¢²á±í±à¼Æ÷ʹÓò»µ±¶øµ¼ÖµÄÎÊÌ⡣ʹÓÃ×¢²á±í±à¼Æ÷ÐèÒªÄú×Ôµ£·çÏÕ¡£
Òª½â¾ö´ËÎÊÌ⣬ÔÚÄúÔËÐÐ ASP.NET Web Ó¦ÓóÌÐò֮ǰ£¬ÓµÓйÜÀíȨÏÞµÄÓû§±ØÐë´´½¨Ê¼þÔ´¡£Òª´´½¨Ê¼þÔ´£¬ÇëʹÓÃÏÂÁз½·¨Ö®Ò»¡£
µÚÒ»ÖÖ·½·¨
ÔÚ×¢²á±í±à¼Æ÷ÖУ¬ÔÚÓ¦ÓóÌÐò
ʼþÈÕ־ϴ´½¨Ò»¸öʼþÔ´¡£Îª´Ë£¬ÇëÖ´ÐÐÏÂÁв½Ö裺
µ¥»÷“¿ªÊ¼”£¬È»ºóµ¥»÷“ÔËÐД¡£
ÔÚ“´ò¿ª”Îı¾¿òÖУ¬¼üÈë regedit
¡£
ÕÒµ½ÒÔÏÂ×¢²á±í×ÓÏ
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application
ÓÒ¼üµ¥»÷“Application”×ÓÏָÏò“н¨”£¬È»ºóµ¥»÷“Ï£
¼üÈë TEST
×÷Ϊ¸ÃÏîµÄÃû³Æ¡£
¹Ø±Õ×¢²á±í±à¼Æ÷¡£
µÚ¶þÖÖ·½·¨
System.Diagnostics Ãû³Æ¿Õ¼äÖÐµÄ EventLogInstaller
ÀàÔÊÐíÄú°²×°ºÍÅäÖÃÒ»¸öʼþÈÕÖ¾£¬ÄúµÄÓ¦ÓóÌÐòÔÚÔËÐÐʱ¿ÉÒÔ¶ÁÈ¡»ò
Ïà¹ØÎĵµ£º
¹«Ë¾ÔÓÐÒ»¸ö¾ÖÓòÍø£¬¾¹ý¶àÄêµÄÐÞÐÞ²¹²¹£¬ÒѾ´´½¨Á˲»ÉÙµÄÄÚÈÝ£¬°üÀ¨Ò»Ð©Êý¾Ý¿â²éѯ±¨±í¡¢¹¤×÷Á÷µÈÍøÕ¾£¬ÕâЩÍøÕ¾ÓÐһЩÊÇÓÃASP.NETÀ´¿ª·¢µÄ£¬²¢ÇÒÓÃÁ˺ܶàÄ꣬»ýÀÛÁ˺ܶàÒµÎñÊý¾Ý£»ÏÖÔÚ¹«Ë¾Ïë°Ñ¾ÖÓòÍøÓÃWSS3.0À´¼ÜÉ裬Õâ¾ÍÃæÁÙµ½Ò»¸öºÜ¼¬ÊÖµÄÎÊÌ⣬¾ÍÊÇÔõÑùÀ´´¦ÀíÕâЩ¾ÉµÄÍøÒ³¡£Èç¹ûÍƵ¹ÖØÀ´£¬ÄÇô¹¤×÷Á¿½«ÊǷdz£ÏÅÈ˵ģ ......
WebRequest mywebrq;
WebResponse mywebresp;
StreamReader sr;
Streamwriter sw;
Private void Page_Load(object sender,EventArgs e) { mywebreq=WebRequest.Create( http://localhost/Test.aspx ); mywebresp=mywebreq.GetResponse();
sr=new streamReader(mywebresp.GetResponsestream());
strHtml=sr.ReadT ......
ASP.NET MVC ¶àÓïÑÔ½â¾ö·½°¸()
¾ÍÒ»¸öÍøÕ¾µÄ¶àÓïÑÔÌØÐÔÀ´Ëµ£¬ÎÒÈÏΪ·ÖΪÁ½¸ö·½Ã棺
1¡¢HTML½çÃæÉÏÏÔʾµÄÎÄ×ÖÐèÒª¶àÓïÑÔ
2¡¢HTML½çÃæÉÏJSÊä³öµÄÎÄ×ÖÐèÒª¶àÓïÑÔ
ÔÀ´ÔÚHTML²¿·ÖÖ±½ÓдµÄÎÄ×Ö¶¼²»ÄÜÖ±½ÓдҪÊä³öµÄÎÄ×Ö£¬¶øÊÇÒª²ÉÓñê¼ÇµÄ·½·¨À´Ìæ»»¡£JSÒ² ......
³ÌÐò¿ª·¢ÖУ¬Êý¾ÝÁ÷°´ÕÕÒ»¶¨µÄ¹æÂɽøÐд«Ê䣬Èç¹ûÓû§ºÍ³ÌÐòÖ®¼äµÄ½»»¥ÍêÈ«°´ÕÕÔ¤¶¨µÄЧ¹ûÔËÐУ¬³ÌÐò²»»á³öÏÖÎÊÌâ¡£¿ÉÒÔ¼ÙÉèËù´¦ÀíµÄÊý¾Ý¶¼·ûºÏÒªÇó£¬Í¨¹ý½çÃæ×÷¸ñʽÅж¨£¬ËùÓÐ×ÊÔ´¶¼ÕýÈ·£¬µ«ÊÇΪÁËϵͳµÄ°²È«£¬ÐèÒª´¦Àí´æÔÚµÄÒþ»¼£¬²»ÄܶÔÊý¾Ý°²È«±§ÓÐÀíÏ뻯µÄÏë·¨¡£
ÔÚASP.NET ......
ÕâÁ½ÌìÒòΪҪ×öÒ»¸ö¿ÉÒÔÊÕ¼¯Óû§Ìá½»ÐÅÏ¢£¬È»ºó·¢ËÍÓʼþµ½Ö¸¶¨ÓÊÏäµÄÍøÒ³¡£ÔÚ asp.net 2.0 ÀïÃæ·¢ËÍÓʼþ¿ÉÒÔʹÓà System.Net.Mail ÏÂÃæµÄÀà¡£http://www.systemnetmail.com/faq/2.1.aspx Õâ¸öµØÖ·ÓÐ System.Net.Mail µÄ×÷ÕßдµÄ·Â·ðÊÇ MSDN ÀàËÆµÄ Faq£¬¿´´úÂëµÄʱºò¿ÉÒԲο¼ÒÔÏ¡£Ê²Ã´¶¼²»ËµÁË£¬ÏÂÃæÌù³öÀ´´úÂë°É£¬±Ï¾¹´ú ......