IISÎÞ·¨·ÃÎÊasp£¡Ìáʾ£ºServer Application Error
IISÎÞ·¨·ÃÎÊasp£¡
½â¾ö°ì·¨£¡½ñÌì´ò¿ªµçÄÔ·¢ÏÖIISÎÞ·¨·ÃÎÊaspÒ³Ãæ¡£
Ìáʾ£ºServer Application Error È»ºó¾ÍÓÐÁËÏÂÃæµÄÒ»¶Î»°¡£
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.
ÔÚÍøÉϲéÁ˲é½â¾ö·½°¸ÈçÏÂ:
Ê×ÏÈÊÇasp³ÌÐò£¬ËÀÑ»·£¬ÒªÇ󣺿´Ò»ÏÂÄãµÄÒ³Ã涨ÒåͬÃûrsÊDz»ÊÇÌ«¶àÁË,±ÈÈçSet rs=Server.CreateObject("ADODB.Recordset")
Èç¹ûÌ«¶à,ÓпÉÄÜ»á·þÎñÆ÷±»Ëùס,½â¾ö°ì·¨,
1¡¢È¡²»Ò»ÑùµÄÃû×Ö£¬ÈçSet rs1=Server.CreateObject("ADODB.Recordset")
Set rs2=Server.CreateObject("ADODB.Recordset")
2¡¢°ÑSet rs=Server.CreateObject("ADODB.Recordset")·ÅÔÚÒ³Ãæ×²¿£¬Ã¿¸ö¶¼¿ÉÒÔµ÷Ó㬰ÑÆäËû¶àÓàµÄɾµô
»òÕߣºÔÚÒ³ÃæÖÐÏÔʽµØÊÍ·Å×ÊÔ´£º
rs.close
set rs=nothing
conn.close
set conn=nothing
1¡£ÓÒ¼üÎҵĵçÄÔ--¹ÜÀí--±¾µØÓû§ºÍ×飬¸øIUSR_»úÆ÷ÃûºÍIWAM_»úÆ÷ÃûÁ½¸öÓû§ÉèÖÃÃÜÂ룬ҪһÑù¡£
2¡£¿ªÊ¼--ÔËÐÐ--´òcmd£¬
È»ºócd D:InetpubAdminscripts£¨ÎÒµÄϵͳÔÚDÅÌ£©£¬
È»ºócscript.exe adsutil.vbs set w3svc/wamuserpass ÄãµÄÃÜÂ룬
È»ºócscript.exe adsutil.vbs set w3svc/anonymoususerpass ÄãµÄÃÜÂë
¿´Ò»Ï£¬ÐÐÁËûÓУ¿Èç¹û»¹²»ÐУ¬ÄÇô
cscript.exe synciwam.vbs -v£¬
È»ºóiisreset¡£
¾Ý˵¾Í¿ÉÒÔÁË,µ«Êǵ½×îºóÒ»²¿Ìáʾ8004e00fµÄ´íÎó,´Ë´íÎóÊÇMSDTC·þÎñ²»Õý³£Ôì³ÉµÄ,½â¾ö·½·¨:
Ê×ÏȽøÈë×é¼þ·þÎñ£¬²é¿´×é¼þ·þÎñ/¼ÆËã»ú/ÎҵĵçÄÔ/COM+Ó¦ÓóÌÐò£¬½á¹û±¨´í“COM+ ÎÞ·¨Óë Microsoft ·Ö²¼Ê½ÊÂÎñе÷³ÌÐò½»Ì¸”£¬ÎÞ·¨²é¿´ÀïÃæµÄ¶ÔÏó¡£
2¡¢½øÈëʼþ²é¿´Æ÷£¬·¢ÏÖmsdtc·þÎñûÓÐÕý³£Æô¶¯¡£
3¡¢É¾³ý×¢²á±íÖеļü£º
? HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesMSDTC
? HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSDTC
? HKEY_CLASSES_ROOTCID
4¡¢Í£Ö¹MSDTC·þÎñ£ºnet stop msdtc
5¡¢Ð¶ÔØMSDTC·þÎñ£ºmsdtc -uninstall
6¡¢ÖØа²×°MSDTC·þÎñ£ºmsdtc -install
7¡¢È·ÈÏÔÚʼþ²é¿´Æ÷ÖÐmsdtc·þÎñÒѾÕý³£Æô¶¯[Õâ²½ºÜ¹Ø¼ü£¬Èç¹ûûÓУ¬ÖØÐÂÆô¶¯ÏµçÄÔ¿´¿´]
8¡¢ÖØÐÂÉèÖÃIISµÄIWAMÕ˺ÅÃÜÂë¡£[ÔÚ¼ÆËã»ú¹ÜÀí
Ïà¹ØÎĵµ£º
1¡¢ÔÚÍøվĿ¼ÏÂн¨Ò»¸öÎı¾£ºtxtcounter.txt ÔÚÎı¾Ìîд1»òÆäËûʶ×Ö
2¡¢Ð½¨Ò»aspÎļþ£ºcount.asp£¬¼ÓÈëÒÔÏ´úÂ룺
<%
CountFile=Server.MapPath("txtcounter.txt")
Set FileObject=Server.CreateObject("Scripting.FileSystemObject")
Set Out=FileObject.OpenTextFile(CountF ......
ASPÀà
£½£½£½£½£½£½£½£½£½
ʹÓÃVBSµÄASPÒ²Äܶ¨ÒåÀàµÄ£¡±¾ÎĽ«½éÉܶ¨Ò塢ʹÓÃÀàµÄ»ù±¾·½·¨¡£
ÔÚASP£¨ÌØָʹÓÃVBSµÄASP£¬ÏÂͬ£©ÀʹÓÃClassÓï¾äÀ´ÉùÃ÷Ò»¸öÀà¡£Óï·¨ÈçÏ£º
Class ˈ̞
End Class
ÀàµÄ¶¨Òå¡¢±äÁ¿¡¢ÊôÐԺͷ½·¨µÈ¶¼°üº¬ÔÚClass...End Class¿éÖС£
ÏÂÃæ¾Í¿ÉÒÔ¶¨ÒåÀàµÄÊôÐԺͷ½·¨ÁË¡£Õýʽ½²ÊôÐÔ¡¢·½·¨µ ......
<!--#include file=common.asp-->
<%
'**********************************************
' code by aspµ¼³öexcelͨÓÃ
' ÐÞ¸ÄÒýÓà by ×ÓÑÔ(jastudio)
' qq:23638564 email:kpggdf@163.com
' web:www.gdsspt.com
'**********************************************
dim xibua
dim mysql
xibua = request ......
http://www.w3school.com.cn/asp/met_mappath.asp
¶¨ÒåºÍÓ÷¨
MapPath ·½·¨¿É°ÑÖ¸¶¨µÄ·¾¶Ó°Éäµ½·þÎñÆ÷ÉÏÏàÓ¦µÄÎïÀí·¾¶ÉÏ¡£
×¢ÊÍ£º´Ë·½·¨²»ÄÜÓÃÓÚ Session.OnEnd ºÍ Application.OnEnd ÖС£
ʵÀý
ʵÀý 1
¾ÙÀý£¬Îļþ test.asp λÓÚ C:\Inetpub\wwwroot\Script¡£
Îļþ Test.asp (λÓÚ C:\Inetpub\wwwroot\Script) °üº ......