Tags: 0x80004005, cause, database, directory, documents, error, iis, microsoft, msdn, queries, represent, software, transformations, virtual, xml, xsl

0x80004005 error - what could be the cause?

On Microsoft » Microsoft IIS Development

9,451 words with 1 Comments; publish: Sun, 25 May 2008 15:08:00 GMT; (30078.13, « »)

Hi everyone,

I have a an IIS Virtual Directory that does XSL transformations of XML

documents that represent database queries. All of the other documents

run fine, but the main document (which is simply a one element XML

document transformed into a web page by the XSL sheet (source code

below)) does not load with the error message below. The main document

has several frames, one of them is populated by a transformed XML/XSL

database query, and the other frame has listboxes whose contents are

populated by XML messages in another virtual directory. The error

seems to indicate that there is not data from the XML document, but

when I open it directly in the browser, it seems to be there. We are

at our wits end regarding this error, so what is causing the problem.

When we open all the sub pages seperately, it all works fine. We are

using Windows Server 2003, SQLXML 3.0 with SQL Server 2005. Thanks,

ERROR: 500 Internal Server Error

HResult: 0x80004005

Source: msxml4.dll

Description: Error while parsing "xml file name". No data is available

for the requested resource.

main XSL sheet:

<?xml version='1.0'?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

version="1.0">

<xsl:template match="root">

&


Vega Risk

var objectHTML="Please

ask IT to install the Adobe SVG plugin";

var accountId=0;

var instrumentId=0;

function selectedAccount(accId) {

accountId=accId;

setHTML(accountId,instrumentId);

resetObject(objectHTML);

}

function selectedInstrument(iId) {

instrumentId=iId;

setHTML(accountId,instrumentId);

resetObject(objectHTML);

}

function setHTML(aId,iId) {

objectHTML = "Please ask IT to install the Adobe SVG

plugin";

}

function resetObject(html) {

document.getElementById("main").innerHTML = objectHTML;

var date = new Date();

document.getElementById("update").innerHTML = "Last updated

"+date.toString();

}

function timer() {

resetObject(objectHTML);

setTimeout("timer()",60000);

}

setTimeout("timer()",60000);

]]>

</xsl:template>

<xsl:template name="sidepanel">

<P class="spItem">Account</P>

<select name="account"

onchange="selectedAccount(this.options[this.selectedIndex].value)">

<xsl:apply-templates

select="document('http://10.26.13.21/HIT_FIRM/templates/accounts.xml')"/>

</select>

<P class="spItem">Stock</P>

<select name="stock"

onchange="selectedInstrument(this.options[this.selectedIndex].value)">

<xsl:apply-templates

select="document('http://10.26.13.21/HIT_FIRM/templates/stocks.xml')"/>

</select>

</xsl:template>

<xsl:template name="mainpanel">

<iframe id="mainObject" class="mainObject"

src="/app/links/?src=http://10.26.13.21/VegaRisk/templates/VegaRisk.xml?xsl=templates/VegaRiskSVG.xsl&accountId=0&instrumentId=0">

Please ask IT to download the Adobe SVG viewer plugin for IE

</iframe>

</xsl:template>

<xsl:template match="accounts">

<xsl:for-each select="account">

<option>

<xsl:attribute name="value"><xsl:value-of

select=".iis.todaysummary.com.AccountID"/></xsl:attribute>

<xsl:value-of select=".iis.todaysummary.com.identifier"/>

</option>

</xsl:for-each>

</xsl:template>

<xsl:template match="stocks">

<xsl:for-each select="stock">

<option>

<xsl:attribute name="value"><xsl:value-of

select=".iis.todaysummary.com.instrumentID"/></xsl:attribute>

<xsl:value-of select=".iis.todaysummary.com.symbol"/>

</option>

</xsl:for-each>

</xsl:template>

</xsl:stylesheet>

All Comments

