Error: File /xxxx.asp Unexpected error. A trappable error (C0000005) occurred in an external object. The script cannot continue running..
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
错误发生之前没有更新过code及其他组件,而且这个错误以前貌似也没有遇到过,在网上搜了一下关于这个错误的信息,结合eventlog里面的出错页面,猜测是code里面调用的dll组件出了问题。具体问题不明.... - =
因为没法再现错误,而且貌似当时重启了server之后就没问题了,所以很难断定根源,只能按照突发的特殊情况处理了... = =|||
ASP Error 0115意味着你的asp中的一个组件调用失败,并且同时ASP
不能够从这个失败中获取更多的错误信息了。
Error 'ASP 0115 '
Unexpected error
/scripts/ <filename>
A trappable error occurred in an external object. The script cannot continue running.
ASP Error '0115 '对于ASP开发者来说是一个噩梦,这个错误意味着
ASP使用的一个组件已经Crash掉了。最致命的是你还不能够得到更多的更详细的出错信息。
所以这有很多的可能会导致这个错误,从而也导致了有很多不同的解决办法。
下面是几个比较经典的解决方案:
(一) (对于IIS 3/4来说):
服务端程序的安装顺序:
有的时候当你在服务端按照错误的顺序安装了新的软件后,一些版本新的DLL被旧版本的给覆盖了,
可气的是,你通常都不被通知这些关键的动态连接库被覆盖了.在这些出错中,你尤其应该注意的是当你
安装了任何一个涉及到VB5的数据组件时(dll,ocx),ADO的DLL并没有被VB5的安装程序中带的旧版本给覆盖,.
VB5的安装程序而是将旧版本的dll安装到windows\system 或则 winnt\system32目录中,并且在这些目录中注册了
这些dll(它们将在你的注册表中替换掉你的新版本dll在IIS中的的注册默认目录位置),
要解决由于VB5带来的麻烦就是重新再注册你原来的dll。
(二) 一个安装服务端程序时的推荐顺序:
Windows NT 4.0
NT 4.0 Option Pack (IIS 4等)
NT 4.0 SP4
SQL Server 7.0
MDAC 2.0 SP2
IE 5.0
(三) MDAC版本导致的错误:
安装最新的MDAC版本能够帮助你解决好多莫名其妙的ASP 0115错误。最新的版本可以去微软的站点下载。
(四) 由于匿名帐号引起的安全问题:
匿名帐号的权限决定了你的ASP中需要访问到的组件中某些函数的正确性.
a) 如果没有给用户相应的访问权限,ADO的DLL将抱错: '0115 ' error.
b) 确信你的匿名帐号能够访问如下目录:System32目录,InetPub目录,你的RDBMS安装的目录以及ADO DLL所在的目录
(五)提交Form时出现的错误
这个错误请参考MSDN中的文章id为Q173741
(六)糟糕的代码习惯导致的错误:
有些时候 '0115 '是由于你糟糕的代码导致的(不过也许同样的代码由于运气不同,在不同的机器上不会发生错误)
a) 当一个页面提交一个Form给本身时,没有给该form的name属性赋值
b) 在编写dll时没有声明类型本来为variant的变量为variant
c) 在调用一个不存在的存储过程时,或则调用该存储过程的参数传递错误。
(六)对于使用IIS 3的编程人而言:
a)Session 对象导致的出错:
请参考MSDN中的文章KB Article: Q177036
b)ADO 2.0:
在IIS3中安装了ADO 2.0导致出错,请参考MSDN中的文章:KB Article: Q193310
意外错误
/Index.asp
外部对象中发生了可捕获的错误(C0000005)。脚本无法继续执行。
上面的是我访问的时候碰到的。。。查阅相关资料后解释如下:
徵狀
Unexpected error (意外的錯誤)
/webapp/pagename.asp
A trappable error occurred in an external object. The script cannot continue running. (外部物件中發生可截獲的錯誤。指令碼無法繼續執行。)
發生的原因
<% Response.Write RS.fields(1) %>
您可以使用下列縮寫:
<% =RS.fields(1) %>
這與在 Visual Basic 中使用問號來代替 Print 這個字十分類似。但如下列般去掉等號的話,便會造成上述的錯誤訊息:
<% RS.fields(1) %>
解決方案
狀況說明
参考
Table E.4 ASP Errors
Error ID | Description |
---|---|
0100 | Out of memory. Unable to allocate required memory. |
0101 | Unexpected error. The function returned |. |
0102 | Expecting string input. The function expects a string as input. |
0103 | Expecting numeric input. The function expects a number as input. |
0104 | Operation not allowed. |
0105 | Index out of range. An array index is out of range. |
0106 | Type mismatch. An unhandled data type was encountered. |
0107 | Data size too large. The size of the data being sent in the request is over the allowed limit. |
0108 | Create object failed. An error occurred while creating object %s. |
0109 | Member not found. |
0110 | Unknown name. |
0111 | Unknown interface. |
0112 | Missing parameter. |
0113 | Script timed out. The maximum amount of time for a script to be executed was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools. |
0114 | Object not free-threaded. The application object accepts only free-threaded objects; object %s is not free-threaded. |
0115 | Unexpected error. A trappable error (%X) occurred in an external object. The script cannot continue running. |
0116 | Missing close of script delimiter. The script block lacks the close of the <script> tag (%>). |
0117 | Missing close of <script> tag. The script block lacks the close of the <script> tag (</SCRIPT>) or the close-of-tag symbol (>). |
0118 | Missing close of <object> tag. The object block lacks the close of the <object> tag (</OBJECT>) or the close-of-tag symbol (>). |
0119 | Missing Classid or Progid attribute. The object instance '|' requires a valid Classid or Progid in the <object> tag. |
0120 | Invalid Runat attribute. The Runat attribute of the <script> tag or <object> tag can have only the value 'Server. |
0121 | Invalid scope in <object> tag. The object instance '|' cannot have Application or Session scope. To create the object instance with Session or Application scope, place the <object> tag in the Global.asa file. |
0122 | Invalid scope in <object> tag. The object instance '|' must have Application or Session scope. This applies to all objects created in a Global.asa file. |
0123 | Missing ID attribute. The required ID attribute of the <object> tag is missing. |
0124 | Missing Language attribute. The required Language attribute of the <script> tag is missing. |
0125 | Missing close of attribute. The value of the '|' attribute has no closing delimiter. |
0126 | Include file not found. The include file '|' was not found. |
0127 | Missing close of HTML comment. The HTML comment or server-side include lacks the close tag (-->). |
0128 | Missing File or Virtual attribute. The include file name must be specified by using either the File or Virtual attribute. |
0129 | Unknown scripting language. The scripting language '|' is not found on the server. |
0130 | Invalid File attribute. File attribute '|' cannot start with a forward slash or a backward slash. |
0131 | Disallowed parent path. The include file '|' cannot contain '..' to indicate the parent directory. |
0132 | Compilation error. The ASP page '|' could not be processed. |
0133 | Invalid ClassID attribute. The <object> tag has an invalid ClassID of '|. |
0134 | Invalid ProgID attribute. The object has an invalid ProgID of '|. |
0135 | Cyclic include. The file '|' is included by itself (perhaps indirectly). Select the Include files for other include statements box. |
0136 | Invalid object instance name. The object instance '|' is attempting to use a reserved name. This name is used by ASP pages intrinsic objects. |
0137 | Invalid global script. Script blocks must be one of the allowed Global.asa procedures. Script directives within <% ... %> are not allowed within the Global.asa file. The allowed procedure names are Application_OnStart, Application_OnEnd, Session_OnStart, and Session_OnEnd. |
0138 | Nested script block. A script block cannot be placed inside another script block. |
0139 | Nested object. An <object> tag cannot be placed inside another <object> tag. |
0140 | Page command out of order. The @ command must be the first command within the ASP page. |
0141 | Page command repeated. The @ command can be used only once within the ASP page. |
0142 | Thread token error. A thread token failed to open. |
0143 | Invalid application name. A valid application name was not found. |
0144 | Initialization error. The page-level objects list failed during initialization. |
0145 | New application failed. The new application could not be added. |
0146 | New session failed. The new session could not be added. |
0147 | 500 server error. |
0148 | Server too busy. |
0149 | Application restarting. The request cannot be processed while the application is being restarted. |
0150 | Application directory error. The application directory could not be opened. |
0151 | Change notification error. The change notification event could not be created. |
0152 | Security error. An error occurred while processing a user's security credentials. |
0153 | Thread error. A new thread request failed. |
0154 | Write HTTP header error. The HTTP headers could not be written to the client browser. |
0155 | Write page content error. The page content could not be written to the client browser. |
0156 | Header error. The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content. |
0157 | Buffering on. Buffering cannot be turned off once it is turned on. |
0158 | Missing URL. A URL is required. |
0159 | Buffering off. Buffering must be on. |
0160 | Logging failure. Failure to write entry to the log. |
0161 | Data type error. The conversion of a Variant to a String variable failed. |
0162 | Cannot modify cookie. The cookie 'ASPSessionID' cannot be modified. It is a reserved cookie name. |
0163 | Invalid comma use. Commas cannot be used within a log entry. Select another delimiter. |
0164 | Invalid TimeOut value. An invalid TimeOut value was specified. |
0165 | SessionID error. A SessionID string cannot be created. |
0166 | Uninitialized object. An attempt was made to access an uninitialized object. |
0167 | Session initialization error. An error occurred while initializing the Session object. |
0168 | Disallowed object use. An intrinsic object cannot be stored within the Session object. |
0169 | Missing object information. An object with missing information cannot be stored in the Session object. The threading model information for an object is required. |
0170 | Delete session error. The session was not deleted properly. |
0171 | Missing path. The Path parameter must be specified for the MapPath method. |
0172 | Invalid path. The Path parameter for the MapPath method must be a virtual path. A physical path was used. |
0173 | Invalid path character. An invalid character was specified in the Path parameter for the MapPath method. |
0174 | Invalid path characters. An invalid '/' or '\\' was found in the Path parameter for the MapPath method. |
0175 | Disallowed path characters. The '..' characters are not allowed in the Path parameter for the MapPath method. |
0176 | Path not found. The Path parameter for the MapPath method did not correspond to a known path. |
0177 | Server.CreateObject failed. %s' |
0178 | Server.CreateObject access error. The call to Server.CreateObject failed while checking permissions. Access is denied to this object. |
0179 | Application initialization error. An error occurred while initializing the Application object. |
0180 | Disallowed object use. An intrinsic object cannot be stored within the Application object. |
0181 | Invalid threading model. An object using the apartment threading model cannot be stored within the Application object. |
0182 | Missing object information. An object with missing information cannot be stored in the Application object. The threading model information for the object is required. |
0183 | Empty cookie key. A cookie with an empty key cannot be stored. |
0184 | Missing cookie name. A name must be specified for a cookie. |
0185 | Missing default property. A default property was not found for the object. |
0186 | Error parsing certificate. |
0187 | Object addition conflict. Could not add object to application. Application was locked down by another request for adding an object. |
0188 | Disallowed object use. Cannot add objects created by using <object> tags to the session intrinsic. |
0189 | Disallowed object use. Cannot add objects created by using <object> tags to the application intrinsic. |
0190 | Unexpected error. A trappable error occurred while releasing an external object. |
0191 | Unexpected error. A trappable error occurred in the OnStartPage method of an external object. |
0192 | Unexpected error. A trappable error occurred in the OnEndPage method of an external object. |
0193 | OnStartPage failed. An error occurred in the OnStartPage method of an external object. |
0194 | OnEndPage failed. An error occurred in the OnEndPage method of an external object. |
0195 | Invalid server method call. This method of the Server object cannot be called during Session_OnEnd and Application_OnEnd. |
0196 | Cannot launch out-of-process component. Only InProc server components should be used. If you want to use LocalServer components, you must set the AspAllowOutOfProcComponents metabase setting. |
0197 | Disallowed object use. Cannot add object with apartment model behavior to the application intrinsic object. |
0198 | Server shutting down. Cannot process request. |
0199 | Disallowed object use. Cannot add JScript objects to the session. |
0200 | Out-of-range Expires attribute. The date and time given for the Expires attribute is earlier than Jan 1, 1980 or later than Jan 19, 2038, 3:14:07 GMT. |
0201 | Invalid default script language. The default script language specified for this application is invalid. |
0202 | Missing code page. The CodePage attribute is missing. |
0203 | Invalid code page. The specified CodePage attribute is invalid. |
0204 | Invalid CodePage value. An invalid CodePage value was specified. |
0205 | Change notification. Failed to create event for change notification. |
0206 | Cannot call BinaryRead. Cannot call BinaryRead after using Request.Form collection. |
0207 | Cannot use Request.Form. Cannot use Request.Form collection after calling BinaryRead. |
0208 | Cannot use generic Request collection. Cannot use the generic Request collection after calling BinaryRead. |
0209 | Illegal value for Transaction property. The Transaction property can only be REQUIRED, REQUIRES_NEW, SUPPORTED, or NOT_SUPPORTED. |
0210 | Method not implemented. This method has not yet been implemented. |
0211 | Object out of scope. A built-in ASP object, which is no longer valid, has been referenced. |
0212 | Cannot clear buffer. Response.Clear is not allowed after a Response.Flush while client debugging is enabled. |
0214 | Invalid Path parameter. The Path parameter exceeds the maximum length allowed. |
0215 | Illegal value for EnableSessionState property. The EnableSessionState property can be only TRUE or FALSE. |
0216 | MSDTC Service not running. Transactional Web pages cannot be run if the MSDTC service is not running. |
0217 | Invalid scope in <object> tag. Object scope must be Page, Session, or Application. |
0218 | Missing LCID. The LCID attribute is missing. |
0219 | Invalid LCID. The specified LCID is not available. |
0220 | Requests for Global.asa not allowed. Requests with the URL pointing to Global.asa are not allowed. |
0221 | Invalid @ Command directive. The specified '|' option is unknown or invalid. |
0222 | Invalid TypeLib Specification. The <metadata> tag contains an invalid type library specification. |
0223 | TypeLib not found. The <metadata> tag contains a type library specification that does not match any registry entry. |
0224 | Cannot load TypeLib. Cannot load the type library specified in the <metadata> tag. |
0225 | Cannot wrap TypeLibs. Cannot create a type library wrapper object from the type libraries specified in <metadata> tags. |
0226 | Cannot modify StaticObjects. StaticObjects collection cannot be modified at run time. |
0227 | Server.Execute failed. The call to Server.Execute failed. |
0228 | Server.Execute error. The call to Server.Execute failed while loading the page. |
0229 | Server.Transfer failed. The call to Server.Transfer failed |
0230 | Server.Transfer error. The call to Server.Transfer failed while loading the page. |
0231 | Server.Execute error. Invalid URL form or fully qualified absolute URL was used. Use relative URLs. |
0232 | Invalid cookie specification. The <metadata> tag contains an invalid cookie specification. |
0233 | Cannot load cookie script source. Cannot load cookie script source file specified in the <metadata> tag. |
0234 | Invalid include directive. Server-side include directives cannot be present in script blocks. Use the SRC= attribute of the <script> tag. |
0235 | Server.Transfer error. Invalid URL form or fully qualified absolute URL was used. Use relative URLs. |
0236 | Invalid cookie specification. The <metadata> tag contains an invalid or missing SRC parameter. |
0237 | Invalid cookie specification. The <metadata> tag contains an invalid or missing Name parameter. |
0238 | Missing attribute value. No value was specified for the '|' attribute. |
0239 | Cannot process file. Unicode ASP files are not supported. |
0240 | Script engine exception. A script engine threw exception %X in %s from %s. |
0241 | CreateObject exception. The CreateObject of %s caused exception %X. |
0242 | Query OnStartPage interface exception. Querying the OnStartPage or OnEndPage methods of object %s caused exception %X. |
0243 | Invalid <metadata> tag in Global.asa. Only <metadata> TYPE="TypeLib" can be used in Global.asa. |
0244 | Cannot enable session state. Session state cannot be enabled when it has been disabled in the application. |
0245 | Mixed usage of code page values. The @CODEPAGE value specified differs from that of the including file's code page or the file's saved format. |
0246 | Too many concurrent users. Try again later. |
0247 | Bad argument to BinaryRead. The argument to BinaryRead must be nonnegative. |
0248 | Script is not transacted. This ASP file must be transacted to use the ObjectContext object. |
0249 | Cannot use IStream on Request. Cannot use IStream on Request object after using Request.Form collection or Request.BinaryRead. |
0250 | Invalid default code page. The default code page specified for this application is invalid. |
0251 | Response buffer limit exceeded. Execution of the ASP page caused the response buffer to exceed its configured limit. |