473,382 Members | 1,775 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,382 software developers and data experts.

MSXML issues in 64 bit

I have a C# web application which leverages MSXML that I am trying to
migrate to a 64 bit environment. Currently the application is built
on the .NET 2.0 Framework and using MSXML 6 (though I had the same
issues using version 4). The OS I am running the app on is Windows
Server 2003 x64. I am using the x64 version of MSXML 6 on the
server. My dev environment is Windows XP 32 bit SP2. I have tried to
compile the projects for "anycpu" and "x64" with the same results.
The Interop.MSXML2.dll was generated by my dev environment
automatically when I added the MSXML 6 reference to my project.

Essentially whenever the program tries to instantiate a
FreeThreadedDOMDocument40, it throws an exception with the message,
"Object reference not set to instance of an object". I have tried to
use MSXML 4 and 6 (both are installed on the server) with the same
results. The line of code is:

cXMLDOM = new FreeThreadedDOMDocument40Class();

The program seems to be able to find the Interop.MSXML2.dll (I used
FuselogVW.exe to confirm it), but it is still unable to find the
necessary DLLs in the system directories. The msxml6.dll and
msxml6r.dll are present in both the system32 and SysWOW64 directories,
and the application works fine in a 32bit environment.

May 4 '07 #1
4 11792
I've no idea but using msxml in .NET is deprecated at best, why not use the
in-built classes?
--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

<mr*****@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
>I have a C# web application which leverages MSXML that I am trying to
migrate to a 64 bit environment. Currently the application is built
on the .NET 2.0 Framework and using MSXML 6 (though I had the same
issues using version 4). The OS I am running the app on is Windows
Server 2003 x64. I am using the x64 version of MSXML 6 on the
server. My dev environment is Windows XP 32 bit SP2. I have tried to
compile the projects for "anycpu" and "x64" with the same results.
The Interop.MSXML2.dll was generated by my dev environment
automatically when I added the MSXML 6 reference to my project.

Essentially whenever the program tries to instantiate a
FreeThreadedDOMDocument40, it throws an exception with the message,
"Object reference not set to instance of an object". I have tried to
use MSXML 4 and 6 (both are installed on the server) with the same
results. The line of code is:

cXMLDOM = new FreeThreadedDOMDocument40Class();

The program seems to be able to find the Interop.MSXML2.dll (I used
FuselogVW.exe to confirm it), but it is still unable to find the
necessary DLLs in the system directories. The msxml6.dll and
msxml6r.dll are present in both the system32 and SysWOW64 directories,
and the application works fine in a 32bit environment.

May 5 '07 #2
On May 5, 4:17 am, "Joe Fawcett" <joefawc...@newsgroup.nospamwrote:
I've no idea but using msxml in .NET is deprecated at best, why not use the
in-built classes?

--

Joe Fawcett (MVP - XML)http://joe.fawcett.name

<mrja...@gmail.comwrote in message

news:11**********************@e65g2000hsc.googlegr oups.com...
I have a C# web application which leverages MSXML that I am trying to
migrate to a 64 bit environment. Currently the application is built
on the .NET 2.0 Framework and using MSXML 6 (though I had the same
issues using version 4). The OS I am running the app on is Windows
Server 2003 x64. I am using the x64 version of MSXML 6 on the
server. My dev environment is Windows XP 32 bit SP2. I have tried to
compile the projects for "anycpu" and "x64" with the same results.
The Interop.MSXML2.dll was generated by my dev environment
automatically when I added the MSXML 6 reference to my project.
Essentially whenever the program tries to instantiate a
FreeThreadedDOMDocument40, it throws an exception with the message,
"Object reference not set to instance of an object". I have tried to
use MSXML 4 and 6 (both are installed on the server) with the same
results. The line of code is:
cXMLDOM = new FreeThreadedDOMDocument40Class();
The program seems to be able to find the Interop.MSXML2.dll (I used
FuselogVW.exe to confirm it), but it is still unable to find the
necessary DLLs in the system directories. The msxml6.dll and
msxml6r.dll are present in both the system32 and SysWOW64 directories,
and the application works fine in a 32bit environment.
well at this point moving to system.xml is not an option because all
of our stylesheets aren't compliant. that is the eventual plan, but
at this time we need to continue with MSXML 4 or 6.

