473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Accessing an Access database in ASP.Net 2.0

I have an ASP.NET 2.0 application developed in VB.net, that accesses an
Microsoft Access
database. When the database is on the same IIS server all works just
fine. BUT when it tried to access the same database on a different
server I get a permission error. I've created a shared drive on the
other server and give it permission with all rights, as well as the
Access database. BUT no matter how I set up the connection string in my
app, I can't connect to the database.

Any help??

Thanks,

John

jo***@iirp.coedu.usf.edu

May 20 '07 #1
5 2160
Which account did you grant permissions to the db? Also, what server OS are
you running?

Something else to keep in mind, you may run into a locking issue if the
other server uses the database as well. Access doesn't perform well when
multiple connections are open to it, especially if those are
update/delete/insert operations.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"John" <jo*********@charter.netwrote in message
news:wR*************@newsfe04.lga...
>I have an ASP.NET 2.0 application developed in VB.net, that accesses an
Microsoft Access
database. When the database is on the same IIS server all works just
fine. BUT when it tried to access the same database on a different
server I get a permission error. I've created a shared drive on the
other server and give it permission with all rights, as well as the
Access database. BUT no matter how I set up the connection string in my
app, I can't connect to the database.

Any help??

Thanks,

John

jo***@iirp.coedu.usf.edu

May 21 '07 #2
re:
!Access doesn't perform well when multiple connections are open to it,
!especially if those are update/delete/insert operations.

I have had Access databases perform well with 50-60 concurrent connections.
That is enough performance to permit quite busy websites.

It does take paying close attention to closing connections in a timely fashion, though.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:OR**************@TK2MSFTNGP03.phx.gbl...
Which account did you grant permissions to the db? Also, what server OS are you running?

Something else to keep in mind, you may run into a locking issue if the other server uses the
database as well. Access doesn't perform well when multiple connections are open to it, especially
if those are update/delete/insert operations.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"John" <jo*********@charter.netwrote in message news:wR*************@newsfe04.lga...
>>I have an ASP.NET 2.0 application developed in VB.net, that accesses an Microsoft Access
database. When the database is on the same IIS server all works just
fine. BUT when it tried to access the same database on a different
server I get a permission error. I've created a shared drive on the
other server and give it permission with all rights, as well as the
Access database. BUT no matter how I set up the connection string in my
app, I can't connect to the database.

Any help??

Thanks,

John

jo***@iirp.coedu.usf.edu


May 21 '07 #3
Hi Juan,
Are most of those connections performing selects or doing updates? I
haven't used Access for a web db since the 2002 version but in the classic
ASP days it there was a lot of discussion regarding how Access tended to
break down rapidly whith numerous non-select connections. I don't remember
the specifics, but I believe the selects had better management with
connection pooling and maintained decent performance.
--
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
re:
!Access doesn't perform well when multiple connections are open to it,
!especially if those are update/delete/insert operations.

I have had Access databases perform well with 50-60 concurrent
connections.
That is enough performance to permit quite busy websites.

It does take paying close attention to closing connections in a timely
fashion, though.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:OR**************@TK2MSFTNGP03.phx.gbl...
>Which account did you grant permissions to the db? Also, what server OS
are you running?

Something else to keep in mind, you may run into a locking issue if the
other server uses the database as well. Access doesn't perform well when
multiple connections are open to it, especially if those are
update/delete/insert operations.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"John" <jo*********@charter.netwrote in message
news:wR*************@newsfe04.lga...
>>>I have an ASP.NET 2.0 application developed in VB.net, that accesses an
Microsoft Access
database. When the database is on the same IIS server all works just
fine. BUT when it tried to access the same database on a different
server I get a permission error. I've created a shared drive on the
other server and give it permission with all rights, as well as the
Access database. BUT no matter how I set up the connection string in my
app, I can't connect to the database.

Any help??

Thanks,

John

jo***@iirp.coedu.usf.edu



May 21 '07 #4
Hi, Mark.

This was a few years ago and that web is not online any more.
IIRC, the ratio was about 3 selects to 1 update.

The record for max concurrent connections was a bit over 60.

re:
!I don't remember the specifics, but I believe the selects had better
!management with connection pooling and maintained decent performance.

You remember correctly.

