Trying to create asp.net mvc from vmware fusion

The problem is that my source code is located on the main machine (in this case, in the mac book pro program), and the visual studio wants to be able to control the web.config file for changes, so it throws an error:

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

I tried adding HKLM \ Software \ Asp.Net \ FCNMode = 1, but it does not work. Also, I don’t see that porting the source to VHD was a viable option due to version control issues.

Windows 7 64-bit Visual Studio 2008 VMWare Fusion 3.01

Thanks.

+4
source share
4 answers

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

  • Open RegEdit
  • Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ ASP.NET
  • Add a REG_DWORD registry entry with the name FCNMode and set its value to 1

Reboot and you should be good to go. "Wow6432Node" allows you to install this for 64-bit Visual Studio for Windows 7.

+9
source

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

<system.web> <httpRuntime fcnMode="Disabled"/> 
+1
source

I am not an expert on file system and virtualization, but I assume that the account in which the dev server process runs does not have access to the configuration file (web.config). Accounts in your virtual machine will not be recognized by OS X, so you cannot change permissions to make them work this way.

I would suggest adding an IIS component (through Control Panel-> Programs-> Turn Windows Features on or off), if you haven’t already. Then add the application to IIS with a virtual directory in the VHD of your virtual machine. Now, in order to debug, first publish your application in a newly created IIS application (something like http: // localhost / MyNewIISApplication ) and attach the VS debugger to the IIS process w3wp.exe worker (i.e. Debug-> Attach to Process. ..).

0
source

I do not see a problem with a working copy of your code in a virtual machine, if the code repository is somewhere else.

-2
source

Source: https://habr.com/ru/post/1300592/


All Articles