Trying to get IIS running in VM and Visual Studio running natively, with files on native file system-Collection of common programming errors
One trick may be to disable the file-monitoring features of the development web server. Normally ASP.NET monitors for changes and restarts the application pool if something changes. There is a registry setting to disable this though. That may result in a more descriptive error further into the startup process.
You can set the registry key FCNMode to 1 to disable monitoring:
http://support.microsoft.com/kb/911272
HKLM\Software\Microsoft\ASP.NET\FCNMode
or here if running a 32-bit application pool on 64-bit Windows:
HKLM\SOFTWARE\Wow6432Node\Microsoft\ASP.NET\FCNMode
You may want to run SysInternal’s Process Monitor to determine what files/folders are being accessed that are resulting in the error. For example, it may be attempting to access C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files, and your application identity would need permissions to that folder.
If it isn’t file system permissions, it may be due to the code access security (CAS) features of .NET. It probably doesn’t know what to make of the VMWare mapped resources. You may want to try entering an exception for the locations. If that doesn’t work, you may want to try using an SMB mapped drive to the network address of the host instead of using the VMWare networking.
CD /D C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
caspol.exe -m -ag 1 -url "file://\\vmware-host\*" FullTrust -exclusive on
caspol.exe -m -ag 1 -url "file://L:/TFSProjects" FullTrust -exclusive on
caspol.exe -m -ag 1 -url "http://localhost/*" FullTrust -exclusive on
CD /D C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727
caspol.exe -m -ag 1 -url "file://\\vmware-host\*" FullTrust -exclusive on
caspol.exe -m -ag 1 -url "file://L:/TFSProjects" FullTrust -exclusive on
caspol.exe -m -ag 1 -url "http://localhost/*" FullTrust -exclusive on
CD /D C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
caspol.exe -m -ag 1 -url "file://\\vmware-host\*" FullTrust -exclusive on
caspol.exe -m -ag 1 -url "file://L:/TFSProjects" FullTrust -exclusive on
caspol.exe -m -ag 1 -url "http://localhost/*" FullTrust -exclusive on
CD /D C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319
caspol.exe -m -ag 1 -url "file://\\vmware-host\*" FullTrust -exclusive on
caspol.exe -m -ag 1 -url "file://L:/TFSProjects" FullTrust -exclusive on
caspol.exe -m -ag 1 -url "http://localhost/*" FullTrust -exclusive on
REM display the exceptions
caspol -lf