473,762 Members | 4,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.coed u.usf.edu

May 20 '07 #1
5 2176
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*********@ch arter.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.coed u.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******@fitzm e.comwrote in message
news:OR******** ******@TK2MSFTN GP03.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*********@ch arter.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.coed u.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.comwrot e in message
news:%2******** *******@TK2MSFT NGP02.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******@fitzm e.comwrote in message
news:OR******** ******@TK2MSFTN GP03.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*********@ch arter.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.coed u.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******@fitzm e.comwrote in message
news:ed******** ******@TK2MSFTN GP03.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.comwrot e in message
news:%2******** *******@TK2MSFT NGP02.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******@fitzm e.comwrote in message
news:OR******* *******@TK2MSFT NGP03.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*********@ch arter.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.coed u.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*********@ch arter.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.coed u.usf.edu

May 21 '07 #6

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

Similar topics

3
4319
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 geographical locations. I have been completely unsucessful in acheiving this goal so far however. Things I have tried: Create a shortcut to ftp sight via browser then tried to map local drive to
5
2585
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 block some one importing my tables using Access database? Thanks
4
1974
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
7903
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 object Set db = Server.CreateObject("ADODB.Connection") 'specify the database provider
3
2467
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 exception . Does anyone know why this may be? The database has only two small tables and I am just trying to access the first table. I have already enabled Remote connections on my system. private void GetData() { // Specify a connection string.
5
2265
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 Application called "Lesson18b" under "C:\Inetpub\wwwroot\Lesson18b". 2) I have one Web Form on this Lesson called "Form18b.aspx" 3) In this same Folder under Inetpub I have the Microsoft NorthWinds
5
6456
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, updating or deleting at this point). The Intranet itself has been created in ASP.NET, using Microsoft Visual Web Developer 2005. My concern is that we will encounter a slow response when pulling data from this Access database across the network...
3
1325
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 invalid or no longer set". Whilst the exe file is in a diferent folder to that of the source, I have made sure I give the full path names to all files I access. Has anyone else had this problem and got any ideas how to fix it. The crash always...
3
5644
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. -------------------------------------------------------------------------------- Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the...
3
1882
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 problem). When we go to start up the project from within the VS environment there are several build errors relating to an inability to find the ADOX library. I can't remember without hours of reorientation and checking back whether this was a...
0
9378
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
10137
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...
1
9927
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8814
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
7360
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
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3914
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
3510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
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.