Visual Studio 2010 - cannot create local database

DPCOLE72

Junior Member
Using Parallels 8 and WinXP for the guest OS, I get the following error:

"The file "\\psf\home\documents\visual studio 2010\Projects\Checkbook\Checkbook\bin\Debug\checkbook.mdf" is on a network path that is not supported for database files.
An attempt to attach an auto-named database for file \\psf\home\documents\visual studio 2010\Projects\Checkbook\Checkbook\bin\Debug\checkbook.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."

I removed certain ID information from the paths...

When setting up the DB, I used a Windows-centric path:

"C:\VS2010\checkbook\checkbook.mdb"

When it imports the db into the project, it moves that database to the new location (the UNC path to my Documents folder), giving me a stroke in the process.

The VM's HDD is dynamic in size so it can increase.

is there any way to trick Windows in the VM to see the UNC as a local drive or am I SOL?

Thanks!
 
Using Parallels 8 and WinXP for the guest OS, I get the following error:

"The file "\\psf\home\documents\visual studio 2010\Projects\Checkbook\Checkbook\bin\Debug\checkbook.mdf" is on a network path that is not supported for database files.
An attempt to attach an auto-named database for file \\psf\home\documents\visual studio 2010\Projects\Checkbook\Checkbook\bin\Debug\checkbook.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."

I removed certain ID information from the paths...

When setting up the DB, I used a Windows-centric path:

"C:\VS2010\checkbook\checkbook.mdb"

When it imports the db into the project, it moves that database to the new location (the UNC path to my Documents folder), giving me a stroke in the process.

The VM's HDD is dynamic in size so it can increase.

is there any way to trick Windows in the VM to see the UNC as a local drive or am I SOL?

Thanks!


Oops!

Figured it out - I disabled "share documents"... :facepalm:
 
This totally worked, thank you.
As DPCOLE72 stated, you'll need to disable "Share Documents" within the Parallels software under "Configure.."
I restarted the VM, and bam, I was able to continue developing in VS 2010.
Keep in mind this will remove the previous shared folders within the Windows environment and make them inaccessible.

Screen Shot 2016-01-04 at 5.25.39 PM.png
 
Back
Top