error 'ASP 0115' Unexpected error A trappable error occurred in an external object. The script cannot continue running. |
If it is a persisent error (e.g. a refresh doesn't alleviate the ptoblem), restart IIS and/or reboot your server. Amazing that this "solution" of smacking Windows around a bit still has the ability to clear out IIS issues.
If you are doing any work with databases, make sure you have the latest version of MDAC (
MDAC Download Page) and, if applicable, JET 4.0 (see
Article #2342). Make sure you are using the correct parameter types and data lengths if you are calling stored procedures (see
Article #2201 and
The command object is your friend), and that your queries don't use reserved words (see
Article #2080).
Go through all of the steps outlined in the following KB articles:
KB #194190 PRB: Error "ASP 0115 a Trappable Error Has Occurred"
KB #281674 How To Troubleshoot ASP 0115 Errors in IIS
KB #198929 Err Msg: Error 'ASP 0115' Unexpected Error.
If you are using built-in ADO objects and none of the above suggestions worked, see the following:
KB #193310 FIX: ADO 2.0 Generates Error 0115 When Used with IIS 3.0
KB #203573 PRB: ASP/ADO Coding Error Produces ASP 0115 Error
KB #310696 FP2000: Error Message When You Run ASP Page
If you are building or have built your own custom COM component, see the following articles:
KB #150777 INFO: Descriptions and Workings of OLE Threading Models
KB #172925 INFO: Security Issues with Objects in ASP and ISAPI Extensions
KB #191979 PRB: VB Component Not Marked Apartment Produces ASP 0115 Error
KB #194801 Active Server Pages returns VBScript runtime error '800a01ad'
KB #217114 How To Implement Array Arguments in Visual Basic COM Objects ...
KB #218454 How To Implement Array Arguments in Visual C++ COM Objects ...
KB #224424 How To Implement Visual Basic COM Objects Returning Recordsets
KB #225131 How To Implement Visual C++ COM Objects Returning Recordsets
KB #243548 Design guidelines for Visual Basic components under ASP
What follows is a breakdown of different technologies you could be using, and KB articles relating to those that either explain why the ASP 0115 error is happening, or at least detail practices that can help avoid it.
Connecting to Access locally KB #185874 HOW TO: Troubleshoot Permissions in Internet Information Server 4.0
Connecting to Access or SQL Server on a remote machine, using Windows Authentication KB #210457 ASP 0115 or Inetinfo Application Error Occurs on ASP File Running Database Query
Article #2168 Connecting to Oracle KB #170012 PRB: ASP Error 0115 When Connecting to Sybase/Oracle Database
KB #253449 Oracle Query or Stored Procedure from ASP and ADO Causes IIS to Stop Responding
Connecting to Analysis Services KB #293463 FIX: ASP Error 0115 Occurs When Connecting Through HTTP to Analysis Server ...
Exchange / Outlook Web Access KB #184841 XWEB: OWA Add-in Component for IIS May Cause Heap Corruption
KB #195113 XCLN: Problem Opening Attachments with Netscape Navigator
KB #230594 Errors inserting attachments using Outlook Web Access
KB #320514 XCCC: Troubleshooting "ASP 0115" Error Messages in Outlook Web Access 5.x
KB #321006 XWEB: The Cdohtml.dll File Tries to Parse Attachments That Do Not Exist
KB #818709 Outlook Web Access Stops Responding When You Try to Access a Mailbox ...
CDO / CDONTS (including MAPI sessions)
KB #189533 PRB: MAPI_E_FAILONEPROVIDER Accessing Public Folder Through ASP
KB #195379 PRB: CDO Application in an ASP Page Causes ASP 0115 Error
MSXML2.DOMDocument KB #281142 PRB: Load Method Fails When Loading XML File Over HTTP
Session variables (IIS 3.0) KB #177036 FIX: ASP 0115 Error Occurs With the Session Object Under IIS 3
FormatNumber() KB #244787 BUG: Access Violation When You Use FormatNumber VBScript Function in ASP
A "simple" form KB #173741 PRB: Random ASP 0115 Errors when Submitting Form
Site Server 3.0 KB #246622 DoPipeError: DBStorage InitStorage Failed Because the Datasource Parameter Is Incorrect
KB #255048 Error Message: ASP 0115 A Trappable Error Has Occurred
SharePoint Portal Server KB #306466 Uploading a File with a Long File Name to a Deeply Nested Folder ...
MCIS (Microsoft Commercial Internet System) KB #265388 HMI WebMail Services Fail with ASP Errors Due to Poor IMAP Response
KB #265389 XIMS: MCIS IMAP4 Mail Server May Exhibit Intermittently Poor Performance
KB #270868 MCIS 2.5 HMI Causes ASP Error Message Due to Heap Access Violation
KB #271585 HMI ASP Error Because of Cpshost Access Violation
KB #283816 MCIS 2.5 HMI Causes ASP Error Due to Heap Access Violation
KB #298852 MAPS Access Violation Causes ASP 0115 Error
DB2 and/or SNA Server KB #170668 Inetinfo.exe Access Violation When Querying DB2 Using SNA Server 3.0