Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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Ò³Ãæ´«Öµ¼¼ÇÉ

¹ØÓÚÒ³Ãæ´«ÖµµÄ·½·¨£¬Òý·¢Á˺ܶàÌÖÂÛ¡£¿´À´ÓкܶàÈ˹Ø×¢Õâ¸ö£¬ÎÒ¾ÍÎÒ¸öÈ˹۵ã×öÁËЩ×ܽᣬϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1.  ʹÓÃQueryString±äÁ¿
QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊ ......

°ÑASP.NETÍøҳתÒƵ½SharePointÍøÒ³µÄ·½·¨

¹«Ë¾Ô­ÓÐÒ»¸ö¾ÖÓòÍø£¬¾­¹ý¶àÄêµÄÐÞÐÞ²¹²¹£¬ÒѾ­´´½¨Á˲»ÉÙµÄÄÚÈÝ£¬°üÀ¨Ò»Ð©Êý¾Ý¿â²éѯ±¨±í¡¢¹¤×÷Á÷µÈÍøÕ¾£¬ÕâЩÍøÕ¾ÓÐһЩÊÇÓÃASP.NETÀ´¿ª·¢µÄ£¬²¢ÇÒÓÃÁ˺ܶàÄ꣬»ýÀÛÁ˺ܶàÒµÎñÊý¾Ý£»ÏÖÔÚ¹«Ë¾Ïë°Ñ¾ÖÓòÍøÓÃWSS3.0À´¼ÜÉ裬Õâ¾ÍÃæÁÙµ½Ò»¸öºÜ¼¬ÊÖµÄÎÊÌ⣬¾ÍÊÇÔõÑùÀ´´¦ÀíÕâЩ¾ÉµÄÍøÒ³¡£Èç¹ûÍƵ¹ÖØÀ´£¬ÄÇô¹¤×÷Á¿½«ÊǷdz£ÏÅÈ˵ģ ......

asp.netÎļþºÍÎļþ¼ÐѹËõ

·¨Ò»£ºµ÷ÓÃwinrar
using Microsoft.Win32;
using System.Diagnostics;
protected void Button1_Click(object sender, EventArgs e)
    {
        RAR(@"E:\95413594531\GIS", "tmptest", @"E:\95413594531\");
    }
    /// ......

Asp.net ±ê×¼¿Ø¼þ £¨Ò»£©

Label——height£º¸ß¶È
              width£º¿í¶È
              backcolor£º±³¾°É«
             ......

asp.net´°ÌåµÄ´ò¿ªºÍ¹Ø±Õ

asp.net´°ÌåµÄ´ò¿ªºÍ¹Ø±Õ
//´ò¿ªÐµĴ°Ìå
Response.Redirect("WebMain.aspx");   
//µ¯³öÒ»¸öд°Ìå
Response.Write("<script>window.open(\"WebMain.aspx\")</script>")
//µ¯³öÒ»¸öÖ»ÓÐÈ·¶¨°´Å¥µÄÌáʾ¿ò
Response.Write("<script>alert(\"Óû§Ãû»òÃÜÂë´íÎó\");</script>") ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