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

Changing machine gives XslTransform error (ArithmeticException in mscorlib.dll followed by XsltCompileException in system.xml.dll)

I just wrote some code on a dev machine,
Imports System.Xml
Imports System.Xml.XPath
Imports System.Xml.Xsl
Imports System.IO
Imports System.Data.SqlClient
Public Class ClassXMLtoHTML

Dim myXslTransform As XslTransform
Sub New(ByVal strXSL As String)
Me.myXslTransform = New XslTransform
myXslTransform.Load(strXSL)'throws error on live machine
End Sub
and when I put it live I got the following exceptions.

A first chance exception of type 'System.ArithmeticException' occurred
in mscorlib.dll

Additional information: Overflow or underflow in the arithmetic
operation.

A first chance exception of type 'System.Xml.Xsl.XsltCompileException'
occurred in system.xml.dll

? Err.Description
"file://wb1/wwwroot/templates/templatesuk/devonpurchasing/menu.xsl(3,2)
:

See the following google thread for an identical problem with COM
Interop
http://groups.google.co.uk/groups?hl...sftngp04#link1
From following search in case of problem with above link
http://groups.google.co.uk/groups?hl....load+overflow

The (3,2) in the Error Description refers to the 'x' in <xsl:template
match="/"> line in the xsl document. The line and char position
change if you add or remove lines or characters from the xsl.

Any ideas as to the cause of the error/difference between the machines
much appreciated. The live machine is running the complete app 7x24
and this is one of about 40 classes so there is plenty of code that is
working fine and otherwise the live machine has no problems????

Regards -- Ronald
PS ro****@calleva.com get lots of spam and I use it for testing spam
filters
so please email me on
ronald dot duncan at software dot plc dot uk
Nov 12 '05 #1
1 2088
Ronald wrote:
A first chance exception of type 'System.ArithmeticException' occurred
in mscorlib.dll

Additional information: Overflow or underflow in the arithmetic
operation.

A first chance exception of type 'System.Xml.Xsl.XsltCompileException'
occurred in system.xml.dll


Post some minimal repro.

--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
Nov 12 '05 #2

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

Similar topics

1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
2
by: Softer | last post by:
Hi I have been installed Longhorn, alfa version from PDC 2003. I tryed to install Visual Studio 8.0 "Whidbey", version Beta March 2004, under Longhorn and doesen't work. : I instaled Whidbey under...
1
by: Yuriy | last post by:
Hi, Can anybody explain the following? Say I have the following source XML and XSLT (see below). No matter what this XSLT does. It is just a sample to show a problem. the idea is that XSLT...
8
by: | last post by:
Wel, I am rebuilding the VC# 2002 project that I have deployment problems with the 2003 version, hoping this solves the problems, but now I encounter this wierd bug??? If I have the project, and...
7
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with...
2
by: Ilkka | last post by:
I have created an C++ application with Windows Forms, ADO and SQL server 2005. Now I need to change something and started debugging the code. Then suddenly I receive an error. "An unhandled...
7
pod
by: pod | last post by:
Hello My OS is Windows2000 I am new to .NET I developed a C# Windows Application that connects to a MS Access database on the network using proper UNC format. It works perfectly on my...
8
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
4
Fr33dan
by: Fr33dan | last post by:
Hi, I'm having trouble with a multi-threaded program crashing on a specific machine when the worker thread is not initialized at when the _FormClosing method of my main form called. Here is my...
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: 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:
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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...

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.