473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IIS7 ASP Response object incompatible with MSXML transformNodeToObject

People,

Anyone else got an IIS7 server out there that they can test this little ASP
file:-

<%
Set xml = Server.CreateObject("MSXML2.DOMDocument.3.0")
xml.loadXML "<root />"

Set xsl = Server.CreateObject("MSXML2.DOMDocument.3.0")
xsl.loadXML "<xsl:stylesheet
xmlns:xsl=""http://www.w3.org/1999/XSL/Transform"" version=""1.0"">" & _
"<xsl:output method=""xml"" encoding=""UTF-8"" />" & _
"<xsl:template match=""root""><ok /></xsl:template>" & _
"</xsl:stylesheet>"

Response.ContentType = "text/xml"
Response.CharSet = "UTF-8"
xml.documentElement.transformNodeToObject xsl, Response

%>

The above works fine on IIS6 and below. On IIS7 however it fails with
0x80004001 Not Implemented on the transformNodeToObject.

It seems something has changed in either MSXML or ASP that breaks this code.

Varitions attempted:-

Use MSXML6: Still Fails
Set Response.CodePage = 65001: Still fails
Set encoding in output element to "Windows-1252": Still fails
Set method to html: Still fails

Pass a different object that implements IStream: Succeeds.

Has Response stop implementing IStream use DOMDocument.Save and pass in the
Response object. That succeeds also so Response still implements IStream.

I note the MSXML3.dll is SP10 on the 2008 server whereas my MSXML3.dll on
the 2003 server is SP9.

Can't find any info on changes though.

Does anyone have any light to shed or can confirm the problem?

--
Anthony Jones - MVP ASP/ASP.NET
Aug 8 '08 #1
6 7972
Anthony Jones wrote:
People,

Anyone else got an IIS7 server out there that they can test this
little ASP file:-
Leaves me out ... sorry.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Aug 8 '08 #2
Anthony Jones wrote:
xml.documentElement.transformNodeToObject xsl, Response

%>

The above works fine on IIS6 and below. On IIS7 however it fails with
0x80004001 Not Implemented on the transformNodeToObject.
Does it work if you use
xml.transformNodeToObject xsl, Response
?

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Aug 9 '08 #3
"Martin Honnen" <ma*******@yahoo.dewrote in message
news:eP****************@TK2MSFTNGP02.phx.gbl...
Anthony Jones wrote:
xml.documentElement.transformNodeToObject xsl, Response

%>

The above works fine on IIS6 and below. On IIS7 however it fails with
0x80004001 Not Implemented on the transformNodeToObject.

Does it work if you use
xml.transformNodeToObject xsl, Response
?

Martin, Good idea, still doesn't work though. This does appear to be
specific to the use of transformNodeToObject and the Response object. It
works when other IStream implementers are passed to transformNodeToObject
and other methods that are designed to write to an IStream work with the
Response object.

--
Anthony Jones - MVP ASP/ASP.NET
Aug 9 '08 #4
Anthony Jones wrote:
>>xml.documentElement.transformNodeToObject xsl, Response
>>The above works fine on IIS6 and below. On IIS7 however it fails with
0x80004001 Not Implemented on the transformNodeToObject.
This does appear to be
specific to the use of transformNodeToObject and the Response object.
As long as you want to create XML with the transformation you could
first transform to an MSXML DOM document and then save that to the
Response object. But writing HTML or plain text as the transformation
result to the Response object does not seem possible then which is quite
a breaking change.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Aug 9 '08 #5
"Martin Honnen" <ma*******@yahoo.dewrote in message
news:ey****************@TK2MSFTNGP04.phx.gbl...
Anthony Jones wrote:
>xml.documentElement.transformNodeToObject xsl, Response
>The above works fine on IIS6 and below. On IIS7 however it fails with
0x80004001 Not Implemented on the transformNodeToObject.

This does appear to be
specific to the use of transformNodeToObject and the Response object.

As long as you want to create XML with the transformation you could
first transform to an MSXML DOM document and then save that to the
Response object. But writing HTML or plain text as the transformation
result to the Response object does not seem possible then which is quite
a breaking change.

