Export to Excel strange Thread Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using an article "http://www.dotnetjohn.com/articles.aspx?articleid=36"
to create an exported excel doucment, it works great expect when I placed an
reponse.write catch error on his try/catch I get this:

Catch Exc As Exception
Response.Write("Error: " & Exc.Message & "<br>")

"Error: Thread was being aborted."

But the excel document looks fine.

does anyone know what it means? I'm running the app on a Win2003 server, my
client is IE6.0 with Office 2003.

Thanx.
 
Hi Chris,

This error happen when you redirect to another page, if you did that yon can
ignore that error for logging purpose.


Catch Exc As System.Threadhing.ThreadAbortException
' redirect no log
Catch Exc As Exception
Response.Write("Error: " & Exc.Message & "<br>")
 
thanx, I wonder what the purpose is for throwing the error is reaching page
via redirect. That's what I did. Oh, well, I'm sure there is a logical
reason. Thanx again.
 

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

Back
Top