Can't get access to a Microsoft Access data base from a bind control in Web Form

H

Hans Östlund

I use the vb.net. When I try to bind a control (any) in a Web Form, I always
get the following error message:

[OleDbException (0x80004005): Det går inte att öppna filen
'C:\Inetpub\wwwroot\retbas.mdb'.Den är antingen låst av annan användare
eller måste du ha behörighet att läsa den.]Translated into english it would
be something like: "Impossible to open the file
'C:\Inetpub\wwwroot\retbas.mdb'.It is locked by another user or you must
have the authority to read it.I'm following the Microsoft example
at:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/ht
ml/vbtskdatabindingmulti-recordcontrols.asp- I am the administrator- There
is no password for the database- Everything work well in Windows
FormsPlease, I would be greatful if you can help me!
 
A

Alessandro Zifiglio

Right click on your .mdb file and in your security tab give it full
read/write privileges.

Another possible reason is because you have this file open in access, close
it and try again.
 

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top