Access choked (don't know if it still does) with over 40 or so concurrent updates,
unless close attention was placed on closing connections ASAP...and having
only one concurrent web user, which restricts its use to anonymous users
( otherwise, continuously updating the lock files produces severe file contention ).

Still, it offers quite acceptable performance for anonymous sites.
Very few websites need more than 10 concurrent page/data hits.

That scales into upwards of 50,000 page/database hits daily...which is plenty for most sites.

An even sturdier database platform, unfortunately being phased away, is FoxPro.

I did a test with it and found that FoxPro withstood upwards
of 150 concurrent connections without melting down.

The whole point is moot now, though, with SQL Server Express 2005.
It's almost as sturdy as SQL Server itself, and it's free!


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:ed**************@TK2MSFTNGP03.phx.gbl...
Hi Juan,
Are most of those connections performing selects or doing updates? I haven't used Access
for a web db since the 2002 version but in the classic ASP days it there was a lot of discussion
regarding how Access tended to break down rapidly whith numerous non-select connections. I don't
remember the specifics, but I believe the selects had better management with connection pooling
and maintained decent performance.
--
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
>re:
!Access doesn't perform well when multiple connections are open to it,
!especially if those are update/delete/insert operations.

I have had Access databases perform well with 50-60 concurrent connections.
That is enough performance to permit quite busy websites.

It does take paying close attention to closing connections in a timely fashion, though.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:OR**************@TK2MSFTNGP03.phx.gbl...
>>Which account did you grant permissions to the db? Also, what server OS are you running?

Something else to keep in mind, you may run into a locking issue if the other server uses the
database as well. Access doesn't perform well when multiple connections are open to it,
especially if those are update/delete/insert operations.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"John" <jo*********@charter.netwrote in message news:wR*************@newsfe04.lga...
I have an ASP.NET 2.0 application developed in VB.net, that accesses an Microsoft Access
database. When the database is on the same IIS server all works just
fine. BUT when it tried to access the same database on a different
server I get a permission error. I've created a shared drive on the
other server and give it permission with all rights, as well as the
Access database. BUT no matter how I set up the connection string in my
app, I can't connect to the database.

Any help??

Thanks,

John

jo***@iirp.coedu.usf.edu





May 21 '07 #5
When using anonymous authentication the windows user your ASP pages use is a
local one to the IIS server and does not have permission to access shares on
other machines. What you have to do is create a new user, with the relevant
permissions, and use that as your anonymous authentication user.

"John" <jo*********@charter.netwrote in message
news:wR*************@newsfe04.lga...
>I have an ASP.NET 2.0 application developed in VB.net, that accesses an
Microsoft Access
database. When the database is on the same IIS server all works just
fine. BUT when it tried to access the same database on a different
server I get a permission error. I've created a shared drive on the
other server and give it permission with all rights, as well as the
Access database. BUT no matter how I set up the connection string in my
app, I can't connect to the database.

Any help??

Thanks,

John

jo***@iirp.coedu.usf.edu

May 21 '07 #6

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

Similar topics

3
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different...
5
by: kai | last post by:
Hi, All I try to block some one import my Access database tables using Access database. I used password protection, but if some one crack through my password, are there any other methods to...
4
by: Eifel-benz | last post by:
How to get connection to a MS Access database? How to read from a MS Access database? How to close the connection to a MS Access database?
3
by: Russell Read [MSFT] | last post by:
Hi all, I am using VB script in ASP to access a MS Access database. This works fine until I want to access the same db placed on a file share. The code I am using is... 'create connection...
3
by: Steve Teeples | last post by:
I am writing my first database application. I am unable to even get to first base because I can't seem to access the data in the database. Each time the "Fill" command is executed I get an...
5
by: samadams_2006 | last post by:
I'm having a problem in accessing a Microsoft Access Database in a VB.NET Web Application. It's so straight forward, I thought I'd walk you through all the details here: 1) I have a .NET Web...
5
by: Stewart | last post by:
Hi there, I have an Access database, which contains the details of company staff and services. The plan is to extract data from this database onto our forthcoming Intranet (no inserting,...
3
by: watson128 | last post by:
I have a program that interrogates and modifies an Access database. When I run this program from the VB editor it runs fine. When I make the exe file and run that it crashes saying that the "Object...
3
by: Nathan Sokalski | last post by:
When I attempt to access a Microsoft Access database from my website, I recieve the following error: Server Error in '/' Application....
3
by: John Dann | last post by:
We've got a VB2005 program written some time back that we're trying to do some maintenance on still from within VB2005 but now running on a Vista Business PC (which I think may be relevant to the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.