I am using Ubuntu for about a year. But sometimes I need to use Windows. So, I installed Oracle Virtualbox to use Windows XP virtually.
I wanted to develop my existing web projects in Virtualbox using Visual Studio 2010. But when I open a project from shared folders (network), Visual Studio giving errors and can't run the project.
So, I am searched for hours and found a solution.
- I edited C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\denev.exe.config file and inserted loadFromRemoteSources like below.
<configuration>
<runtime>
<loadFromRemoteSources enabled="true" />
</runtime>
</configure>
- Then I opened regedit and added a new key at "HKLM\Software\Microsoft\ASP.NET\FCNMode" with value 1 as DWORD value.
Note: I realized that if the reg key FCNMode=1 then, Visual Studio 2010 needs restart ASP.NET Development Server to apply changes. Unfortunately I didn't found a solution. For more info: http://blogs.msdn.com
- Now, in Visual Studio 2010, the asp.net project started to run without error. But I got "Access denied" error, in the browser window.
The project files was on NTFS partition. So, I thought to change the permissions of the project container folder. But where could I do this?
I tried something under Windows but no chance. Then I thought to change the permissions under Ubuntu.
TIP: The partition should be mounted with "permissions" option to be able to change permissions on a NTFS partition. For example:
sudo mount -t ntfs-3g -o user,rw,permissions /dev/sda4 /media/os
- Then I started pcmanfm (a file manager) and changed permissions of the project container folder easily.
After that, I returned to Windows (guest OS) and restarted Visual Studio 2010 and the project. And the project started successfully! Now, I can continue to develop the project!
Experiment:
I am mapping a network folder for easy access. For example, O: drive in My Computer stands for the path "\\VBOXSVR\root\media\os".
I noticed that, if I open an asp.net project with VS2010 using O:\projects\project1 then ASP.net Development Server gives 401.3 access denied error.
But it starts without problem if I open the project with VS2010 using full path like \\VBOXSVR\root\media\os\projects\project1
References: