Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

trying to do asp.net mvc development from vmware fusion

the issue is that my source is hosted on the host machine (in this case a mac book pro) and visual studio wants to be able to monitor the web.config for changes so it is throwing the error:

An error occurred loading a configuration file: Failed to start monitoring changes to: \path\to\web.config

I have tried to add the HKLM\Software\Asp.Net\FCNMode=1 but it doesn't seem to work. Also, I don't see moving the source to the VHD as a viable option due to version control issues.

Windows 7 64-bit Visual Studio 2008 VMWare Fusion 3.01

Thanks.

like image 362
Gabe Anzelini Avatar asked Feb 27 '23 15:02

Gabe Anzelini


2 Answers

You have the right idea, but need to edit the correct key for Windows 7.

  • Open up RegEdit
  • Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ASP.NET
  • Add a REG_DWORD registry entry called FCNMode and set its value to 1

Re-boot and you should be good to go. The "Wow6432Node" allows you to set this for Windows 7 64-bit Visual Studio.

like image 65
befletcher Avatar answered Mar 11 '23 17:03

befletcher


It looks like you can now change FCNMode in your web.config. They probably added it in .NET 4.5, could not find any of documentation but this, but it seems to work.

<system.web>        
    <httpRuntime fcnMode="Disabled"/>
like image 45
Dmitry Avatar answered Mar 11 '23 16:03

Dmitry