473,383 Members | 1,864 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,383 software developers and data experts.

Access Denied to access db with asp.net

Ros

First of all, I'm new in asp.net.
I'm trying to perfom a web application with asp.net and beginning with this
I'm trying to access to an access db, but when I try my web form, exactly
when I push the button that executes the sql code to access the db, I
received an error message like this: "access denied to the access database,
it can be because the database is open in exclusive mode or you don't have
enough permissions".

The db is in a directory with permissions for read and write for the
administrator and the guest Internet user among others more.

I've analized the conection string, with oledb, and the user put in this
string is "admin", and mode "share"

Should I change this user admin for the guest Internet user, for example?

What is the right thing to do for the conection were successful?

Thank you in advance.


Feb 17 '06 #1
3 1094
Ros@
I have posted a workaround for it at in my
blog:-http://spaces.msn.com/naijacoder/
Hope that Helps
Patrick


*** Sent via Developersdex http://www.developersdex.com ***
Feb 17 '06 #2
On Tue, 14 Feb 2006 17:16:24 GMT, "Ros@" <my*****@teleline.es> wrote:

¤
¤ First of all, I'm new in asp.net.
¤ I'm trying to perfom a web application with asp.net and beginning with this
¤ I'm trying to access to an access db, but when I try my web form, exactly
¤ when I push the button that executes the sql code to access the db, I
¤ received an error message like this: "access denied to the access database,
¤ it can be because the database is open in exclusive mode or you don't have
¤ enough permissions".
¤
¤ The db is in a directory with permissions for read and write for the
¤ administrator and the guest Internet user among others more.
¤
¤ I've analized the conection string, with oledb, and the user put in this
¤ string is "admin", and mode "share"
¤
¤ Should I change this user admin for the guest Internet user, for example?
¤
¤ What is the right thing to do for the conection were successful?
¤

See the following MS KB article:

PRB: Cannot connect to Access database from ASP.NET
http://support.microsoft.com/default...b;en-us;316675
Paul
~~~~
Microsoft MVP (Visual Basic)
Feb 17 '06 #3
Ros

Thank you at all, it worked.

"Ros@" <my*****@teleline.es> escribió en el mensaje
news:If*********************@telenews.teleline.es. ..


First of all, I'm new in asp.net.
I'm trying to perfom a web application with asp.net and beginning with
this I'm trying to access to an access db, but when I try my web form,
exactly when I push the button that executes the sql code to access the
db, I received an error message like this: "access denied to the access
database, it can be because the database is open in exclusive mode or you
don't have enough permissions".

The db is in a directory with permissions for read and write for the
administrator and the guest Internet user among others more.

I've analized the conection string, with oledb, and the user put in this
string is "admin", and mode "share"

Should I change this user admin for the guest Internet user, for example?

What is the right thing to do for the conection were successful?

Thank you in advance.



Feb 22 '06 #4

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

Similar topics

2
by: calfdog | last post by:
Hello, Does anyone know a workaround for calling fireEvent. With the latest from Microsoft OS XP2 and Hot fixes to IE it now gives an "access denied" error in Python when called. Here is what...
0
by: Steve | last post by:
Hi, Yesterday I signed up for another dedicated linux server with the hosting company I use and I am having problems getting MySQL 4.1.3 working on it. I've tried just about everything I can...
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
16
by: Brad | last post by:
After compiling my asp.net project I'm receiving a "BC31011 - Access is denied" error when attempting to run or debug. The only thing that seems to resolve problem is IISReset. After a reset my...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
8
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.