Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OleDbConnection causes Application_End

1 view
Skip to first unread message

Rivera@discussions.microsoft.com Rashad Rivera

unread,
Mar 7, 2005, 9:33:04 PM3/7/05
to
I am having a problem in where creating a OleDbConnection is causing my
ASP.NET application to end prematurely. The thing that is most puzzling is
that there is no error thrown during the process. So I really don't have any
clue as to why it is failing. I am not calling a Response.Redirect or
anything like that. Can someone please help me with this issue? Thank you.

Paul Clement

unread,
Mar 10, 2005, 10:46:37 AM3/10/05
to
On Tue, 8 Mar 2005 17:29:02 -0800, "Rashad Rivera" <Rashad...@discussions.microsoft.com> wrote:

¤ Is anyone monitoring this blog?
¤

Blog?

In any event, what kind of database are you attempting to connect to? Could you post a code example
and identify the code that executes before the web application ends?


Paul
~~~~
Microsoft MVP (Visual Basic)

Erik

unread,
Oct 21, 2009, 7:20:18 AM10/21/09
to
Just ran into this one myself. The following scenario will cause it:

1. Use a Microsoft Access database
2. Put the database in the bin folder or lower
3. Operate in "Debug" mode

What happens is that each time you open a connection to the access database, its file modification timestamp is updated. ASP.NET sees this and restarts the application, thinking that a dll has been updated. This not only causes the application_end, but also restarts the sessions.


From http://www.developmentnow.com/g/22_2005_3_0_0_191693/OleDbConnection-causes-Application-End.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/

Mary Chipman [MSFT]

unread,
Oct 21, 2009, 11:35:26 AM10/21/09
to
What is the question? Is it only in debug mode? Access/Jet is not
recommended for ASP.NET applications in general, it is mainly a file
server database. You might want to consider SQL Express or SQL Server
for your ASP.NET app. However, if that is not an option, I'd search on
the string "Access and ASP.NET" -- there are a lot of resources out
there, perhaps it is simply a matter of coding your ASP.NET app a
little differently.

--Mary

On Wed, 21 Oct 2009 11:20:18 GMT, Erik<nos...@developmentnow.com>
wrote:

0 new messages