Ok, hopefully someone can help me out on this because it doesn't make any sense to me.
I am writing a Windows application that goes out and hits a Database server and if the database server can not be located, I need to handle the exception (obviously).
So I tested my code first with the correct connection string and everything worked as necessary then I adjusted the connection string to contain an invalid server name so that a SqlException would be thrown. For some weird reason the exception is not being thrown inside my application to where the Catch statement picks up and continues processing.
If I look in my Output window I can see that the runtime detected a First Chance Exception of SqlClient.SqlException but, again, my catch statement is never evaluated.
I also tried to explicitly throw an error as well as divide by Zero and, in both cases, the Output Window saw the errors but my catch statements were not evaluated nor was a message sent back to the user.
Any ideas??
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
__________________
===============================================
Doug Parsons
Wrox online library:
Wrox Books 24 x 7
Did someone here help you? Click
on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================