What is Parse Error ?

 Posted by Chvrsri on 2/24/2012 | Category: C# Interview questions | Views: 2115 | Points: 40

It is just a syntactical error in our ASPX page. It generally happens when our page is unreadable for the part of ASP.NET which transforms our code into an executable code.


Dim xmlDoc As New Msxml2.DOMDocument30
Dim myErr As IXMLDOMParseError
xmlDoc.async = False
xmlDoc.Load App.Path & "\lyrics.xml"
If (xmlDoc.parseError.errorCode <> 0) Then
Dim myErr
Set myErr = xmlDoc.parseError
MsgBox("Error Occured" & myErr.reason)
Set myErr = xmlDoc.parseError
If (myErr.errorCode <> 0) Then
MsgBox ("Error Occured " & myErr.reason)
End If
End If

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response