Home All Groups Group Topic Archive Search About

"Unable to open the physical file" error

Author
30 Apr 2006 4:56 PM
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.

Author
1 May 2006 12:22 AM
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.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

Show quoteHide quote
"phil" <sdf***@sdcs.dc> wrote in message
news:%23nUTUdHbGHA.2504@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_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.
>
>
Are all your drivers up to date? click for free checkup

Author
1 May 2006 9:56 AM
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).


Show quoteHide quote
"Christopher Reed" <carttu@nospam.nospam> schreef in bericht
news:Oa$0XVLbGHA.3376@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" <sdf***@sdcs.dc> wrote in message
> news:%23nUTUdHbGHA.2504@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_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.
>>
>>
>
>

Bookmark and Share