Re: MS Access can't open file

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You need to give the account your website is running as (it could be
IIS_User or ASPNET depending on whether you have an Identity Impersonate tag
in your web.config file or not) read and write permissions to the folder
that your database is in. To do so navigate to that folder, right click on
it and click properties. If you don't see a "Security" tab in the properties
window for that folder you'll need to reveal it (It's hidden by default on
Windows XP). To reveal the security tab in a folder browsing window click
Tools - Folder Options and then click on the "View" tab. at the very bottom
of the Advanced settings list uncheck "Use simple file sharing"

Then when you right click a folder and choose properties you'll see a
"Security" tab where you may set the permissions.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"semesm22" <sampoetmoh2@xxxxxxxxx> wrote in message
news:OyN2EF0$FHA.4036@xxxxxxxxxxxxxxxxxxxxxxx
> hello all, i am using asp.net with IIS on a Windows XP machine to open
> an Access database, and i know that this topic has been posted on forums
> hundreds of times, but i can't find an answer that works..
>
> here is the problem, i m opening the database with OleDBConnenction and
> OleDbCommand...but i get this error:
>
> The Microsoft Jet database engine cannot open the file
> 'C:\Database\database.mdb'. It is already opened exclusively by another
> user, or you need permission to view its data.
>
> HOWEVER, when i put the database in D:\Database, it works just
> fine.....i researched the forums to find an answer, i even found a topic
> on MSDN, but that related to server based IIS, and not WIN XP, it was
> talking about permissions to everyone, which is something not found on
> WIN XP....the problem is that i am doing this for a college assignment,
> and i need to hand in the database in the same folder that contains my
> web forms and web.config and all that.....i tried to use
> Server.MapPath("..\Database\Database.mdb"), but that also didn't
> work....can anyone help please...
>
> thanks
>
> --
> Sent via .NET Newsgroups
> http://www.dotnetnewsgroups.com


.



Relevant Pages

  • Re: Merge /Update Macro
    ... Located in the Same folder. ... contents in the merged database, by deleting all the entries having the ... location code and replace with contents from Database tab from the submission. ... You say you want the data from the 53rd tab of each monthly report "merged" ...
    (microsoft.public.excel.misc)
  • RE: How to Disable Black Screen w/ White Text????
    ... Under General Tab clear your History, Internet Files and Cookies. ... Then click on Advanced tab and scroll down to under the Browsing Option: ... Show window contents while dragging ... Display Simple folder view in Explorer's Folders list and close the ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: Cannot change desktop background
    ... to browse for a custom selection. ... Then click on Advanced tab and scroll down to under the Browsing Option: ... Show window contents while dragging ... Display Simple folder view in Explorer's Folders list and close the ...
    (microsoft.public.windowsxp.newusers)
  • Re: Switchboard is read only
    ... Do you have modify permissions on the folder where the mdb ... You should also split the database; ... server, and give each user a copy of the frontend on their computers. ... the I get a larger window with explanation to which I ...
    (microsoft.public.access.security)
  • RE: Bar goes white on mouseover
    ... On the Desktop Items click on Web Tab and be sure all boxes unchecked there. ... Show window contents while dragging ... In the Control Panel click Tools>> Folder Options then click on View under ... Folder Options window and Reboot your computer. ...
    (microsoft.public.windowsxp.newusers)