0
Reply

File .mdf is on a network path that is not supported...

Ask a question
Anna Hawks

Anna Hawks

16y
9.1k
1
I have moved a revised VS2005 ASP.NET 2.0 project back to a server to debug and test. It uses Windows Authorization and is trying to access that DB (aspnetdb.mdf) when it debugs, but I get the following error:
The file "[path] aspnetdb.mdf" is on a network path that is not supported for database files. An attempt to attach an auto-named database for file [path]App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
I have tried deleting the file and running it and I get the following error as it tries to recreate it:
An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 5110 and the SqlException message is: The file "[path] \APP_DATA\ASPNETDB_TMP.MDF" is on a network path that is not supported for database files.CREATE DATABASE failed. Some file names listed could not be created. Check related errors.Creating the ASPNETDB_d4d7ab4c2d8948c499a399b584d08a23 database...
I cannot figure out how to get this to create and/or use the membership database.

Thanks in advance for any help.