|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
"Unable to open the physical file" errorHi,
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. 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. -- Show quoteHide quoteChristopher 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. > > 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. >> >> > >
Other interesting topics
Failed to load viewstate
System.Web.HttpException FindContol exception Automatic <%@Register of Web User Controls in a Project? Disabling certain url's in a menu? Listbox Flicker Using hyperlink control for downloading detailsView DeleteCommand Setting control focus on roundtrip paging using repeater control TableCell: BackColor Property But No BackGround Property? |
|||||||||||||||||||||||