ApplicationException: Error in the application in SqlConnection.Open()

  • Thread starter Thread starter Jan Obrestad
  • Start date Start date
J

Jan Obrestad

Hello.
I'm developing an application where suddenly I get this rather generic
error, it is an ApplicationException with the message: "Error in the
application".
The problem is that it originates deep inside the .NET Framework.
Here is (part of) the stack trace:

System.ApplicationException: Error in the application.
at System.Threading.TimerBase.AddTimerNative(Object state, UInt32
dueTime, UInt32 period, StackCrawlMark& stackMark)
at System.Threading.TimerBase.AddTimer(TimerCallback callback,
Object state, UInt32 dueTime, UInt32 period, StackCrawlMark& stackMark)
at System.Threading.Timer..ctor(TimerCallback callback, Object
state, Int32 dueTime, Int32 period)
at System.Data.ProviderBase.DbConnectionPool.Startup()
at
System.Data.ProviderBase.DbConnectionPoolGroup.GetConnectionPool(DbConnectionFactory
connectionFactory)
at
System.Data.ProviderBase.DbConnectionFactory.GetConnectionPool(DbConnection
owningObject, DbConnectionPoolGroup connectionPoolGroup)
at
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection
owningConnection)
at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()

Does anybody have any idea what might be the problem here?

Jan Obrestad
 
I think you're going to have to put some exception handling in your
code and debug it yourself. It's almost impossible to divine what's
going on just from reading a stack trace.

-mary
 
Back
Top