System.XML.Linq reference in Framework 2.0

poncianux

Member
Joined
Jun 12, 2011
Messages
5
Location
Coyoacán, Distrito Federal, Mexico, Mexico
Programming Experience
1-3
Due to most of the computers uses Windows XP or a non updated framework, as developer sometimes you need to use the most common tools, but what happens when the common tools doesn't have what you want?
That's exactly what happens to me now with the reference 'System.XML.Linq' I need that reference in Framework 2.0, the reason why I need this is just because when my application can't handle an exception automatically trigger an event to send an email with the error's detail but to compose that email I need XML so what can I do?

here are the functions:
VB.NET:
Private Function CreateExceptionText(ByVal ex As Exception) As String            
 Return <p>
                       <pre>
 ----------------------------------------------------------------
 An Error has occurred in <%= My.Application.Info.AssemblyName %>
 ----------------------------------------------------------------
 <%= FormatException(ex) %>
                      </pre>
                      <img src='cid:SCREENSHOT'/>
                      </p>.ToString
End Function
Private Function FormatException(ByVal ex As Exception) As String
            If ex Is Nothing Then
                Return ""
            Else
                Return <pre><%= ex.ToString %>
 ----------------------------------------------------------------
 <%= FormatException(ex.InnerException) %>
                       </pre>.Value
            End If
        End Function

Bytheway it sends a screenshot by email
 
'System.XML.Linq' I need that reference in Framework 2.0
That is not possible because it is a .Net 3.5 assembly.
 
Use ordinary string operations to create the message string.
 
Back
Top