Websites are showing Server Error in '/' Application

Created:

2016-11-16 13:20:00 UTC

Modified:

2017-08-18 04:09:16 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Websites are showing Server Error in '/' Application

Applicable to:

  • Plesk 11.x for Windows
  • Plesk 12.5 for Windows

Symptoms

Websites that are using ASP.NET applications are showing:

Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0016: Could not write to output file 'c:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\Temporary ASP.NET Files\\root\\9c4c27ed\\e56c00f7\\App_Web_default.aspx.cdcab7d2.rxmrydy_.dll' -- 'Access is denied. '

At the same time, the following Warning messages appear in Windows Event Viewer:

CS0016: Could not write to output file 'c:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\Temporary ASP.NET Files\\root\\9c4c27ed\\e56c00f7\\App_Web_default.aspx.cdcab7d2.rxmrydy_.dll' . The directory name is invalid.

Cause

The system $TEMP and $TMP variables point to a folder that does not exist or NETWORK SERVICE user account does not have access to this folder.

Resolution

  1. Make sure that %SystemRoot%\\Temp directory exists. If it does not, create it`.

  2. Grant Full control permissions under this folder to NETWORK SERVICE user account.

  3. Open Server Manager > Change System Properties > Advanced > Environment Variables .

  4. Under System variables section select TEMP variable and click Edit .

  5. Type %SystemRoot%\\TEMP in the Variable Value box, and then click OK .

  6. Repeat steps 4 and 5 to edit the TMP variable.

  7. Reset Internet Information Services (IIS) from command line using the following command:

    iisreset
Have more questions? Submit a request
Please sign in to leave a comment.