views:

1318

answers:

6

I've installed parallels desktop on my MacBook to be able to run Visual Studio 2008 in a XP installation. Everything works great except when I decided to put my websites in my sites folder in the os x file system (Which by default automatically happens because the My Documents folder is mapped to the Mac's Documents folder, and I'd rather put my code there so that both OS's can easily access it.).

When trying to build or debug I get this error:

Failed to start monitoring changes to 'Z:\xxx...'

How do I get it so that I can get it to work under Parallels, from the shared drive?

+7  A: 

Parallels uses network drives to simulate folders on OS X, and Windows can't monitor changes to network drives, so if you do this directly, it'll be broken.

If you want to keep them in sync though, use Live Mesh (http://www.mesh.com) and install it on both the host and guest. A little roundabout, but it'll make it so both copies are maintained (and Live Mesh is handy for other things too)

Paul Betts
Ditto on the Live Mesh idea. Live Mesh is an awesome sync platform, and cross-platform to boot.
jrista
Dropbox would also do the trick.
Alcides
I vote for DropBox over Live Mush.
kenny
+1  A: 

I know this isnt strictly a solution but VMware fusion is superior when it comes to shared drive space on a virtual machine. Its what i currently use and hasn't let me down thus far...

People always give me odd looks when they see visual studio on my mac :P

RAGNO
+1 after trying both Parallels and Fusion, I also found Fusion better but not perfect for VStud.
kenny
A: 

.NET has funny issues trying to debug the objects on a network drive.

make sure that you have full trust on your local network between your Mac and XP install.

check out

http://msdn.microsoft.com/en-us/library/aa302361.aspx

If at the end of that research, I"m afraid you will have to look into the option of keeping it on the VMDisk and moving it when you need it.

I have a similar problem on my machine connected to the windows domain. my documents i s mapped to a network share and i cant debug|run|etc. I had to eventually move to my local disk for debugging.

Bluephlame
+1  A: 

Try moving the project on to the VMs C drive. Its not an ideal situation, but you can access the VMs C drive from OS X.

I have a similar problem with a php site that uses an MS Access database (its a clients system). I have alias's that point to the php site on the VM so that I can still do all of my coding in OS X. To do this I created a network share on the VM and then connected to it from OS X. Once connected make the alias's. If the network drive is not open and you open a file in OS X it will try to reconnect. It means the VM will need to be running to get to the files, but this isn't normally a problem since the VM is hosting the site anyways.

Kevin
A: 

I definately recommend Live Mesh as a way to keep directories in sync. Just keep the VM's directory in sync with the Mac's directory.

Jeffrey Hines
A: 

I recently flipped over to putting my source code onto my Mac volume, so I could use Time Machine to back it up and immediately got this same problem with my ASP.NET app. Other, procedural applications, built just fine, by the way.

I tried all sorts of things, including using Samba on the Mac side to share the directory, which led into the "too many BIOS commands" error described elsewhere. Unfortunately for me, the Registry hacks to fix that problem never worked for some reason.

I finally found another solution that avoids Samba and just uses the regular Parallels Shared Folders. It too is a Registry hack, but this one simply turns off file change monitoring for ASP.NET. It is a bit heavy-handed, but gets my builds to work again.

The reference for this change is here:

http://support.microsoft.com/kb/911272

The downside to this approach, I am finding, is that you need to be more deliberate about recompiling, or restarting the web server, as changes during development don't just magically appear anymore. I am still deciding whether that is a useful tradeoff.

UPDATE: After several days of this, development was just too difficult and, sadly, what I reverted to was keeping my source inside the Parallels virtual disk. To enable Time Machine backups and Spotlight searches, I used a lightweight MS utility called SyncToy to push stuff out of Parallels and out to my Mac drive several times a day. Despite the high hack factor, it is working well.

tomo