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

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
 
M

Mary Chipman [MSFT]

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
 

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

Top