Microsoft Knowledge Base Email Alertz

(223036) - When you run the default Web site out-of-process and use Remote Data Services (RDS) the following error results: A Runtime Error has occurred. Do you wish to Debug? Line: xx Error: Unexpected error (0x80070558)

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 223036 - Last Review: June 29, 2006 - Revision: 4.1

FIX: RDS error when Web site is run out-of-process

This article was previously published under Q223036

On This Page

SYMPTOMS

When you run the default Web site out-of-process and use Remote Data Services (RDS) the following error results:
A Runtime Error has occurred.
Do you wish to Debug?
Line: xx
Error: Unexpected error (0x80070558)

RESOLUTION

To resolve this problem, install MDAC 2.5 or a later version. To obtain MDAC, visit the following Microsoft Web sites.

MDAC 2.8 SP1

http://www.microsoft.com/downloads/details.aspx?FamilyID=78cac895-efc2-4f8e-a9e0-3a1afbd5922e (http://www.microsoft.com/downloads/details.aspx?FamilyID=78cac895-efc2-4f8e-a9e0-3a1afbd5922e)

MDAC 2.8

http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-185d0506396c (http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-185d0506396c)

WORKAROUND

To work around this problem, use one of the following methods:
  • Run the default Web site in-process.
  • Transfer the Web application out of the default Web site into another site.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This bug was corrected in Microsoft Data Access Components 2.5.

MORE INFORMATION

Steps to Reproduce Behavior


  1. Save the following code in a text file called RDSBug.asp in the root of the default Web site.
    <%@ Language=VBScript %>
    <SCRIPT LANGUAGE=VBSCRIPT>
        Sub cmdLoad_OnClick
            dim df, rs, oTR
            set df = ds.CreateObject("RDSServer.DataFactory","http://<webserver>")
            set rs = df.Query("DSN=Northwind;","SELECT * FROM Employees;")
            tblMain.deleteRow 
            while not rs.eof
                set oTR = tblMain.insertRow
                for x = 0 to rs.fields.count - 1
                    set oCL = oTR.insertCell
                    oCL.innerText = rs(x)
                next
                rs.MoveNext
            wend
            rs.close
            set rs = nothing
            set df = nothing
        End Sub
    </SCRIPT>
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    
    <OBJECT id=ds classid="clsid:BD96C556-65A3-11D0-983A-00C04FC29E36" HEIGHT=0 WIDTH=0></OBJECT>
        <TABLE ID=tblMain BORDER=2>
        <TR><TD>The data should load here.</TD></TR>
        </TABLE>
    <BR>
    <INPUT TYPE=BUTTON VALUE="Click to load some data into the table..." NAME=cmdLoad>
    
    </BODY>
    </HTML>
    					
  2. Test your setup by running the page. If the page does not display data correctly, verify that you have the Northwind sample database installed and that the Northwind data source name (DSN) is set up in your ODBC Administrator. (The Northwind database is installed with the Microsoft Visual Basic samples in the VB98 directory as Nwind.mdb.) If the page still does not work correctly, review the following Knowledge Base articles to confirm that your RDS configuration is correct:
    184606  (http://kbalertz.com/Feedback.aspx?kbNumber=184606/EN-US/ ) HOWTO: Use RDS From an IIS 4.0 Virtual Server
    243245  (http://kbalertz.com/Feedback.aspx?kbNumber=243245/EN-US/ ) PRB: RDS Handler Error Messages Due to Security Settings
    251122  (http://kbalertz.com/Feedback.aspx?kbNumber=251122/EN-US/ ) Troubleshooting Common Problems with Remote Data Services
  3. After you have confirmed that RDS is configured correctly and the page is working, open the Internet Services Manager, right-click the default Web site and click Properties. Click the Home Directory tab. Select the Run in separate memory space (isolated process) checkbox or, under IIS 5.0 or later, change Application Protection to High (Isolated). Click OK to exit the Properties dialog box.
  4. Open the page again in your browser. The page will return "Unexpected error (0x80070558)".

APPLIES TO
  • Microsoft Data Access Components 1.5
  • Microsoft Data Access Components 2.0
  • Microsoft Data Access Components 2.1
  • Microsoft Data Access Components 2.1 Service Pack 2
  • Microsoft Data Access Components 2.1 Service Pack 1
  • Microsoft Data Access Components 2.1 Service Pack 2
  • Microsoft Active Server Pages 4.0
  • Microsoft Internet Information Server 3.0
  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Services 5.0
Keywords: 
kbbug kbexcel123quattro kbfix kbmdac250fix kbmdacnosweep KB223036
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate