473,802 Members | 2,431 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

access and ASP.NET

We have a small website using Visual basic and ASP.NET. We hold a database
in Access format which is opened with the following 3 lines

Dim m_dataBase As String = "Provider=Micro soft.Jet.OLEDB. 4.0; Data
Source=C:\calli dusWorld\app_da ta\webAccess.md b"
Dim myConn As New OleDbConnection (m_dataBase)
myConn.Open()

most of the time this works as expected but every now and then it seems
unable to open the database and throws an exception.

Any subsequent call continues to raises the same exception and the only
remedy so far is to reboot the server which is far from elegent.

I cannot change to another database and never had this problem with ASP - if
any one has any ideas I would be very grateful.

Many thanks in advance
Phil

The rather unhelpful message from ASP.NET is that it's an unspecified error
Unspecified error
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.Ole Db.OleDbExcepti on: Unspecified error


Aug 3 '06 #1
9 1277
What kind of operations are you performing and what is the amount of
traffic? I ask because the performance of an Access database drops
significantly as you perform update/delete/insert operations and begins to
generate errors. Even a low count of 10 concurrent users will start to
degrade the performance. Selects don't have as much trouble.

If you're using DataReaders to fetch the data, make sure that you are
closing them and releasing them as soon as you're done as a DataReader
maintains a connection to the database until the end of the resultset.

You could try using the trace functionality to see write out some debugging
information, such as what exact operations are going on at the time. That
way, it may be possible to play with it until you can get it to crash and
view a trace log.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"phil" <ph**@oakleafso ftware.co.ukwro te in message
news:eV******** ******@TK2MSFTN GP04.phx.gbl...
We have a small website using Visual basic and ASP.NET. We hold a database
in Access format which is opened with the following 3 lines

Dim m_dataBase As String = "Provider=Micro soft.Jet.OLEDB. 4.0; Data
Source=C:\calli dusWorld\app_da ta\webAccess.md b"
Dim myConn As New OleDbConnection (m_dataBase)
myConn.Open()

most of the time this works as expected but every now and then it seems
unable to open the database and throws an exception.

Any subsequent call continues to raises the same exception and the only
remedy so far is to reboot the server which is far from elegent.

I cannot change to another database and never had this problem with ASP -
if any one has any ideas I would be very grateful.

Many thanks in advance
Phil

The rather unhelpful message from ASP.NET is that it's an unspecified
error
Unspecified error
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.Ole Db.OleDbExcepti on: Unspecified error


Aug 3 '06 #2
Phil,
The best thing you can do for yourself is get rid of Access and switch to
say, SQLExpress. Since you indicated that for some reason you cannot do this,
the next step would be to make absolutely sure that all connections are
properly and promptly closed immediately after the unit of work using the
connection is complete. Access just was never designed to be a multiuser
database.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"phil" wrote:
We have a small website using Visual basic and ASP.NET. We hold a database
in Access format which is opened with the following 3 lines

Dim m_dataBase As String = "Provider=Micro soft.Jet.OLEDB. 4.0; Data
Source=C:\calli dusWorld\app_da ta\webAccess.md b"
Dim myConn As New OleDbConnection (m_dataBase)
myConn.Open()

most of the time this works as expected but every now and then it seems
unable to open the database and throws an exception.

Any subsequent call continues to raises the same exception and the only
remedy so far is to reboot the server which is far from elegent.

I cannot change to another database and never had this problem with ASP - if
any one has any ideas I would be very grateful.

Many thanks in advance
Phil

The rather unhelpful message from ASP.NET is that it's an unspecified error
Unspecified error
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.Ole Db.OleDbExcepti on: Unspecified error


Aug 3 '06 #3
I'd love to do that but I have a great big Access system with VBA and the
works all doing exactly what I need. The ASP.net is just to provide a public
display of some data - the traffic is very low and it seems overkill to
rewrite the whole thing when it was working perfectly in old ASP

Thanks for the info though
Phil

"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com wrote in message
news:EE******** *************** ***********@mic rosoft.com...
Phil,
The best thing you can do for yourself is get rid of Access and switch to
say, SQLExpress. Since you indicated that for some reason you cannot do
this,
the next step would be to make absolutely sure that all connections are
properly and promptly closed immediately after the unit of work using the
connection is complete. Access just was never designed to be a multiuser
database.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"phil" wrote:
>We have a small website using Visual basic and ASP.NET. We hold a
database
in Access format which is opened with the following 3 lines

Dim m_dataBase As String = "Provider=Micro soft.Jet.OLEDB. 4.0; Data
Source=C:\call idusWorld\app_d ata\webAccess.m db"
Dim myConn As New OleDbConnection (m_dataBase)
myConn.Open( )

most of the time this works as expected but every now and then it seems
unable to open the database and throws an exception.

Any subsequent call continues to raises the same exception and the only
remedy so far is to reboot the server which is far from elegent.

I cannot change to another database and never had this problem with ASP -
if
any one has any ideas I would be very grateful.

Many thanks in advance
Phil

The rather unhelpful message from ASP.NET is that it's an unspecified
error
Unspecified error
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.Ole Db.OleDbExcepti on: Unspecified error



Aug 3 '06 #4
I've used a session variable to 'trace' when this is being called and
hopefully next time I may get some indication as to what is going on/wrong

Seems ASP.NET is more fussy that ASP

Phil

"Mark Fitzpatrick" <ma******@fitzm e.comwrote in message
news:eM******** ******@TK2MSFTN GP03.phx.gbl...
What kind of operations are you performing and what is the amount of
traffic? I ask because the performance of an Access database drops
significantly as you perform update/delete/insert operations and begins to
generate errors. Even a low count of 10 concurrent users will start to
degrade the performance. Selects don't have as much trouble.

If you're using DataReaders to fetch the data, make sure that you are
closing them and releasing them as soon as you're done as a DataReader
maintains a connection to the database until the end of the resultset.

You could try using the trace functionality to see write out some
debugging information, such as what exact operations are going on at the
time. That way, it may be possible to play with it until you can get it to
crash and view a trace log.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"phil" <ph**@oakleafso ftware.co.ukwro te in message
news:eV******** ******@TK2MSFTN GP04.phx.gbl...
>We have a small website using Visual basic and ASP.NET. We hold a
database in Access format which is opened with the following 3 lines

Dim m_dataBase As String = "Provider=Micro soft.Jet.OLEDB. 4.0; Data
Source=C:\call idusWorld\app_d ata\webAccess.m db"
Dim myConn As New OleDbConnection (m_dataBase)
myConn.Open( )

most of the time this works as expected but every now and then it seems
unable to open the database and throws an exception.

Any subsequent call continues to raises the same exception and the only
remedy so far is to reboot the server which is far from elegent.

I cannot change to another database and never had this problem with ASP -
if any one has any ideas I would be very grateful.

Many thanks in advance
Phil

The rather unhelpful message from ASP.NET is that it's an unspecified
error
Unspecified error
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.Ole Db.OleDbExcepti on: Unspecified error



Aug 3 '06 #5
"phil" <ph**@oakleafso ftware.co.ukwro te in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
I have a great big Access system
There's the problem...
Aug 3 '06 #6
Rewrite? Is there a true business need to leave ASP? If so, fine. If not,
stay.

"phil" <ph**@oakleafso ftware.co.ukwro te in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
I'd love to do that but I have a great big Access system with VBA and the
works all doing exactly what I need. The ASP.net is just to provide a
public display of some data - the traffic is very low and it seems
overkill to rewrite the whole thing when it was working perfectly in old
ASP

Thanks for the info though
Phil

Aug 4 '06 #7
Dear Peter

thanks for the help

I found a couple of places where I was not specifically closing an
OleDbDataReader and having fixed them it now seems very stable

A word in defence of Access

In our situation where most of the system is being used in house the design
features of Access (Forms, Reports, VBA) are a delight to use. We would not
have more than 5 people on at any time.

To provide a reasonable degree of public visibility the same database works
very well in ASP and ASP.NET so long as the connection times are as low as
possible.

To test the stability I opened 100 almost simultaneous connections to the
server and each one performed perfectly and pretty quickly too.