Exactly, code isn't going to migrate to IIS7 without modification.
Fortunately for myself my real world stuff uses a library so I need only
tweak the library with a workaround, whenever I can come up with one.

For others this could be a more painful experience. I'll try to dig down
further, currently its not clear whether the problem is in SP10 of MSXML or
IIS7s ASP Response object.

--
Anthony Jones - MVP ASP/ASP.NET
Aug 9 '08 #6
"Anthony Jones" <An*@yadayadayada.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
People,

Anyone else got an IIS7 server out there that they can test this little
ASP
file:-

<%
Set xml = Server.CreateObject("MSXML2.DOMDocument.3.0")
xml.loadXML "<root />"

Set xsl = Server.CreateObject("MSXML2.DOMDocument.3.0")
xsl.loadXML "<xsl:stylesheet
xmlns:xsl=""http://www.w3.org/1999/XSL/Transform"" version=""1.0"">" & _
"<xsl:output method=""xml"" encoding=""UTF-8"" />" & _
"<xsl:template match=""root""><ok /></xsl:template>" & _
"</xsl:stylesheet>"

Response.ContentType = "text/xml"
Response.CharSet = "UTF-8"
xml.documentElement.transformNodeToObject xsl, Response

%>

The above works fine on IIS6 and below. On IIS7 however it fails with
0x80004001 Not Implemented on the transformNodeToObject.

It seems something has changed in either MSXML or ASP that breaks this
code.
>
Varitions attempted:-

Use MSXML6: Still Fails
Set Response.CodePage = 65001: Still fails
Set encoding in output element to "Windows-1252": Still fails
Set method to html: Still fails

Pass a different object that implements IStream: Succeeds.

Has Response stop implementing IStream use DOMDocument.Save and pass in
the
Response object. That succeeds also so Response still implements IStream.

I note the MSXML3.dll is SP10 on the 2008 server whereas my MSXML3.dll on
the 2003 server is SP9.

Can't find any info on changes though.

Does anyone have any light to shed or can confirm the problem?
Here is an update on this problem.

MSXML 3.0 SP10 (msxml3.dll 8.100.1043.0) and MSXML 6.0 SP2 (msxml6.dll
6.20.1076.0)

I've only found these on Server 2008 although I haven't checked an XP SP3
machine or Vista SP1.

Both of these now call the Commit method on the IStream interface passed to
the transformNodeToObject method. Previous versions did not do this. The
Response object of ASP does not implement this method and throws an error
when asked to do so.

The work round is to create a Wrapping Implementation of IStream and absorb
the Commit call.

:(
--
Anthony Jones - MVP ASP/ASP.NET
Aug 13 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: katrinaVictim | last post by:
Question: I get the eror listed at the bottom of the post. What can I do to make the response of the x1.send a "binary" type? Or, in general, how can I just "make this work"? <%@...
5
by: Jeroen | last post by:
We're using MSXML to transform the XML document we have to an XHTML file using an XSLT. Now the problem is that the dotnet implementation we made does something subtly different from the...
3
by: Brad | last post by:
In a Vista/IIS7 asp.net app, a coded crystal report export is crashing IIS7....but it works just fine in visual studio's cassini web server. And if I create a web form and use the crystal...
14
by: Brad | last post by:
I have a .net 2.0 web application project that creates a pdf file, saves the pdf to disk (crystal reports does this part), and then my code reads the pdf file and writes it to the httpresponse ...
5
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it...
0
by: Erwin Moller | last post by:
Hi, I am one of those questionable people that started with Vista (Home Premium). Not because I think it is a ready/steady OS, but partly out of curiousity, and partly because I needed to work...
6
by: ma | last post by:
Hello, I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to deploy in to a system which has Vista Business and IIS7. I copied my files to the target computer and created a virtual...
2
by: David Thielen | last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows 2008 Server running IIS7. We have copied all files to the Windwardreports\apps directory and that apps directory has been...
3
by: guillaume.braux | last post by:
Hello, I am running WS2008 + IIS7 + FASTCGI + ZendCore. I have not modified the default ZendCore php.ini configuration file. Actualy, any kind of PHP error, warning or notice gives me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.