Groups | Blog | Home
all groups > dotnet xml > july 2004 >

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



ronald NO[at]SPAM calleva.com
7/19/2004 3:34:49 PM
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=en&lr=&ie=UTF-8&frame=right&th=7c5bf0153afe919f&seekm=eYvkynu2BHA.2744%40tkmsftngp04#link1
From following search in case of problem with above link
http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&q=compile+error+xsltransform.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 ronald@calleva.com get lots of spam and I use it for testing spam
filters
so please email me on
Oleg Tkachenko [MVP]
7/20/2004 9:56:21 AM
[quoted text, click to view]

Post some minimal repro.

--
Oleg Tkachenko [XML MVP]
AddThis Social Bookmark Button