IIS7·¢²¼asp.netÕ¾µã
HTTP Error 500.19 - Internal Server Error
Ò» Ê×ÏȽâËø
ÅäÖôíÎó: ²»ÄÜÔÚ´Ë·¾¶ÖÐʹÓôËÅäÖýڡ£Èç¹ûÔÚ¸¸¼¶±ðÉÏËø¶¨Á˸ýڣ¬±ã»á³öÏÖÕâÖÖÇé¿ö¡£Ëø¶¨ÊÇĬÈÏÉèÖõÄ(overrideModeDefault="Deny")£¬»òÕßÊÇͨ¹ý°üº¬ overrideMode="Deny" »ò¾ÉÓÐµÄ allowOverride="false" µÄλÖñê¼ÇÃ÷È·ÉèÖõġ£
³öÏÖÕâ¸ö´íÎóÊÇÒòΪ IIS 7.5 ²ÉÓÃÁ˸ü°²È«µÄ web.config ¹ÜÀí»úÖÆ£¬Ä¬ÈÏÇé¿öÏ»áËøסÅäÖÃÏî²»ÔÊÐí¸ü¸Ä¡£
ҪȡÏûËø¶¨¿ÉÒÔÔËÐÐÃüÁîÐÐ %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
ÆäÖÐµÄ handlers ÊÇ´íÎóÐÅÏ¢Öкì×ÖÏÔʾµÄ½ÚµãÃû³Æ¡£
Èç¹ûmodulesÒ²±»Ëø¶¨£¬¿ÉÒÔÔËÐÐ%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules
À´×Ôhttp://blog.csdn.net/kingya2008/archive/2009/12/07/4954535.aspx
ÆäÖÐÐèÒªÓùÜÀíԱȨÏÞ
runas /user:administrator:ÄãµÄÃÜÂë cmd
¶þ ¸ü¸ÄÒ»ÏÂIIS°²×°Ê±µÄÑ¡Ïî
¹´Ñ¡Ó¦ÓóÌÐò¿ª·¢ÖеIJ¿·ÖÄÚÈÝ£¨×ÔÑ¡£©ÖØÆô¡£
Ïà¹ØÎĵµ£º
ASP.NETÒ³ÃæÓëIISµ×²ã½»»¥ºÍ¹¤×÷ÔÀíÏê½â
µÚÒ»»Ø£º
ÒýÑÔ
ÎÒ²éÔĹý²»ÉÙAsp.NetµÄÊé¼®£¬·¢ÏÖ´ó¶àÊý×÷Õ߶¼ÊÇÕ¾ÔÚÒ»¸ö±È½Ï¸ßµÄ²ã´ÎÉϽ²½âAsp.Net¡£ËûÃÇÄÍÐÄ¡¢Ï¸ÖµظæËßÄãÈçºÎÒ»²½²½ÍϷſؼþ¡¢ÉèÖÿؼþÊôÐÔ¡¢±àдCodeBehind´úÂ룬ÒÔʵÏÖij¸öÌض¨µÄ¹¦ÄÜ¡£
ÕâÖÖ×ö·¨£¬Êµ¼ÊÉÏÊǻشðÁË“ÈçºÎÈ¥×ö”µÄÎÊÌ⣬ȴà ......
protected void Button2_Click(object sender, EventArgs e)
{
bool ok = true;
string fileName;
fileName = DateTime.Now. ......
È¥Äê×öÏîÄ¿µÄʱºò£¬·¢ÏÖÐèÒªÓÃÒ»¸öÀàËÆÓÚDevexpressµÄGridView¿Ø¼þ£¨http://demos.devexpress.com/ASPxGridViewDemos/MasterDetail/MasterDetail.aspx£©£¬Ò²¾ÍÊÇÏ൱ÓÚDataGrid/GridView¿Ø¼þµÄÒ»ÐмÓÉÏÒ»¸ö¿Õ°×ÐУ¬È»ºóÏÔʾDetailÐÅÏ¢¡£
ÓÚÊǺóÀ´¾ÍÏëµ½ÁËÏÂÃæµÄÒ»¸ö°ì·¨£º
& ......
¾³£¼ûµ½ÓÐÈË˵ÔÚASP.netÖв»ÒªÊ¹Óö¯Ì¬¿Ø¼þ,ÎÒÏëÖ÷ÒªµÄÔÒòÔÚÓÚʹÓö¯Ì¬¿Ø¼þ»á´øÀ´Ò»Ð©ÎÊÌâ,ÔÚ×öÏîÄ¿µÄ¹ý³ÌÖÐ,ÎÒ½«Óɶ¯Ì¬¼ÓÔؿؼþÒý·¢µÄ×ÜÊÇ×÷ÁËÒ»¸öССµÄ×ܽá.
1 ¡¢ÔÚʹÓÃLoadControl¼ÓÔؿؼþºó,Óû§¿Ø¼þÖеÄijЩ¿Ø¼þ²»ÔÙÏìӦʼþ¡£
Õâ¸öÎÊÌâÖ÷ÒªÊÇÓÉÓÚ½«¿Ø¼þ¼ÓÔØ·ÅÔÚif (!Page ......
ÎÒÓÐÒ»¸ölogin.aspxµÄÒ³Ãæ,¼ÙÈçµÇ¼³É¹¦ºó¾Í»á×Ô¶¯Ìøתµ½index.htmlµÄ¿ò¼Ü.
index.htmlÓÐÈý¸öÒ³Ãæ,top.aspx,left.aspx,main.aspx,È»ºóleft.aspxÀïÃæÏÔʾÓû§ÐÅÏ¢
¼ÙÈçÔÚleft.aspxÀïûÓÐSessionµÄ»°,»á·µ»Ølogin.aspxÒ³Ãæ,¶ø²»ÏÔʾindex.htmlÒ³ÃæÀïµÄÈκÎÒ»Ò³.
ÎÒÏÖÔÚµÄÇé¿öÊÇûÓÐSessionµÄʱºò»¹ÊÇÔÚi ......