"Unable to open the physical file" error

P

phil

Hi,

I use aspnet 2.0 and i'm learning about data-bound controls. Sometimes, i
get this error below, but the code of the aspx page is ok because i ran it
several times.
I use indeed a .mdf file located at that place.

What's the problem and how to solve it?
Thanks
Phil

Unable to open the physical file
"D:\Inetpub\wwwroot\aspnet\Begin\Chapter07\App_Data\WroxUnited.mdf".
Operating system error 32: "32(error not found)".
An attempt to attach an auto-named database for file
D:\Inetpub\wwwroot\aspnet\Begin\Chapter07\App_Data\WroxUnited.mdf failed. A
database with the same name exists, or specified file cannot be opened, or
it is located on UNC share.
 
C

Christopher Reed

Have verified which users have rights? I believe that the ASPNET user will
need to have Modify rights. If you're not logged in as an admin, you will
need specific Modify rights as well when using the built-in VS web server.
 
B

Ben

Hi, thanks for replying.
I'm logged as administrator and user ASPNET has modify right. But sometimes
it works, sometimes i get the error (after having ran the aspx page and then
ran it again).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top