This problem is driving me nuts.
CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework<64>\vX.X.XXXX\Temporary ASP.NET Files\root\XXXXXX\XXXXXX\App_Web_XXXX.aspx.XXXXXXXX.XXXXXXXX.dll' -- 'The directory name is invalid. '
I've tried to give full access to the network service on C:\windows\temp and the temp folder in v4.0.xxx folder.
The server is Windows Server 2008 R2; SQL Server 2008 R2 is installed on the same server.
I believe that it could have something to do with SQL Server being installed after the .NET Framework 4.0 was installed, but I ran
aspnet_regiis.exe -u and then
-i to reinstall. I've tried from both the Framework folder and Framework64 folder but to no avail.
Has anyone else had this problem? If so, how did you fix it?