Leave a comment...

  • 1 Comments
    • No ideas. but 8004005 indicates access error, most likely due to permission.

      Have you try filemon to trace it?

      --

      Regards,

      Bernard Cheah

      http://www.iis.net/

      http://www.iis-resources.com/

      http://msmvps.com/blogs/bernard/

      <herman404.iis.todaysummary.com.hotmail.com> wrote in message

      news:1161795354.233085.244720.iis.todaysummary.com.m7g2000cwm.googlegroups.com...

      > Hi everyone,

      >

      > I have a an IIS Virtual Directory that does XSL transformations of XML

      > documents that represent database queries. All of the other documents

      > run fine, but the main document (which is simply a one element XML

      > document transformed into a web page by the XSL sheet (source code

      > below)) does not load with the error message below. The main document

      > has several frames, one of them is populated by a transformed XML/XSL

      > database query, and the other frame has listboxes whose contents are

      > populated by XML messages in another virtual directory. The error

      > seems to indicate that there is not data from the XML document, but

      > when I open it directly in the browser, it seems to be there. We are

      > at our wits end regarding this error, so what is causing the problem.

      > When we open all the sub pages seperately, it all works fine. We are

      > using Windows Server 2003, SQLXML 3.0 with SQL Server 2005. Thanks,

      >

      > ERROR: 500 Internal Server Error

      > HResult: 0x80004005

      > Source: msxml4.dll

      > Description: Error while parsing "xml file name". No data is available

      > for the requested resource.

      >

      >

      > main XSL sheet:

      > <?xml version='1.0'?>

      > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

      > version="1.0">

      > <xsl:template match="root">

      > &


      > Vega Risk

      > rel="stylesheet"/>

      >

      >

      > var objectHTML=" src='Please">http://10.26.13.21/VegaRisk/templates/VegaRisk.xml?xsl=templates/VegaRiskSVG.xsl&accountId=0&instrumentId=0'>Please

      > ask IT to install the Adobe SVG plugin";

      > var accountId=0;

      > var instrumentId=0;

      >

      > function selectedAccount(accId) {

      > accountId=accId;

      > setHTML(accountId,instrumentId);

      > resetObject(objectHTML);

      > }

      >

      > function selectedInstrument(iId) {

      > instrumentId=iId;

      > setHTML(accountId,instrumentId);

      > resetObject(objectHTML);

      > }

      >

      > function setHTML(aId,iId) {

      > objectHTML = " objectHTML +=> "'http://10.26.13.21/vegaRisk/templates/VegaRisk.xml?xsl=templates/VegaRiskSVG.xsl";

      > objectHTML += "&accountId="+aId;

      > objectHTML += "&instrumentId="+iId;

      > objectHTML += "'>Please ask IT to install the Adobe SVG

      > plugin";

      > }

      > function resetObject(html) {

      > document.getElementById("main").innerHTML = objectHTML;

      > var date = new Date();

      > document.getElementById("update").innerHTML = "Last updated

      > "+date.toString();

      > }

      > function timer() {

      > resetObject(objectHTML);

      > setTimeout("timer()",60000);

      > }

      > setTimeout("timer()",60000);

      > ]]>

      >

      >

      >

      >

      >

      >

      >

      >

      >

      >

      >

      >


      > </xsl:template>

      > <xsl:template name="sidepanel">

      > <P class="spItem">Account</P>

      > <select name="account"

      > onchange="selectedAccount(this.options[this.selectedIndex].value)">

      > <xsl:apply-templates

      > select="document('http://10.26.13.21/HIT_FIRM/templates/accounts.xml')"/>

      > </select>

      > <P class="spItem">Stock</P>

      > <select name="stock"

      > onchange="selectedInstrument(this.options[this.selectedIndex].value)">

      > <xsl:apply-templates

      > select="document('http://10.26.13.21/HIT_FIRM/templates/stocks.xml')"/>

      > </select>

      > </xsl:template>

      > <xsl:template name="mainpanel">

      > <iframe id="mainObject" class="mainObject"

      > src="/app/links/?src=">http://10.26.13.21/VegaRisk/templates/VegaRisk.xml?xsl=templates/VegaRiskSVG.xsl&accountId=0&instrumentId=0">

      > Please ask IT to download the Adobe SVG viewer plugin for IE

      > </iframe>

      >

      > </xsl:template>

      > <xsl:template match="accounts">

      > <xsl:for-each select="account">

      > <option>

      > <xsl:attribute name="value"><xsl:value-of

      > select=".iis.todaysummary.com.AccountID"/></xsl:attribute>

      > <xsl:value-of select=".iis.todaysummary.com.identifier"/>

      > </option>

      > </xsl:for-each>

      > </xsl:template>

      > <xsl:template match="stocks">

      > <xsl:for-each select="stock">

      > <option>

      > <xsl:attribute name="value"><xsl:value-of

      > select=".iis.todaysummary.com.instrumentID"/></xsl:attribute>

      > <xsl:value-of select=".iis.todaysummary.com.symbol"/>

      > </option>

      > </xsl:for-each>

      > </xsl:template>

      > </xsl:stylesheet>

      >

      #1; Sun, 25 May 2008 15:10:00 GMT