Page 1 of 1

Server did not respond within the specified timeout interval

Posted: Wed 25 Jul 2012 14:00
by Chetanrpawar
Hello,

I am getting below error when I tried to execute query using entity framework.

Message: Server did not respond within the specified timeout interval

Stack Trace: at Devart.Data.Oracle.a3.a(z A_0, ai A_1)
at Devart.Data.Oracle.OracleInternalConnection..ctor(z connectionOptions, OracleInternalConnection proxyConnection)
at Devart.Data.Oracle.cs.a(k A_0, Object A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionFactory.a(DbConnectionPool A_0, k A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionPool.a(DbConnectionBase A_0)
at Devart.Common.DbConnectionPool.GetObject(DbConnectionBase owningConnection)
at Devart.Common.DbConnectionFactory.a(DbConnectionBase A_0)
at Devart.Common.DbConnectionClosed.Open(DbConnectionBase outerConnection)
at Devart.Common.DbConnectionBase.Open()
at Devart.Data.Oracle.OracleConnection.Open()
at Platform.DataAccess.RFConnection.Open()


Please help with solution you have.

Thanks,
Chetan

Re: Server did not respond within the specified timeout interval

Posted: Fri 27 Jul 2012 11:32
by Shalex
The error says that your Oracle server is not available. Try your connection string with another tool - is connection established successfully in this case?

Re: Server did not respond within the specified timeout interval

Posted: Fri 27 Jul 2012 12:33
by Chetanrpawar
When I update the edmx file with from database, It works fine. I was able to update or add entities. But when I used context to call database, It is throwing this error.
Even in visual studio, using database explorer, I can connect to database.

Re: Server did not respond within the specified timeout interval

Posted: Fri 27 Jul 2012 14:50
by Shalex
1. If your query takes much time, try adding the "Default Command Timeout=0;" parameter to your connection string.
2. Turn on dbMonitor and make sure that Entity Framework uses a correct connection string.
Download link: http://www.devart.com/dbmonitor/dbmon3.exe
Documentation: http://www.devart.com/dotconnect/oracle ... nitor.html

Re: Server did not respond within the specified timeout interval

Posted: Sat 28 Jul 2012 08:59
by Chetanrpawar
Command timeout solution doesn't work.
Using DMonitor, framework using correct connection string.

Re: Server did not respond within the specified timeout interval

Posted: Mon 30 Jul 2012 14:53
by Shalex
Chetanrpawar wrote:Using DMonitor, framework using correct connection string.
1. Find out with dbMonitor if this error occurs on opening a connection or on executing some query?
2. Do any LINQ to Entities queries generate this error with your model?
3. Please copy the connection string from DbMonitor and try to open a plain ADO.NET connection (OracleConnection.Open()) in your code with this connection string. Is it opened successfully?