When creating a simple website with IIS on Windows 7 64 bit, the message pops up: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64 etc...
The solution to this problem is to change the application pool settings from ApplicationPoolIdentity to LocalSystem.
Select the applicationpool that is used by your website. Go to advanced settings. Change the ID to LocalSystem.