none
IIS Problem: CS0016: Could not write to output file RRS feed

  • Question

  •  CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\App_global.asax.ddpmdc0r.dll' -- 'Access is denied. '

    Accessing a newly created asp.net site.
    Site content works elsewhere and on this machine using Win 7

    More detail:
    c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\assembly\dl3\19d55ace\538a089d_e85aca01\FEDWeb.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\assembly\dl3\bd51fff3\5ad111f4_022bca01\DundasWebGauge.DLL" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\App_global.asax.omc1nkhw.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701  "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\App_global.asax.omc1nkhw.0.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\App_global.asax.omc1nkhw.1.cs"


    Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.4927
    for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
    Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

    error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\App_global.asax.omc1nkhw.dll' -- 'Access is denied. '

    Tuesday, November 3, 2009 1:31 PM

Answers

All replies

  • Hi DJaus,
    Thanks for your feedback again. Can you please check if the environment variables TEMP and TMP are defined and they are pointing to existing folder locations. Please launch a command prompt and type ECHO %TEMP% and ECHO %TMP% to check that. Also would it be possible to give some details on the kind of configuration you created ?

    Thanks
    Shiv
    Shivkumar Swaminathan - MSFT
    Tuesday, November 3, 2009 11:14 PM
  • I'll post a summary of my config a separate thread.

    C:\Users\davidj>ECHO %TEMP%
    C:\Users\davidj\AppData\Local\Temp

    C:\Users\davidj>ECHO %TMP%
    C:\Users\davidj\AppData\Local\Temp

    c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

    Web Page error (Get same with all .aspx pages from site).
     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\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\App_global.asax.vzv1ig7m.dll' -- 'Access is denied. '

    Source Error:

    [No relevant source lines]

    Source File:    Line: 0



    c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\assembly\dl3\19d55ace\538a089d_e85aca01\FEDWeb.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\assembly\dl3\bd51fff3\5ad111f4_022bca01\DundasWebGauge.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\App_global.asax.vzv1ig7m.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701  "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\App_global.asax.vzv1ig7m.0.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\App_global.asax.vzv1ig7m.1.cs"
    
    
    Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.4927
    for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
    Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
    
    error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\fedweb\3f7c0b60\a0bf33f8\App_global.asax.vzv1ig7m.dll' -- 'Access is denied. '
    



    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

    Server Error in '/FEDWeb' Application.

    Compilation Error

     

    Wednesday, November 4, 2009 11:10 AM
  • I have granted  access for Everyone to myy %TEMP% folder to full. 

    I can't set any permissions on \Windows or anything under it ???, let alone c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

    Problem remains, even after an install.

    I have copied this asp.net site from my dev machine.
    The Win 7 desktop image is able to use this content OK.
    Thursday, November 5, 2009 12:55 PM
  • See my post here: DJAus Image Update..Some success
    Tuesday, November 10, 2009 12:35 PM
  • You can try this

    Step 1) First give all the permission to ASPNET account , NETWORK SERVICE account to "ASP.NET Temporary files" folder under whichever the framework it is using. like C:\windows\microsoft.net\framework\v2.xxx\ASP.NET Temporary files step

    2) Check the temporary folder configured for your machine under environment variables for TEMP and TEMP. For that folder also give all the permission to ASPNET account , NETWORK SERVICE accout. Reset the IIS It should be working fine.

    Thursday, August 12, 2010 2:28 PM
  • Hi,

     

    I am have a similar issue on my Sharepoint 2010 server. I am unable to resolve the issue either. when i attempt to edit my Sharepoint 2010 sites i get the follwoing error:

    (0): error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\b4958ec7\d8145654\App_Web_rtedialog.master.2a428413.yc9s16p1.dll' -- 'The directory name is invalid. '

     

    please assist

    Thursday, November 11, 2010 7:56 AM
  • I also meet similar situation today, Beside above mentioned access grant please first check if you deploy the .NET framework 3.5 web application to a server which could run .NET framework 2.0 only. it will also cause above very confusion error.

    • Proposed as answer by tonhus Tuesday, October 23, 2012 10:41 AM
    • Unproposed as answer by tonhus Tuesday, October 23, 2012 10:41 AM
    Tuesday, November 1, 2011 1:07 AM