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