System.Threading.ThreadAbortException

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)
 
P

parez

Hi,

What about the parent thread that excutes the following code?

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top