473,471 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

"Member not found" using input property on MSXML processor object

I have a strange problem.

When I try to call the input property of the MSXML processor object from
VBScript in an ASPX page I get the error "Member not found".

The same code (with a few "set" statements added) works find in ASP.

What on earth is going on ? I can't find anything in the knowledge base on
it.

Here is a copy of a test page that demonstrates the problem.

<%@ Page validateRequest=false aspcompat="TRUE" language="vbscript"
trace="true" debug="true" %>
<script language="vbscript" runat="server">

sub Transform()
dim oXmlIn
dim oXsl
dim oTemplate
dim oProc
dim sXsl

oXmlIn = Server.CreateObject("Msxml2.FreeThreadedDOMDocumen t.4.0")
if oXmlIn.loadXml("<root/>") then
Trace.Write("Xml load worked")
else
Trace.Write("Xml load failed")
end if

sXsl = "<?xml version=""1.0""?>" & _
"<xsl:stylesheet version=""1.0""
xmlns:xsl=""http://www.w3.org/1999/XSL/Transform"">" & _
"<xsl:output method=""html""/>" & _
"<xsl:template match=""/"">root</xsl:template>" & _
"</xsl:stylesheet>"

oXsl = Server.CreateObject("Msxml2.FreeThreadedDOMDocumen t.4.0")
if oXsl.loadXml(sXsl) then
Trace.Write("Xsl load worked")
else
Trace.Write("Xsl load failed")
end if
oTemplate = Server.CreateObject("MSXML2.XSLTemplate.4.0")

oTemplate.stylesheet = oXsl
oProc = oTemplate.createProcessor()
if oProc is nothing then
Trace.Write("createProcessor failed")
else
Trace.Write("createProcessor worked")
end if

oProc.input = oXmlIn
oProc.transform
end sub

</script>
<%
Call Transform()
%>
Jul 21 '05 #1
2 1833
Wrong newsgroup. You might try one of the ASP or XML news groups.

Take a look at:
http://www.msdn.microsoft.com/newsgroups/

for managed newsgroups.

Sincerely,
Max Vaughn [MS]
Microsoft Developer Support
Disclaimer: This posting is provided "AS IS" with no warranties, and
confers no rights. You assume all risk for your use.

Jul 21 '05 #2
Andy Norman wrote:
I have a strange problem.

When I try to call the input property of the MSXML processor object from
VBScript in an ASPX page I get the error "Member not found".

The same code (with a few "set" statements added) works find in ASP.


ASP and ASP.NET are different beasts. ASP.NET is based on .NET and
doesn't use MSXML therefore. What's wrong with System.Xml pile of
functionality?
--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog

Jul 21 '05 #3

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

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
10
by: Scott Brady Drummonds | last post by:
Hi, everyone, I'm still learning Python as I develop a medium-sized project. From my previous experience with C++, I've burnt into my mind the notion of information hiding. I'm having trouble...
0
by: Ari Royce Hidayat | last post by:
Dear ALL, Is there some one ever faces this problem? And fix it? The scenario is: There's an html page that hosts a .net object (using object tag), and this page opens the second html page...
4
by: Jian H. Li | last post by:
Hello, What's the essential differences between the two ways of "class::member" & "object.member"(or object_pointer->member)? class C{ public: void f() {} int i; };
1
by: Andy Norman | last post by:
I have a strange problem. When I try to call the input property of the MSXML processor object from VBScript in an ASPX page I get the error "Member not found". The same code (with a few "set"...
2
by: Lenonardo | last post by:
Hi. I'm writing a VB.Net application to update multiple Excel Worksheets. I'm using late binding (i.e. all variables are objects + use createobject) I develop the application on an XP...
2
by: Lionel B | last post by:
I have a function which takes a functor argument. I which to call it for a functor which is actually a class member; this works fine, using the mem_fun_ref and bind1st functions (see listing 1...
5
by: Gianni Mariani | last post by:
I'm hoping someone can tell me why using member address of works and why using the dot operator does not in the code below. The code below uses the template function resolution mechanism to...
3
by: andersond | last post by:
I want input objects to have a light yellow background when they have focus. Here's how I call my function: input name="monthsVacant" id="monthsVacant" disabled="disabled"...
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,...
1
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.