Every time I mention Access on these newsgroups people seem to hold up a
cross and predict all manner of problems. But the reality is that for the
right site and the right application Access is superb.
Once again thanks for the help you gave - it allowed me to fix the problem

All the best
Phil

"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com wrote in message
news:EE******** *************** ***********@mic rosoft.com...
Phil,
The best thing you can do for yourself is get rid of Access and switch to
say, SQLExpress. Since you indicated that for some reason you cannot do
this,
the next step would be to make absolutely sure that all connections are
properly and promptly closed immediately after the unit of work using the
connection is complete. Access just was never designed to be a multiuser
database.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"phil" wrote:
>We have a small website using Visual basic and ASP.NET. We hold a
database
in Access format which is opened with the following 3 lines

Dim m_dataBase As String = "Provider=Micro soft.Jet.OLEDB. 4.0; Data
Source=C:\call idusWorld\app_d ata\webAccess.m db"
Dim myConn As New OleDbConnection (m_dataBase)
myConn.Open( )

most of the time this works as expected but every now and then it seems
unable to open the database and throws an exception.

Any subsequent call continues to raises the same exception and the only
remedy so far is to reboot the server which is far from elegent.

I cannot change to another database and never had this problem with ASP -
if
any one has any ideas I would be very grateful.

Many thanks in advance
Phil

The rather unhelpful message from ASP.NET is that it's an unspecified
error
Unspecified error
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.Ole Db.OleDbExcepti on: Unspecified error



Aug 7 '06 #8
No problem any more

Access is fine for the right type of application

Thanks

"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:OK******** ******@TK2MSFTN GP04.phx.gbl...
"phil" <ph**@oakleafso ftware.co.ukwro te in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
>I have a great big Access system

There's the problem...

Aug 7 '06 #9
"phil" <ph**@oakleafso ftware.co.ukwro te in message
news:uZ******** ******@TK2MSFTN GP05.phx.gbl...
Access is fine for the right type of application
It certainly is.
Aug 7 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

63
5944
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy in Visual Studio to create reports and labels as it's in Access?` The advantage of VS.net is that not every user needs Access, right? And that would eliminate the Access version problem as well I guess.
13
2957
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded. I believe a dotNet solution is better, but I'm trying to be as convincing as possible -- and maybe I'm wrong! I would appreciate any input or references which could help me.
1
4349
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an inherited base member's access level in the derived class: its access level in the base class and the type of inheritance (public, protected, or private). After this determination is made, the following possibilities exist for manually changing the...
13
13362
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages and disadvantages of both programs. Many Thanks Simon
0
2984
by: Frederick Noronha \(FN\) | last post by:
---------- Forwarded message ---------- Solutions to Everyday User Interface and Programming Problems O'Reilly Releases "Access Cookbook, Second Edition" Sebastopol, CA--Neither reference book nor tutorial, "Access Cookbook, Second Edition" (O'Reilly, US $49.95), by Ken Getz, Paul Litwin, and Andy Baron, delivers hundreds of practical examples, up-to-date suggestions, and handy solutions to real-world problems that Access users and...
20
3351
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to speed. I like books with practical exercises, and also with test questions (like cert books) *2*
64
5265
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. Any comments? Thanks
1
3350
by: com | last post by:
Extreme Web Reports 2005 - Soft30.com The wizard scans the specified MS Access database and records information such as report names, parameters and subqueries. ... www.soft30.com/download-1-11975.htm - 31k - Cached - Similar pages MDBSecure 1.0.8.0 - Soft30.com Utility which makes it easy to create secure MS Access Databases, ... MS Access 2000/2003 format. 30 day money back guarantee, 30 day trial. ...
17
4423
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting there, but is there a way they can find out if that application was put there from a CD or email or created at work? Hint: It's not on a client/server database, just native jet database mdb created on Access 2003 (default 2000)...
37
5269
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why would you even continue to use Access as a backend when you have a much superior option in SQL express? What about as a future front-end development tool? Let's get serious. Microsoft continues to publish numerous articles and videos on how you...
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10536
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10304
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9114
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.