Re: CS0016

From: Hernan de Lahitte (hernan_at_lagash.com)
Date: 06/28/04


Date: Mon, 28 Jun 2004 11:30:44 -0300

Your Network-Service account should have "Full" access to your
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET' folder and
subfolders. Check out this article on how to set up an account for the
ASP.NET worker process.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT01.asp?frame=true

-- 
Hernan de Lahitte
Lagash Systems S.A.
http://weblogs.asp.net/hernandl
This posting is provided "AS IS" with no warranties, and confers no rights.
"Timo Erbach" <timo.erbach@web.de> wrote in message
news:cbp4la$5lb$00$1@news.t-online.com...
> Hello,
>
> I get the following error when executing an ASP.NET-Web-Application.
>
> The Network-Service has acces to the Temporary ASP.NET Folder, also he has
> access to my WebRoot-Folder for the application.
> What must I do that the Application can run without this error. On my
> developer machine everything is okay. It is Win XP Pro with VS 2003 Ent.
> Arch.
>
> The Live-System: Win 2003 Stand.
>
> Regards Timo
> 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\v1.1.4322\Temporary ASP.NET
> Files\root\6b9a193d\e035cf86\rodstafl.dll' -- 'Zugriff verweigert '
>
> Source Error:
>
>
> [No relevant source lines]
>
> Source File:    Line: 0
>
>
>
> Show Detailed Compiler Output:
>
> c:\windows\system32\inetsrv>
> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /t:library
> /utf8output
>
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syst
> em.drawing.dll"
>
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\s
> ystem.web.mobile.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
>
files\root\6b9a193d\e035cf86\assembly\dl2\d6e5bfb0\e4cfa279_e55cc401\altkat-
> recycling.dll"
>
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.
> data.dll"
>
/R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11
> d50a3a\system.enterpriseservices.dll"
> /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
>
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.x
> ml.dll"
>
/R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a
> \system.web.services.dll"
>
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
>
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.w
> eb.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET
> Files\root\6b9a193d\e035cf86\rodstafl.dll" /D:DEBUG /debug+ /optimize-
> /warnaserror /w:1  "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
> ASP.NET Files\root\6b9a193d\e035cf86\rodstafl.0.cs"
>
>
> Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
> for Microsoft (R) .NET Framework version 1.1.4322
> Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
>
> error CS0016: Could not write to output file
> 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
> Files\root\6b9a193d\e035cf86\rodstafl.dll' -- 'Zugriff verweigert '
>
>
>
>
> Show Complete Compilation Source:
>
> Line 1:
>
//--------------------------------------------------------------------------
> ----
> Line 2:    // <autogenerated>
> Line 3:    //     This code was generated by a tool.
> Line 4:    //     Runtime Version: 1.1.4322.573
> Line 5:    //
> Line 6:    //     Changes to this file may cause incorrect behavior and
will
> be lost if
> Line 7:    //     the code is regenerated.
> Line 8:    // </autogenerated>
> Line 9:
>
//--------------------------------------------------------------------------
> ----
> Line 10:
> Line 11:   namespace ASP {
> Line 12:       using System;
> Line 13:       using System.Collections;
> Line 14:       using System.Collections.Specialized;
> Line 15:       using System.Configuration;
> Line 16:       using System.Text;
> Line 17:       using System.Text.RegularExpressions;
> Line 18:       using System.Web;
> Line 19:       using System.Web.Caching;
> Line 20:       using System.Web.SessionState;
> Line 21:       using System.Web.Security;
> Line 22:       using System.Web.UI;
> Line 23:       using System.Web.UI.WebControls;
> Line 24:       using System.Web.UI.HtmlControls;
> Line 25:
> Line 26:
> Line 27:
> [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
> Line 28:       public class Global_asax : AltKat_Recycling.Global {
> Line 29:
> Line 30:           private static bool __initialized = false;
> Line 31:
> Line 32:           public Global_asax() {
> Line 33:               if ((ASP.Global_asax.__initialized == false)) {
> Line 34:                   ASP.Global_asax.__initialized = true;
> Line 35:               }
> Line 36:           }
> Line 37:       }
> Line 38:   }
> Line 39:
>
>
>
>
> --------------------------------------------------------------------------
--
> ----
> Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET
> Version:1.1.4322.573
>
>


Relevant Pages

  • Re: How Code behind file and single file are process.
    ... Both senarios will use the Temporary ASP.NET Files folder but no .dll ... When you call for an ASP.NET page (.aspx file), ... it knows to use dynamic compilation and to look ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP .NET 2.0 Visual Studio 2005 - deploying - no DLLs
    ... I usually deploy my ASP .NET application to the server by publishing, ... triggered a compilation of the website, but there are no DLL files in ... folder, like when I publish with Visual Studio. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP .NET 2.0 Visual Studio 2005 - deploying - no DLLs
    ... and source siles in the App_Code folder) is on ... I thought that the application would be compiled on the server the first ... and this would create the DLL files in the BIN folder. ... triggered a compilation of the website, but there are no DLL files in the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET 2.0 where are the DLLs?
    ... Yes I found the dll files in the c/.net temp folder but what am i suposed ... > Beta 2 has changed the compilation paradigm for assemblies. ...
    (microsoft.public.dotnet.framework.aspnet)
  • CS0016
    ... An error occurred during the compilation of a resource required ... Compiler Error Message: CS0016: Could not write to output file ... Microsoft Visual C# .NET Compiler version 7.10.3052.4 ... Version Information: Microsoft .NET Framework Version:1.1.4322.573; ...
    (microsoft.public.dotnet.framework.aspnet.security)