Database Connection Closed
Hello,
[InvalidOperationException: Invalid operation. The connection is closed.] Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery() +267 OpenAccessRuntime.Relational.conn.PooledPreparedStatement.executeQuery() +53 OpenAccessRuntime.Relational.fetch.FetchResultImp.execute() +60
Hello Matt,
By default the application pool goes down( going to "sleep" mode) after you reach the Idle time out of the Process model. Then, when you make a request to the website it should be re initialized.
Greetings,
Ivan Dimitrov
the Telerik team
Ivan,
Hello Matt,
We use the default OA connection settings. Currently we do not expose settings that allow you to manage OA connection pool configuration.
Best wishes,
Ivan Dimitrov
the Telerik team
Ivan,
Hi Matt,
Yes, this is an important issue. We will investigate the problem and will fix it for the official release.
Kind regards,
Vlad
the Telerik team
Hi Vlad,
seems to be still a problem in release (4.0.1141.0).
And I agree - "this is an important issue".
Kind regards
Udo
Hi Le Corbu,
Unfortunately, we didn't manage to address this problem in the official release.
Currently this is a know issue (ID: 103780), which is in process of investigation.
We can provide a temporary workaround. However it brings some overhead to the application.
1. Add Telerik.OpenAccess.Config.dll to the bin folder (in the attached zip)
2. Add the following configuration in the web.config
<
configuration
>
<
configSections
>
..
<
section
name
=
"openaccess"
type
=
"Telerik.OpenAccess.Config.ConfigSectionHandler, Telerik.OpenAccess.Config"
/>
</
configSections
>
...
<
openaccess
>
<
backendconfigurations
>
<
backendconfiguration
id
=
"mssqlConfiguration"
backend
=
"mssql"
>
<
mappingname
>mssqlMapping</
mappingname
>
<
testOnAlloc
>true</
testOnAlloc
>
</
backendconfiguration
>
</
backendconfigurations
>
</
openaccess
>
</
configuration
>
Will this be addressed in the upcoming SP1? Has happened to us twice since release:
Exception information:
Exception type: InvalidOperationException
Exception message: Invalid operation. The connection is closed.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery()
at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.executeQuery()
at OpenAccessRuntime.Relational.fetch.FetchResultImp.execute()
Thanks,
Ed Sirijintakarn
Internetiks, Inc.
How much overhead does the workaround add? This error has happened to me twice today. I'm already running in a shared hosting environment which is slow. Will it be corrected in sp1?
Hello Shawn,
We made some changes to the code, so I believe that the issue will be fixed with SP1 that should be released this week.
Greetings,
Ivan Dimitrov
the Telerik team
Do you have an estimation about when the SP1 released?
Will ticket 103780 correction be a part of this SP?
Tks,
Antonio Meireles
My website would go down once in every 2- 3 days and I get a call from my end users and it's very embarrasing to answer the question....
I upgraded the website to SP1 couple of weeks ago and after that it went down in the first couple of days but lately I haven't had any problem...
Hopefully, that problem is fixed now...
I will report back if I still have the same issue...