G
Guest
Hi,
I wonder if someone could shed some light on this one for me.
I have developed a web app in VS2005 with the built in server. It uses an
sql database, everytihng works.
I need to test it across the network, so i've installed IIS7 on my Vista
machine and created a new website, point at the website's directory. After I
switched to the 'Classic .net' app pool, it shows up on the port.
However, the SQLExpress database is giving me an error...
"An attempt to attach an auto-named database for file ...\thepoint.mdf
failed. A database with the same name exists, or specified file cannot be
opened, or it is located on UNC share."
The file in question exists, and the whole website directory has Everyone
Full Control permissions, with permission inheritance on, so that should be
fine.
The Visual Studio isntance of this isnt running (im not running visual
studio, the development server, or anything).
My web.config specifies the |DataDirectory|, and my file is in App_Data - in
fact, the database works fine when I run it through VS/Dev Server for
debugging, but it fails on IIS7.
What's going on?!! (and yes, my connection string does specify User
Instance=True.
Any help much appreciated.
Thanks
Dan
I wonder if someone could shed some light on this one for me.
I have developed a web app in VS2005 with the built in server. It uses an
sql database, everytihng works.
I need to test it across the network, so i've installed IIS7 on my Vista
machine and created a new website, point at the website's directory. After I
switched to the 'Classic .net' app pool, it shows up on the port.
However, the SQLExpress database is giving me an error...
"An attempt to attach an auto-named database for file ...\thepoint.mdf
failed. A database with the same name exists, or specified file cannot be
opened, or it is located on UNC share."
The file in question exists, and the whole website directory has Everyone
Full Control permissions, with permission inheritance on, so that should be
fine.
The Visual Studio isntance of this isnt running (im not running visual
studio, the development server, or anything).
My web.config specifies the |DataDirectory|, and my file is in App_Data - in
fact, the database works fine when I run it through VS/Dev Server for
debugging, but it fails on IIS7.
What's going on?!! (and yes, my connection string does specify User
Instance=True.
Any help much appreciated.
Thanks
Dan