By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,846 Members | 1,680 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,846 IT Pros & Developers. It's quick & easy.

System.Threading.ThreadAbortException

P: n/a
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.ReadWithCollectText Token() 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)

Oct 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

What about the parent thread that excutes the following code?

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


ko******@gmail.com wrote:
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.ReadWithCollectText Token() 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)
Oct 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.