Thanks Paul. That's one I hadn't found.
I have now enabled impersonation on my project. However, I now have a bigger
problem - the same line of code now generates "Unspecified error: An
unhandled exception occurred during the execution of the current web request."
Any ideas?
--
Dave
"Paul Clement" wrote:
[color=blue]
> On Wed, 3 Aug 2005 06:27:05 -0700, "Dave" <Dave@discussions.microsoft.com> wrote:
>
> ¤ This is my first .NET project (although I am experienced with VS6 and
> ¤ InterDev). I am simply trying to set up a basic ASPX project and connect to
> ¤ an Access database (following the instructions in the .NET Black Book by
> ¤ Templeman and Vitter). I have managed to set up an oleDbConnection, an
> ¤ oleDbAdapter and a dataset, and have added one line of code:
> ¤ oleDbDataAdapter1.Fill(dataSet1);
> ¤ However when this line of code executes I get whole page of error headed
> ¤ "The Microsoft Jet database engine cannot open the file 'C:\Documents and
> ¤ Settings\Dave\PAW Files\Databases\Friends\Friends.mdb'. It is already opened
> ¤ exclusively by another user, or you need permission to view its data."
> ¤ I am using Access 2000 SP3 and Windows XP SP2. There is no remote access,
> ¤ the web application is being served from C:\Inetpub\wwwroot by IIS5.1 (which
> ¤ I think was installed when I installed VS6/Visual Interdev).
> ¤ It's my very first attempt at .NET and I'm getting nowhere. Can somebody
> ¤ please help.
>
> 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)
>[/color]