System.Threading.ThreadAbortException

  • Thread starter Thread starter kowshikj
  • Start date Start date
K

kowshikj

In a ASP.NET 1.1 application, we get this exception at xmlDoc.Load()
when loading an XmlDocument. This does not seem to happen every time
though. The xml file itself is only 10 KB and we don't use any threads.


XmlDocument xmlDoc = new XmlDocument();
try
{
xmlDoc.Load(strXmlPath);
}

Is there a reason why this happens?

System.Threading.ThreadAbortException: Thread was being aborted. at
System.IO.Path.nGetFullPathHelper(String path, Char[] invalidPathChars,
Char[] whitespaceChars, Char directorySeparator, Char
altDirectorySeparator, Char volumeSeparator, Boolean fullCheck, String&
newPath) at System.IO.Path.GetFullPathInternal(String path) at
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String
msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path,
FileMode mode, FileAccess access, FileShare share) at
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri,
String role, Type ofObjectToReturn) at
System.Xml.XmlTextReader.CreateScanner() at
System.Xml.XmlTextReader.Init() at System.Xml.XmlTextReader.Read() at
System.Xml.XmlValidatingReader.ReadWithCollectTextToken() at
System.Xml.XmlValidatingReader.Read() at
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at
System.Xml.XmlDocument.Load(String filename)
 
Hi,

What about the parent thread that excutes the following code?

XmlDocument xmlDoc = new XmlDocument();
try
{
xmlDoc.Load(strXmlPath);
}
 
Back
Top