May 7 '07 #3
On May 7, 7:21 am, mrja...@gmail.com wrote:
On May 5, 4:17 am, "Joe Fawcett" <joefawc...@newsgroup.nospamwrote:
I've no idea but using msxml in .NET is deprecated at best, why not use the
in-built classes?
--
Joe Fawcett (MVP - XML)http://joe.fawcett.name
<mrja...@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
>I have a C# web application which leverages MSXML that I am trying to
migrate to a 64 bit environment. Currently the application is built
on the .NET 2.0 Framework and using MSXML 6 (though I had the same
issues using version 4). The OS I am running the app on is Windows
Server 2003 x64. I am using the x64 version of MSXML 6 on the
server. My dev environment is Windows XP 32 bit SP2. I have tried to
compile the projects for "anycpu" and "x64" with the same results.
The Interop.MSXML2.dll was generated by my dev environment
automatically when I added the MSXML 6 reference to my project.
Essentially whenever the program tries to instantiate a
FreeThreadedDOMDocument40, it throws an exception with the message,
"Object reference not set to instance of an object". I have tried to
use MSXML 4 and 6 (both are installed on the server) with the same
results. The line of code is:
cXMLDOM = new FreeThreadedDOMDocument40Class();
The program seems to be able to find the Interop.MSXML2.dll (I used
FuselogVW.exe to confirm it), but it is still unable to find the
necessary DLLs in the system directories. The msxml6.dll and
msxml6r.dll are present in both the system32 and SysWOW64 directories,
and the application works fine in a 32bit environment.

well at this point moving to system.xml is not an option because all
of our stylesheets aren't compliant. that is the eventual plan, but
at this time we need to continue with MSXML 4 or 6.
- don't use MSXML in multi-threaded code. You may need to use
FreeThreadedDOMDocument. Make sure to stress test before release.
The MSXML/CLR interop issues are likely to only show up under stress/
high-load.

- It has been ages since I played with this, but if I remember
correctly, the best bet is to use tlbimp.exe to generate an interop
assembly against the MSXML interfaces. The CoCreate
MSXML6.DOMDocument (or whatever you need) and cast as the generated
interop classes.... YMMV

-derek

May 8 '07 #4
I know its not what you want to hear, but managed interop with MSXML has
never been supported by the team, or ever recommended as a possible
solution.

<mr*****@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
>I have a C# web application which leverages MSXML that I am trying to
migrate to a 64 bit environment. Currently the application is built
on the .NET 2.0 Framework and using MSXML 6 (though I had the same
issues using version 4). The OS I am running the app on is Windows
Server 2003 x64. I am using the x64 version of MSXML 6 on the
server. My dev environment is Windows XP 32 bit SP2. I have tried to
compile the projects for "anycpu" and "x64" with the same results.
The Interop.MSXML2.dll was generated by my dev environment
automatically when I added the MSXML 6 reference to my project.

Essentially whenever the program tries to instantiate a
FreeThreadedDOMDocument40, it throws an exception with the message,
"Object reference not set to instance of an object". I have tried to
use MSXML 4 and 6 (both are installed on the server) with the same
results. The line of code is:

cXMLDOM = new FreeThreadedDOMDocument40Class();

The program seems to be able to find the Interop.MSXML2.dll (I used
FuselogVW.exe to confirm it), but it is still unable to find the
necessary DLLs in the system directories. The msxml6.dll and
msxml6r.dll are present in both the system32 and SysWOW64 directories,
and the application works fine in a 32bit environment.

May 8 '07 #5

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

Similar topics

6
by: Jain, Pranay Kumar | last post by:
Hi All, We have created a simple application that takes a dataset and generates the data in Excel schema format. It uses an xslt file to do the transformation for excel 2002 and so on. We are...
19
by: Mark Miller | last post by:
QUESTION: Does anyone know how I can use v2.6 of the MSXML parser with .NET? BACKGROUND: I "Web to Print" process that allows our clients (newspapers) to export their data and pass it thru a...
6
by: Alfred Taylor | last post by:
I'm having performance/memory problems using .NET's XslTransform class so I thought I'd give the MSXML object's a whirl. The question I haven't been able to find in these groups is can I use C#...
3
by: Daniel | last post by:
Are the differences between MSXML and .Net XSL transformation documented online anywhere? Many of my XSL's work in MSXML but transform differently in ..Net XSL transformation.
4
by: K | last post by:
I've an XML file in UTF-8. It contains some chinese characters ( both simplified chinese and traditional chinese). In loading the XML file with MSXML parser, I used the below code to retrieve...
0
by: MLH | last post by:
In the following code snippet, notice ("PIN=1234567890&MSSG=Here+is+a+short+message+-+no+spaces+-+just+plusses&Q1=0") I have it that way because I thought PLUSes were required and that spaces...
3
by: Sharon | last post by:
How can I find what MSXML version I have installed? -- Thanks Sharon
13
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.