Cannot Log In To Console - Unable to generate a temporary class (result=1)

Version 2

    If you cannot log in to Console and are getting the following error:

     

    Unable to generate a temporary class (result=1). error CS2001: Source file ‘C:\WINDOWS\TEMP\filename.cs’ could not be found error CS2008: No inputs specified

     

    It is because the Network Service account does not have sufficient file access permissions to C:\Windows\Temp\..

     

    It is also worth checking that the Network Service has file access permissions to C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files, too, although whether this is necessary should be indicated in the Event Log in the form of ASP.NET errors:

     

     

    Exception information:

        Exception type: HttpException

        Exception message: The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files'.

     

     

     

    Note:  This was seen in LDSD 7.3.2, although it could occur in other versions, as it is a file access error thrown by .NET.