468,738 Members | 1,750 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,738 developers. It's quick & easy.

"Unable to open the physical file" error

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_Dat a\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.
Apr 30 '06 #1
2 5934
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.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"phil" <sd****@sdcs.dc> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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_Dat a\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.

May 1 '06 #2
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).
"Christopher Reed" <ca****@nospam.nospam> schreef in bericht
news:Oa**************@TK2MSFTNGP05.phx.gbl...
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.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"phil" <sd****@sdcs.dc> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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_Dat a\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.


May 1 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by someone | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.