A
Antoine
Instead of getting SOAP header errors, I'd like to get detailed.
Aside from using file.open and creating a debug file, is there any reason it
won't send
a trace.write line ? I can otherwise send them ok but within the catch loop,
it seems to send the same sort of basic truncated message as what you get on
the "throw" result back to the page....
I was definitely using trace.write and fields e.details.outerxml etc
etc...in my other code. Just dont know why it doesnt trace.
Any help please? Any way I can avoid sending to a file as its a bit
primitive.
I am going to end up resorting to the sort of example I have created as
below.
Catch e As System.Web.Services.Protocols.SoapException
' Process the platform error here
Dim FILE_NAME As String = "c:\temp\MyFile.txt"
Dim FOLDER_NAME As String = "c:\temp"
If Not System.IO.Directory.Exists(FOLDER_NAME) Then
System.IO.Directory.CreateDirectory(FOLDER_NAME)
End If
Dim sr As StreamWriter = File.CreateText(FILE_NAME)
sr.WriteLine("This is my file.")
record = ("ErrorMessage: " + e.Message + " " + e.Detail.OuterXml
+ " Source: " + Err.Source)
sr.WriteLine(account)
sr.Close()
Throw (e)
Aside from using file.open and creating a debug file, is there any reason it
won't send
a trace.write line ? I can otherwise send them ok but within the catch loop,
it seems to send the same sort of basic truncated message as what you get on
the "throw" result back to the page....
I was definitely using trace.write and fields e.details.outerxml etc
etc...in my other code. Just dont know why it doesnt trace.
Any help please? Any way I can avoid sending to a file as its a bit
primitive.
I am going to end up resorting to the sort of example I have created as
below.
Catch e As System.Web.Services.Protocols.SoapException
' Process the platform error here
Dim FILE_NAME As String = "c:\temp\MyFile.txt"
Dim FOLDER_NAME As String = "c:\temp"
If Not System.IO.Directory.Exists(FOLDER_NAME) Then
System.IO.Directory.CreateDirectory(FOLDER_NAME)
End If
Dim sr As StreamWriter = File.CreateText(FILE_NAME)
sr.WriteLine("This is my file.")
record = ("ErrorMessage: " + e.Message + " " + e.Detail.OuterXml
+ " Source: " + Err.Source)
sr.WriteLine(account)
sr.Close()
Throw (e)