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

An unhandled exception of type 'System.Threading.ThreadAbortException' occurred in Unknown Module.

P: n/a
Interesting problem. We have narrowed it down to the exact cause, and would
like an explanation of what's going on behind the scenes.

Simple bit of code:
OleDbConnection con = new OleDbConnection(@"data source=E:\My
Documents\Visual Studio
Projects\ThreadErrorTest\bin\Northwind.mdb;provide r=Microsoft.Jet.OLEDB.4.0"
OleDbCommand cmd = new OleDbCommand("Select * from Customers", con);
OleDbDataReader reader = cmd.ExecuteReader();
Response.Write(reader[1] + "<br>");
Notice the connection string - it points to the BIN directory. This runs
fine, but try to run it in the debugger and watch the output window. The
thread gets torn down every request, but after the results are returned.
Move the db to another directory, and it works fine.

Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.