in .net we have this wonderful sthing
try
'' all the code u want
catch ex as Exception
'' ex.message gives u the actual reason
end try
allong with that u can store a log of all these in the event viewer
like
Dim myLog As New EventLog()
mylog.source ="Test"
in the catch block just write every thing u want along with the ex.message.
this can be viewed in eventviewer later
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com