473,769 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS7 ASP Response object incompatible with MSXML transformNodeTo Object

People,

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

<%
Set xml = Server.CreateOb ject("MSXML2.DO MDocument.3.0")
xml.loadXML "<root />"

Set xsl = Server.CreateOb ject("MSXML2.DO MDocument.3.0")
xsl.loadXML "<xsl:styleshee t
xmlns:xsl=""htt p://www.w3.org/1999/XSL/Transform"" version=""1.0"" >" & _
"<xsl:outpu t method=""xml"" encoding=""UTF-8"" />" & _
"<xsl:templ ate match=""root""> <ok /></xsl:template>" & _
"</xsl:stylesheet> "

Response.Conten tType = "text/xml"
Response.CharSe t = "UTF-8"
xml.documentEle ment.transformN odeToObject xsl, Response

%>

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

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

Varitions attempted:-

Use MSXML6: Still Fails
Set Response.CodePa ge = 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.Sav e 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 7996
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.documentEle ment.transformN odeToObject xsl, Response

%>

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

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Aug 9 '08 #3
"Martin Honnen" <ma*******@yaho o.dewrote in message
news:eP******** ********@TK2MSF TNGP02.phx.gbl. ..
Anthony Jones wrote:
xml.documentEle ment.transformN odeToObject xsl, Response

%>

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

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

Martin, Good idea, still doesn't work though. This does appear to be
specific to the use of transformNodeTo Object and the Response object. It
works when other IStream implementers are passed to transformNodeTo Object
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.documentE lement.transfor mNodeToObject xsl, Response
>>The above works fine on IIS6 and below. On IIS7 however it fails with
0x80004001 Not Implemented on the transformNodeTo Object.
This does appear to be
specific to the use of transformNodeTo Object 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*******@yaho o.dewrote in message
news:ey******** ********@TK2MSF TNGP04.phx.gbl. ..
Anthony Jones wrote:
>xml.documentEl ement.transform NodeToObject xsl, Response
>The above works fine on IIS6 and below. On IIS7 however it fails with
0x80004001 Not Implemented on the transformNodeTo Object.

This does appear to be
specific to the use of transformNodeTo Object 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*@yadayadaya da.comwrote in message
news:%2******** **********@TK2M SFTNGP05.phx.gb l...
People,

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

<%
Set xml = Server.CreateOb ject("MSXML2.DO MDocument.3.0")
xml.loadXML "<root />"

Set xsl = Server.CreateOb ject("MSXML2.DO MDocument.3.0")
xsl.loadXML "<xsl:styleshee t
xmlns:xsl=""htt p://www.w3.org/1999/XSL/Transform"" version=""1.0"" >" & _
"<xsl:outpu t method=""xml"" encoding=""UTF-8"" />" & _
"<xsl:templ ate match=""root""> <ok /></xsl:template>" & _
"</xsl:stylesheet> "

Response.Conten tType = "text/xml"
Response.CharSe t = "UTF-8"
xml.documentEle ment.transformN odeToObject xsl, Response

%>

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

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

Use MSXML6: Still Fails
Set Response.CodePa ge = 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.Sav e 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 transformNodeTo Object 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
17890
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"? <%@ Language=VBScript %> <% Response.Buffer = TRUE Response.ContentType = "image/jpg"
5
5371
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 commandline call to MSXML. The problem is that the dotnet variant leaves out a piece of info on the charset, leading to the browser going to a default encoding instead of the wanted UTF-8. MSXML2.DOMDocument40Class stylesheet = new...
3
5157
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 reports web viewer, view the report and then export from the viewer it also works fine (IIS7 and cassini). And I should note this all works fine in IIS6 on win2003 or in xp. So my thought with all this is that something is going on with IIS7, so...
14
9505
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 The web app works great on win2003 and xp and the end result is a pdf file is displayed in the browser. When I run the same code on Vista, the browser displays the message "Internet Explorer cannot display the web page". If I open the same...
5
2680
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 across the network, so i've installed IIS7 on my Vista machine and created a new website, point at the website's directory. After I switched to the 'Classic .net' app pool, it shows up on the port.
0
5984
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 on an old project that happens to run on IIS6/W2000/MSSQL7, but my W2000 machine couldn't handle the size of the database in question anymore. :-( My new Vista machine is 5 years younger and is a lot faster, so I started to figure out how to use...
6
9644
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 directory. I add default.aspx to the list of default pages for the virtual directory. My problems are: 1- On vista computer I am trying to see the output of my ASP.NET
2
6563
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 converted to an application running in ..NET 2.X and Integrated mode. We copied over the DB and edited the web.config file to the DB username and password. I also added the NETWORK SERVICE user to the DB.
3
5956
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 immediately a IIS 500 Error (Internal Server Error). It is a good thing in production environnement. For debuging purposes, I want temporary to be able to see PHP warnings and errors embedded on the html page.
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9994
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8870
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.