Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default CS0016

    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\Temp orary 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.5 000.0__b03f5f7f11d50a3a\s
    ystem.web.mobile.dll"
    /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary 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.enterpriseservic es\1.0.5000.0__b03f5f7f11
    d50a3a\system.enterpriseservices.dll"
    /R:"c:\windows\microsoft.net\framework\v1.1.4322\ms corlib.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__b77a 5c561934e089\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\Temp orary
    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\Temp orary 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.CompilerGlobalScop eAttribute()]
    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


    Timo Erbach Guest

  2. #2

    Default Re: CS0016

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

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

    --
    Hernan de Lahitte
    Lagash Systems S.A.
    [url]http://weblogs.asp.net/hernandl[/url]


    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\Temp orary 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.5 000.0__b03f5f7f11d50a3a\s
    > ystem.web.mobile.dll"
    > /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary 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.enterpriseservic es\1.0.5000.0__b03f5f7f11
    > d50a3a\system.enterpriseservices.dll"
    > /R:"c:\windows\microsoft.net\framework\v1.1.4322\ms corlib.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__b77a 5c561934e089\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\Temp orary
    > 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\Temp orary 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.CompilerGlobalScop eAttribute()]
    > 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
    >
    >

    Hernan de Lahitte Guest

  3. #3

    Default Re: CS0016

    Hi Hernan,

    thanks fpr the link.
    Now I think everything will go.
    On some folders, there was no access for the user.

    thanks and best regards
    timo

    "Hernan de Lahitte" <hernan@lagash.com> schrieb im Newsbeitrag
    news:%23sNs$vRXEHA.1440@TK2MSFTNGP12.phx.gbl...
    > Your Network-Service account should have "Full" access to your
    > 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET' folder
    and
    > subfolders. Check out this article on how to set up an account for the
    > ASP.NET worker process.
    >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT01.asp?frame=true[/url]
    >
    > --
    > Hernan de Lahitte
    > Lagash Systems S.A.
    > [url]http://weblogs.asp.net/hernandl[/url]
    >
    >
    > 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\Temp orary 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.5 000.0__b03f5f7f11d50a3a\s
    > > ystem.web.mobile.dll"
    > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary 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.enterpriseservic es\1.0.5000.0__b03f5f7f11
    > > d50a3a\system.enterpriseservices.dll"
    > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\ms corlib.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__b77a 5c561934e089\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\Temp orary
    > > 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\Temp orary 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.CompilerGlobalScop eAttribute()]
    > > 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
    > >
    > >
    >
    >

    Timo Erbach Guest

  4. #4

    Default Re: CS0016

    Hello again,

    nothing has changed.
    I set the ACLs but I got the error again.

    Always a Compilation-Error CCS0016 Access Denied to a temporarily dll.

    What´s the solution?

    Regards Timo Erbach


    "Timo Erbach" <timo.erbach@web.de> schrieb im Newsbeitrag
    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\Temp orary 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.5 000.0__b03f5f7f11d50a3a\s
    > ystem.web.mobile.dll"
    > /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary 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.enterpriseservic es\1.0.5000.0__b03f5f7f11
    > d50a3a\system.enterpriseservices.dll"
    > /R:"c:\windows\microsoft.net\framework\v1.1.4322\ms corlib.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__b77a 5c561934e089\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\Temp orary
    > 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\Temp orary 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.CompilerGlobalScop eAttribute()]
    > 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
    >
    >

    Timo Erbach Guest

  5. #5

    Default Re: CS0016

    Check out if you are serializing in XML. The xml serializer might have found
    some error. If this is the issue, Chris Sells has a nice tool to diagnose
    these kind of issues.

    [url]http://www.sellsbrothers.com/tools/#XmlSerializerPreCompiler[/url]


    --
    Hernan de Lahitte
    Lagash Systems S.A.
    [url]http://weblogs.asp.net/hernandl[/url]


    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Timo Erbach" <timo.erbach@web.de> wrote in message
    news:cbu3df$shm$06$1@news.t-online.com...
    > Hello again,
    >
    > nothing has changed.
    > I set the ACLs but I got the error again.
    >
    > Always a Compilation-Error CCS0016 Access Denied to a temporarily dll.
    >
    > What´s the solution?
    >
    > Regards Timo Erbach
    >
    >
    > "Timo Erbach" <timo.erbach@web.de> schrieb im Newsbeitrag
    > 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\Temp orary 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.5 000.0__b03f5f7f11d50a3a\s
    > > ystem.web.mobile.dll"
    > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary 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.enterpriseservic es\1.0.5000.0__b03f5f7f11
    > > d50a3a\system.enterpriseservices.dll"
    > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\ms corlib.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__b77a 5c561934e089\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\Temp orary
    > > 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\Temp orary 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.CompilerGlobalScop eAttribute()]
    > > 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
    > >
    > >
    >
    >

    Hernan de Lahitte Guest

  6. #6

    Default Re: CS0016

    Hello Hernan,

    no sorry,

    While starting the application .NET throws the exception.
    I looked in the Logs, and it seens that it happens during compiling the
    assembly.
    He can not write the resulting dll.

    I tried using asp_reg-utility. But nothing has changed.

    Regards Timo


    "Hernan de Lahitte" <hernan@lagash.com> schrieb im Newsbeitrag
    news:OerSwxqXEHA.3716@TK2MSFTNGP10.phx.gbl...
    > Check out if you are serializing in XML. The xml serializer might have
    found
    > some error. If this is the issue, Chris Sells has a nice tool to diagnose
    > these kind of issues.
    >
    > [url]http://www.sellsbrothers.com/tools/#XmlSerializerPreCompiler[/url]
    >
    >
    > --
    > Hernan de Lahitte
    > Lagash Systems S.A.
    > [url]http://weblogs.asp.net/hernandl[/url]
    >
    >
    > This posting is provided "AS IS" with no warranties, and confers no
    rights.
    >
    > "Timo Erbach" <timo.erbach@web.de> wrote in message
    > news:cbu3df$shm$06$1@news.t-online.com...
    > > Hello again,
    > >
    > > nothing has changed.
    > > I set the ACLs but I got the error again.
    > >
    > > Always a Compilation-Error CCS0016 Access Denied to a temporarily dll.
    > >
    > > What´s the solution?
    > >
    > > Regards Timo Erbach
    > >
    > >
    > > "Timo Erbach" <timo.erbach@web.de> schrieb im Newsbeitrag
    > > 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\Temp orary 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.5 000.0__b03f5f7f11d50a3a\s
    > > > ystem.web.mobile.dll"
    > > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary 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.enterpriseservic es\1.0.5000.0__b03f5f7f11
    > > > d50a3a\system.enterpriseservices.dll"
    > > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\ms corlib.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__b77a 5c561934e089\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\Temp orary
    > > > 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\Temp orary 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.CompilerGlobalScop eAttribute()]
    > > > 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
    > > >
    > > >
    > >
    > >
    >
    >

    Timo Erbach Guest

  7. #7

    Default Re: CS0016

    Check if you have these accounts and rights on the ACL of:
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files

    and subfolders.

    Full Trust in:
    ASPNET, NETWORK SERVICE, SYSTEM, LOCAL SERVICE, [YOUR ACCOUNT]

    Read only:
    Users

    Of course you should have R/W permissions on the bin folder of your virtual
    directory web site.
    --
    Hernan de Lahitte
    Lagash Systems S.A.
    [url]http://weblogs.asp.net/hernandl[/url]


    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Timo Erbach" <timo.erbach@web.de> wrote in message
    news:cc1608$s1$07$1@news.t-online.com...
    > Hello Hernan,
    >
    > no sorry,
    >
    > While starting the application .NET throws the exception.
    > I looked in the Logs, and it seens that it happens during compiling the
    > assembly.
    > He can not write the resulting dll.
    >
    > I tried using asp_reg-utility. But nothing has changed.
    >
    > Regards Timo
    >
    >
    > "Hernan de Lahitte" <hernan@lagash.com> schrieb im Newsbeitrag
    > news:OerSwxqXEHA.3716@TK2MSFTNGP10.phx.gbl...
    > > Check out if you are serializing in XML. The xml serializer might have
    > found
    > > some error. If this is the issue, Chris Sells has a nice tool to
    diagnose
    > > these kind of issues.
    > >
    > > [url]http://www.sellsbrothers.com/tools/#XmlSerializerPreCompiler[/url]
    > >
    > >
    > > --
    > > Hernan de Lahitte
    > > Lagash Systems S.A.
    > > [url]http://weblogs.asp.net/hernandl[/url]
    > >
    > >
    > > This posting is provided "AS IS" with no warranties, and confers no
    > rights.
    > >
    > > "Timo Erbach" <timo.erbach@web.de> wrote in message
    > > news:cbu3df$shm$06$1@news.t-online.com...
    > > > Hello again,
    > > >
    > > > nothing has changed.
    > > > I set the ACLs but I got the error again.
    > > >
    > > > Always a Compilation-Error CCS0016 Access Denied to a temporarily dll.
    > > >
    > > > What´s the solution?
    > > >
    > > > Regards Timo Erbach
    > > >
    > > >
    > > > "Timo Erbach" <timo.erbach@web.de> schrieb im Newsbeitrag
    > > > 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\Temp orary 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.5 000.0__b03f5f7f11d50a3a\s
    > > > > ystem.web.mobile.dll"
    > > > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary 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.enterpriseservic es\1.0.5000.0__b03f5f7f11
    > > > > d50a3a\system.enterpriseservices.dll"
    > > > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\ms corlib.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__b77a 5c561934e089\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\Temp orary
    > > > > 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\Temp orary 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.CompilerGlobalScop eAttribute()]
    > > > > 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
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Hernan de Lahitte Guest

  8. #8

    Default Re: CS0016

    Hi,

    sorry but I made the changes you told me.
    Nothing has changed. Always this silly error on the temporary-folder for the
    asp.net files.

    Although I gave EVERYONE all accessrights, I got the error.
    I think there is something relly shitty.

    Timo


    "Hernan de Lahitte" <hernan@lagash.com> schrieb im Newsbeitrag
    news:eiKzna5XEHA.2908@TK2MSFTNGP10.phx.gbl...
    > Check if you have these accounts and rights on the ACL of:
    > C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files
    >
    > and subfolders.
    >
    > Full Trust in:
    > ASPNET, NETWORK SERVICE, SYSTEM, LOCAL SERVICE, [YOUR ACCOUNT]
    >
    > Read only:
    > Users
    >
    > Of course you should have R/W permissions on the bin folder of your
    virtual
    > directory web site.
    > --
    > Hernan de Lahitte
    > Lagash Systems S.A.
    > [url]http://weblogs.asp.net/hernandl[/url]
    >
    >
    > This posting is provided "AS IS" with no warranties, and confers no
    rights.
    >
    > "Timo Erbach" <timo.erbach@web.de> wrote in message
    > news:cc1608$s1$07$1@news.t-online.com...
    > > Hello Hernan,
    > >
    > > no sorry,
    > >
    > > While starting the application .NET throws the exception.
    > > I looked in the Logs, and it seens that it happens during compiling the
    > > assembly.
    > > He can not write the resulting dll.
    > >
    > > I tried using asp_reg-utility. But nothing has changed.
    > >
    > > Regards Timo
    > >
    > >
    > > "Hernan de Lahitte" <hernan@lagash.com> schrieb im Newsbeitrag
    > > news:OerSwxqXEHA.3716@TK2MSFTNGP10.phx.gbl...
    > > > Check out if you are serializing in XML. The xml serializer might have
    > > found
    > > > some error. If this is the issue, Chris Sells has a nice tool to
    > diagnose
    > > > these kind of issues.
    > > >
    > > > [url]http://www.sellsbrothers.com/tools/#XmlSerializerPreCompiler[/url]
    > > >
    > > >
    > > > --
    > > > Hernan de Lahitte
    > > > Lagash Systems S.A.
    > > > [url]http://weblogs.asp.net/hernandl[/url]
    > > >
    > > >
    > > > This posting is provided "AS IS" with no warranties, and confers no
    > > rights.
    > > >
    > > > "Timo Erbach" <timo.erbach@web.de> wrote in message
    > > > news:cbu3df$shm$06$1@news.t-online.com...
    > > > > Hello again,
    > > > >
    > > > > nothing has changed.
    > > > > I set the ACLs but I got the error again.
    > > > >
    > > > > Always a Compilation-Error CCS0016 Access Denied to a temporarily
    dll.
    > > > >
    > > > > What´s the solution?
    > > > >
    > > > > Regards Timo Erbach
    > > > >
    > > > >
    > > > > "Timo Erbach" <timo.erbach@web.de> schrieb im Newsbeitrag
    > > > > 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\Temp orary 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.5 000.0__b03f5f7f11d50a3a\s
    > > > > > ystem.web.mobile.dll"
    > > > > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary 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.enterpriseservic es\1.0.5000.0__b03f5f7f11
    > > > > > d50a3a\system.enterpriseservices.dll"
    > > > > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\ms corlib.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__b77a 5c561934e089\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\Temp orary
    > > > > > 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\Temp orary 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.CompilerGlobalScop eAttribute()]
    > > > > > 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
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Timo Erbach Guest

  9. #9

    Default Re: CS0016

    Hi,

    I got the error!!!!!!!!!
    I run my app under an own webPool. This webPool was run with NetworkService.
    I switched to MSSHarePoint-webPool. This pool runs under local System.

    I think MS created that new account NetworkService to secure the webserver?!

    They secured him so well, that asp.net will not run.

    So now I have to look, where accessrights are missing for NetworkService, so
    that my
    own webPool will run my app.

    Thank you very much for your help!!

    Regards Timo



    "Hernan de Lahitte" <hernan@lagash.com> schrieb im Newsbeitrag
    news:eiKzna5XEHA.2908@TK2MSFTNGP10.phx.gbl...
    > Check if you have these accounts and rights on the ACL of:
    > C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files
    >
    > and subfolders.
    >
    > Full Trust in:
    > ASPNET, NETWORK SERVICE, SYSTEM, LOCAL SERVICE, [YOUR ACCOUNT]
    >
    > Read only:
    > Users
    >
    > Of course you should have R/W permissions on the bin folder of your
    virtual
    > directory web site.
    > --
    > Hernan de Lahitte
    > Lagash Systems S.A.
    > [url]http://weblogs.asp.net/hernandl[/url]
    >
    >
    > This posting is provided "AS IS" with no warranties, and confers no
    rights.
    >
    > "Timo Erbach" <timo.erbach@web.de> wrote in message
    > news:cc1608$s1$07$1@news.t-online.com...
    > > Hello Hernan,
    > >
    > > no sorry,
    > >
    > > While starting the application .NET throws the exception.
    > > I looked in the Logs, and it seens that it happens during compiling the
    > > assembly.
    > > He can not write the resulting dll.
    > >
    > > I tried using asp_reg-utility. But nothing has changed.
    > >
    > > Regards Timo
    > >
    > >
    > > "Hernan de Lahitte" <hernan@lagash.com> schrieb im Newsbeitrag
    > > news:OerSwxqXEHA.3716@TK2MSFTNGP10.phx.gbl...
    > > > Check out if you are serializing in XML. The xml serializer might have
    > > found
    > > > some error. If this is the issue, Chris Sells has a nice tool to
    > diagnose
    > > > these kind of issues.
    > > >
    > > > [url]http://www.sellsbrothers.com/tools/#XmlSerializerPreCompiler[/url]
    > > >
    > > >
    > > > --
    > > > Hernan de Lahitte
    > > > Lagash Systems S.A.
    > > > [url]http://weblogs.asp.net/hernandl[/url]
    > > >
    > > >
    > > > This posting is provided "AS IS" with no warranties, and confers no
    > > rights.
    > > >
    > > > "Timo Erbach" <timo.erbach@web.de> wrote in message
    > > > news:cbu3df$shm$06$1@news.t-online.com...
    > > > > Hello again,
    > > > >
    > > > > nothing has changed.
    > > > > I set the ACLs but I got the error again.
    > > > >
    > > > > Always a Compilation-Error CCS0016 Access Denied to a temporarily
    dll.
    > > > >
    > > > > What´s the solution?
    > > > >
    > > > > Regards Timo Erbach
    > > > >
    > > > >
    > > > > "Timo Erbach" <timo.erbach@web.de> schrieb im Newsbeitrag
    > > > > 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\Temp orary 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.5 000.0__b03f5f7f11d50a3a\s
    > > > > > ystem.web.mobile.dll"
    > > > > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary 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.enterpriseservic es\1.0.5000.0__b03f5f7f11
    > > > > > d50a3a\system.enterpriseservices.dll"
    > > > > > /R:"c:\windows\microsoft.net\framework\v1.1.4322\ms corlib.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__b77a 5c561934e089\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\Temp orary
    > > > > > 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\Temp orary 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.CompilerGlobalScop eAttribute()]
    > > > > > 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
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Timo Erbach Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139