ASP.NET page compilation error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joachim

    ASP.NET page compilation error

    I made some project changes (which seems it doesn't help if I undo) which
    have created compilation error:

    "
    Server Error in '/PCSWebApp1' 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: CS1595: 'PCSWebApp1.Glo bal' is defined in multiple
    places; using definition from
    'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
    Files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ ASPdb.DLL'

    Source Error:



    Line 26:
    Line 27: [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()]
    Line 28: public class Global_asax : PCSWebApp1.Glob al {
    Line 29:
    Line 30: private static bool __initialized = false;


    Source File: c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
    Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.0 .cs Line: 28



    Show Detailed Compiler Output:


    C:\WINDOWS\syst em32> "c:\windows\mic rosoft.net\fram ework\v1.1.4322 \csc.exe"
    /t:library /utf8output
    /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\mscorlib.dll "
    /R:"c:\windows\a ssembly\gac\sys tem.drawing\1.0 .5000.0__b03f5f 7f11d50a3a\syst em.drawing.dll"
    /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
    files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ aspdb.dll"
    /R:"c:\windows\a ssembly\gac\sys tem.web.mobile\ 1.0.5000.0__b03 f5f7f11d50a3a\s ystem.web.mobil e.dll"
    /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
    files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\eb91394c\1a9 b1821_2f2fc501\ aspdbapp.dll"
    /R:"c:\windows\a ssembly\gac\sys tem.data\1.0.50 00.0__b77a5c561 934e089\system. data.dll"
    /R:"c:\windows\a ssembly\gac\sys tem.enterprises ervices\1.0.500 0.0__b03f5f7f11 d50a3a\system.e nterpriseservic es.dll"
    /R:"c:\windows\a ssembly\gac\sys tem.web.service s\1.0.5000.0__b 03f5f7f11d50a3a \system.web.ser vices.dll"
    /R:"c:\windows\a ssembly\gac\sys tem.xml\1.0.500 0.0__b77a5c5619 34e089\system.x ml.dll"
    /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
    files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\2a56278c\2e9 3d48f_2f2fc501\ pcswebapp1.dll"
    /R:"c:\windows\a ssembly\gac\sys tem\1.0.5000.0_ _b77a5c561934e0 89\system.dll"
    /R:"c:\windows\a ssembly\gac\sys tem.web\1.0.500 0.0__b03f5f7f11 d50a3a\system.w eb.dll"
    /out:"C:\WINDOWS \Microsoft.NET\ Framework\v1.1. 4322\Temporary ASP.NET
    Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.d ll" /D:DEBUG /debug+ /optimize-
    /warnaserror /w:1 "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary
    ASP.NET Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.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.

    c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
    Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.0 .cs(28,32): error CS1595:
    'PCSWebApp1.Glo bal' is defined in multiple places; using definition from
    'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
    Files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ ASPdb.DLL'





    Show Complete Compilation Source:


    Line 1:
    //------------------------------------------------------------------------------
    Line 2: // <autogenerate d>
    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.Collecti ons;
    Line 14: using System.Collecti ons.Specialized ;
    Line 15: using System.Configur ation;
    Line 16: using System.Text;
    Line 17: using System.Text.Reg ularExpressions ;
    Line 18: using System.Web;
    Line 19: using System.Web.Cach ing;
    Line 20: using System.Web.Sess ionState;
    Line 21: using System.Web.Secu rity;
    Line 22: using System.Web.UI;
    Line 23: using System.Web.UI.W ebControls;
    Line 24: using System.Web.UI.H tmlControls;
    Line 25:
    Line 26:
    Line 27:
    [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()]
    Line 28: public class Global_asax : PCSWebApp1.Glob al {
    Line 29:
    Line 30: private static bool __initialized = false;
    Line 31:
    Line 32: public Global_asax() {
    Line 33: if ((ASP.Global_as ax.__initialize d == false)) {
    Line 34: ASP.Global_asax .__initialized = true;
    Line 35: }
    Line 36: }
    Line 37: }
    Line 38: }
    Line 39:

    "


    Whatever I do it seems I can't make this error go away. Any suggestions?
  • Dale Preston

    #2
    Re: ASP.NET page compilation error

    Try deleting the pcswebapp folder at:
    c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET Files\

    and then delete everything at C:\Documents and
    Settings\%YourL oginName%\VSWeb Cache including the VSWebCache folder.

    And then restart.

    Oh.... one more thing. Be sure that you don't have more than one
    Global.asax or any other Global class.

    I don't know of those things will fix your problem but one or the other of
    the first two steps has been the cause whenever changes that I make in code
    are not being reflected when I execute.

    HTH

    Dale Preston
    MCAD, MCDBA, MCSE


    "Joachim" <Joachim@discus sions.microsoft .com> wrote in message
    news:C2D1814B-48F2-4E21-91D7-EB5AC46C6E03@mi crosoft.com...[color=blue]
    > I made some project changes (which seems it doesn't help if I undo) which
    > have created compilation error:
    >
    > "
    > Server Error in '/PCSWebApp1' Application.
    > --------------------------------------------------------------------------[/color]
    ------[color=blue]
    >
    > Compilation Error
    > Description: An error occurred during the compilation of a resource[/color]
    required[color=blue]
    > to service this request. Please review the following specific error[/color]
    details[color=blue]
    > and modify your source code appropriately.
    >
    > Compiler Error Message: CS1595: 'PCSWebApp1.Glo bal' is defined in multiple
    > places; using definition from
    > 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
    >[/color]
    Files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ A
    SPdb.DLL'[color=blue]
    >
    > Source Error:
    >
    >
    >
    > Line 26:
    > Line 27:[/color]
    [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()][color=blue]
    > Line 28: public class Global_asax : PCSWebApp1.Glob al {
    > Line 29:
    > Line 30: private static bool __initialized = false;
    >
    >
    > Source File: c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary[/color]
    ASP.NET[color=blue]
    > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.0 .cs Line: 28
    >
    >
    >
    > Show Detailed Compiler Output:
    >
    >
    > C:\WINDOWS\syst em32>[/color]
    "c:\windows\mic rosoft.net\fram ework\v1.1.4322 \csc.exe"[color=blue]
    > /t:library /utf8output
    > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\mscorlib.dll "
    >[/color]
    /R:"c:\windows\a ssembly\gac\sys tem.drawing\1.0 .5000.0__b03f5f 7f11d50a3a\syst
    em.drawing.dll"[color=blue]
    > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
    >[/color]
    files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ a
    spdb.dll"[color=blue]
    >[/color]
    /R:"c:\windows\a ssembly\gac\sys tem.web.mobile\ 1.0.5000.0__b03 f5f7f11d50a3a\s
    ystem.web.mobil e.dll"[color=blue]
    > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
    >[/color]
    files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\eb91394c\1a9 b1821_2f2fc501\ a
    spdbapp.dll"[color=blue]
    >[/color]
    /R:"c:\windows\a ssembly\gac\sys tem.data\1.0.50 00.0__b77a5c561 934e089\system.
    data.dll"[color=blue]
    >[/color]
    /R:"c:\windows\a ssembly\gac\sys tem.enterprises ervices\1.0.500 0.0__b03f5f7f11
    d50a3a\system.e nterpriseservic es.dll"[color=blue]
    >[/color]
    /R:"c:\windows\a ssembly\gac\sys tem.web.service s\1.0.5000.0__b 03f5f7f11d50a3a
    \system.web.ser vices.dll"[color=blue]
    >[/color]
    /R:"c:\windows\a ssembly\gac\sys tem.xml\1.0.500 0.0__b77a5c5619 34e089\system.x
    ml.dll"[color=blue]
    > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
    >[/color]
    files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\2a56278c\2e9 3d48f_2f2fc501\ p
    cswebapp1.dll"[color=blue]
    >[/color]
    /R:"c:\windows\a ssembly\gac\sys tem\1.0.5000.0_ _b77a5c561934e0 89\system.dll"[color=blue]
    >[/color]
    /R:"c:\windows\a ssembly\gac\sys tem.web\1.0.500 0.0__b03f5f7f11 d50a3a\system.w
    eb.dll"[color=blue]
    > /out:"C:\WINDOWS \Microsoft.NET\ Framework\v1.1. 4322\Temporary ASP.NET
    > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.d ll" /D:DEBUG /debug+[/color]
    /optimize-[color=blue]
    > /warnaserror /w:1 "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary
    > ASP.NET Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.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.
    >
    > c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
    > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.0 .cs(28,32): error CS1595:
    > 'PCSWebApp1.Glo bal' is defined in multiple places; using definition from
    > 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
    >[/color]
    Files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ A
    SPdb.DLL'[color=blue]
    >
    >
    >
    >
    >
    > Show Complete Compilation Source:
    >
    >
    > Line 1:
    >[/color]
    //--------------------------------------------------------------------------
    ----[color=blue]
    > Line 2: // <autogenerate d>
    > 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[/color]
    will[color=blue]
    > be lost if
    > Line 7: // the code is regenerated.
    > Line 8: // </autogenerated>
    > Line 9:
    >[/color]
    //--------------------------------------------------------------------------
    ----[color=blue]
    > Line 10:
    > Line 11: namespace ASP {
    > Line 12: using System;
    > Line 13: using System.Collecti ons;
    > Line 14: using System.Collecti ons.Specialized ;
    > Line 15: using System.Configur ation;
    > Line 16: using System.Text;
    > Line 17: using System.Text.Reg ularExpressions ;
    > Line 18: using System.Web;
    > Line 19: using System.Web.Cach ing;
    > Line 20: using System.Web.Sess ionState;
    > Line 21: using System.Web.Secu rity;
    > Line 22: using System.Web.UI;
    > Line 23: using System.Web.UI.W ebControls;
    > Line 24: using System.Web.UI.H tmlControls;
    > Line 25:
    > Line 26:
    > Line 27:
    > [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()]
    > Line 28: public class Global_asax : PCSWebApp1.Glob al {
    > Line 29:
    > Line 30: private static bool __initialized = false;
    > Line 31:
    > Line 32: public Global_asax() {
    > Line 33: if ((ASP.Global_as ax.__initialize d == false)) {
    > Line 34: ASP.Global_asax .__initialized = true;
    > Line 35: }
    > Line 36: }
    > Line 37: }
    > Line 38: }
    > Line 39:
    >
    > "
    >
    >
    > Whatever I do it seems I can't make this error go away. Any suggestions?[/color]


    Comment

    • Alvin Bruney [ASP.NET MVP]

      #3
      Re: ASP.NET page compilation error

      typically, this means that you have two copies of the same dll on your
      machine. The easiest way is to search your computer for the offending
      assembly and make sure only one exists for that particular application

      --
      Regards,
      Alvin Bruney
      [Shameless Author Plug]
      The Microsoft Office Web Components Black Book with .NET
      available at www.lulu.com/owc
      _______________ __________


      "Joachim" <Joachim@discus sions.microsoft .com> wrote in message
      news:C2D1814B-48F2-4E21-91D7-EB5AC46C6E03@mi crosoft.com...[color=blue]
      >I made some project changes (which seems it doesn't help if I undo) which
      > have created compilation error:
      >
      > "
      > Server Error in '/PCSWebApp1' 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: CS1595: 'PCSWebApp1.Glo bal' is defined in multiple
      > places; using definition from
      > 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
      > Files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ ASPdb.DLL'
      >
      > Source Error:
      >
      >
      >
      > Line 26:
      > Line 27:
      > [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()]
      > Line 28: public class Global_asax : PCSWebApp1.Glob al {
      > Line 29:
      > Line 30: private static bool __initialized = false;
      >
      >
      > Source File: c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary
      > ASP.NET
      > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.0 .cs Line: 28
      >
      >
      >
      > Show Detailed Compiler Output:
      >
      >
      > C:\WINDOWS\syst em32>
      > "c:\windows\mic rosoft.net\fram ework\v1.1.4322 \csc.exe"
      > /t:library /utf8output
      > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\mscorlib.dll "
      > /R:"c:\windows\a ssembly\gac\sys tem.drawing\1.0 .5000.0__b03f5f 7f11d50a3a\syst em.drawing.dll"
      > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
      > files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ aspdb.dll"
      > /R:"c:\windows\a ssembly\gac\sys tem.web.mobile\ 1.0.5000.0__b03 f5f7f11d50a3a\s ystem.web.mobil e.dll"
      > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
      > files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\eb91394c\1a9 b1821_2f2fc501\ aspdbapp.dll"
      > /R:"c:\windows\a ssembly\gac\sys tem.data\1.0.50 00.0__b77a5c561 934e089\system. data.dll"
      > /R:"c:\windows\a ssembly\gac\sys tem.enterprises ervices\1.0.500 0.0__b03f5f7f11 d50a3a\system.e nterpriseservic es.dll"
      > /R:"c:\windows\a ssembly\gac\sys tem.web.service s\1.0.5000.0__b 03f5f7f11d50a3a \system.web.ser vices.dll"
      > /R:"c:\windows\a ssembly\gac\sys tem.xml\1.0.500 0.0__b77a5c5619 34e089\system.x ml.dll"
      > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
      > files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\2a56278c\2e9 3d48f_2f2fc501\ pcswebapp1.dll"
      > /R:"c:\windows\a ssembly\gac\sys tem\1.0.5000.0_ _b77a5c561934e0 89\system.dll"
      > /R:"c:\windows\a ssembly\gac\sys tem.web\1.0.500 0.0__b03f5f7f11 d50a3a\system.w eb.dll"
      > /out:"C:\WINDOWS \Microsoft.NET\ Framework\v1.1. 4322\Temporary ASP.NET
      > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.d ll" /D:DEBUG /debug+
      > /optimize-
      > /warnaserror /w:1 "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary
      > ASP.NET Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.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.
      >
      > c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
      > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.0 .cs(28,32): error CS1595:
      > 'PCSWebApp1.Glo bal' is defined in multiple places; using definition from
      > 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
      > Files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ ASPdb.DLL'
      >
      >
      >
      >
      >
      > Show Complete Compilation Source:
      >
      >
      > Line 1:
      > //------------------------------------------------------------------------------
      > Line 2: // <autogenerate d>
      > 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.Collecti ons;
      > Line 14: using System.Collecti ons.Specialized ;
      > Line 15: using System.Configur ation;
      > Line 16: using System.Text;
      > Line 17: using System.Text.Reg ularExpressions ;
      > Line 18: using System.Web;
      > Line 19: using System.Web.Cach ing;
      > Line 20: using System.Web.Sess ionState;
      > Line 21: using System.Web.Secu rity;
      > Line 22: using System.Web.UI;
      > Line 23: using System.Web.UI.W ebControls;
      > Line 24: using System.Web.UI.H tmlControls;
      > Line 25:
      > Line 26:
      > Line 27:
      > [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()]
      > Line 28: public class Global_asax : PCSWebApp1.Glob al {
      > Line 29:
      > Line 30: private static bool __initialized = false;
      > Line 31:
      > Line 32: public Global_asax() {
      > Line 33: if ((ASP.Global_as ax.__initialize d == false)) {
      > Line 34: ASP.Global_asax .__initialized = true;
      > Line 35: }
      > Line 36: }
      > Line 37: }
      > Line 38: }
      > Line 39:
      >
      > "
      >
      >
      > Whatever I do it seems I can't make this error go away. Any suggestions?[/color]


      Comment

      • Joachim

        #4
        Re: ASP.NET page compilation error

        Thanks Mr. Prestion,

        However, I can't delete the information in the WSWebCache folder and I don't
        know how to be able to do it. The file seems to be in use but I have no idea
        which program that is using it, since I have closed down Visual Studio.

        Kind Regards,
        Joachim

        "Dale Preston" wrote:
        [color=blue]
        > Try deleting the pcswebapp folder at:
        > c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET Files\
        >
        > and then delete everything at C:\Documents and
        > Settings\%YourL oginName%\VSWeb Cache including the VSWebCache folder.
        >
        > And then restart.
        >
        > Oh.... one more thing. Be sure that you don't have more than one
        > Global.asax or any other Global class.
        >
        > I don't know of those things will fix your problem but one or the other of
        > the first two steps has been the cause whenever changes that I make in code
        > are not being reflected when I execute.
        >
        > HTH
        >
        > Dale Preston
        > MCAD, MCDBA, MCSE
        >
        >
        > "Joachim" <Joachim@discus sions.microsoft .com> wrote in message
        > news:C2D1814B-48F2-4E21-91D7-EB5AC46C6E03@mi crosoft.com...[color=green]
        > > I made some project changes (which seems it doesn't help if I undo) which
        > > have created compilation error:
        > >
        > > "
        > > Server Error in '/PCSWebApp1' Application.
        > > --------------------------------------------------------------------------[/color]
        > ------[color=green]
        > >
        > > Compilation Error
        > > Description: An error occurred during the compilation of a resource[/color]
        > required[color=green]
        > > to service this request. Please review the following specific error[/color]
        > details[color=green]
        > > and modify your source code appropriately.
        > >
        > > Compiler Error Message: CS1595: 'PCSWebApp1.Glo bal' is defined in multiple
        > > places; using definition from
        > > 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
        > >[/color]
        > Files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ A
        > SPdb.DLL'[color=green]
        > >
        > > Source Error:
        > >
        > >
        > >
        > > Line 26:
        > > Line 27:[/color]
        > [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()][color=green]
        > > Line 28: public class Global_asax : PCSWebApp1.Glob al {
        > > Line 29:
        > > Line 30: private static bool __initialized = false;
        > >
        > >
        > > Source File: c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary[/color]
        > ASP.NET[color=green]
        > > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.0 .cs Line: 28
        > >
        > >
        > >
        > > Show Detailed Compiler Output:
        > >
        > >
        > > C:\WINDOWS\syst em32>[/color]
        > "c:\windows\mic rosoft.net\fram ework\v1.1.4322 \csc.exe"[color=green]
        > > /t:library /utf8output
        > > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\mscorlib.dll "
        > >[/color]
        > /R:"c:\windows\a ssembly\gac\sys tem.drawing\1.0 .5000.0__b03f5f 7f11d50a3a\syst
        > em.drawing.dll"[color=green]
        > > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
        > >[/color]
        > files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ a
        > spdb.dll"[color=green]
        > >[/color]
        > /R:"c:\windows\a ssembly\gac\sys tem.web.mobile\ 1.0.5000.0__b03 f5f7f11d50a3a\s
        > ystem.web.mobil e.dll"[color=green]
        > > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
        > >[/color]
        > files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\eb91394c\1a9 b1821_2f2fc501\ a
        > spdbapp.dll"[color=green]
        > >[/color]
        > /R:"c:\windows\a ssembly\gac\sys tem.data\1.0.50 00.0__b77a5c561 934e089\system.
        > data.dll"[color=green]
        > >[/color]
        > /R:"c:\windows\a ssembly\gac\sys tem.enterprises ervices\1.0.500 0.0__b03f5f7f11
        > d50a3a\system.e nterpriseservic es.dll"[color=green]
        > >[/color]
        > /R:"c:\windows\a ssembly\gac\sys tem.web.service s\1.0.5000.0__b 03f5f7f11d50a3a
        > \system.web.ser vices.dll"[color=green]
        > >[/color]
        > /R:"c:\windows\a ssembly\gac\sys tem.xml\1.0.500 0.0__b77a5c5619 34e089\system.x
        > ml.dll"[color=green]
        > > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
        > >[/color]
        > files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\2a56278c\2e9 3d48f_2f2fc501\ p
        > cswebapp1.dll"[color=green]
        > >[/color]
        > /R:"c:\windows\a ssembly\gac\sys tem\1.0.5000.0_ _b77a5c561934e0 89\system.dll"[color=green]
        > >[/color]
        > /R:"c:\windows\a ssembly\gac\sys tem.web\1.0.500 0.0__b03f5f7f11 d50a3a\system.w
        > eb.dll"[color=green]
        > > /out:"C:\WINDOWS \Microsoft.NET\ Framework\v1.1. 4322\Temporary ASP.NET
        > > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.d ll" /D:DEBUG /debug+[/color]
        > /optimize-[color=green]
        > > /warnaserror /w:1 "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary
        > > ASP.NET Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.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.
        > >
        > > c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
        > > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.0 .cs(28,32): error CS1595:
        > > 'PCSWebApp1.Glo bal' is defined in multiple places; using definition from
        > > 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
        > >[/color]
        > Files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ A
        > SPdb.DLL'[color=green]
        > >
        > >
        > >
        > >
        > >
        > > Show Complete Compilation Source:
        > >
        > >
        > > Line 1:
        > >[/color]
        > //--------------------------------------------------------------------------
        > ----[color=green]
        > > Line 2: // <autogenerate d>
        > > 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[/color]
        > will[color=green]
        > > be lost if
        > > Line 7: // the code is regenerated.
        > > Line 8: // </autogenerated>
        > > Line 9:
        > >[/color]
        > //--------------------------------------------------------------------------
        > ----[color=green]
        > > Line 10:
        > > Line 11: namespace ASP {
        > > Line 12: using System;
        > > Line 13: using System.Collecti ons;
        > > Line 14: using System.Collecti ons.Specialized ;
        > > Line 15: using System.Configur ation;
        > > Line 16: using System.Text;
        > > Line 17: using System.Text.Reg ularExpressions ;
        > > Line 18: using System.Web;
        > > Line 19: using System.Web.Cach ing;
        > > Line 20: using System.Web.Sess ionState;
        > > Line 21: using System.Web.Secu rity;
        > > Line 22: using System.Web.UI;
        > > Line 23: using System.Web.UI.W ebControls;
        > > Line 24: using System.Web.UI.H tmlControls;
        > > Line 25:
        > > Line 26:
        > > Line 27:
        > > [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()]
        > > Line 28: public class Global_asax : PCSWebApp1.Glob al {
        > > Line 29:
        > > Line 30: private static bool __initialized = false;
        > > Line 31:
        > > Line 32: public Global_asax() {
        > > Line 33: if ((ASP.Global_as ax.__initialize d == false)) {
        > > Line 34: ASP.Global_asax .__initialized = true;
        > > Line 35: }
        > > Line 36: }
        > > Line 37: }
        > > Line 38: }
        > > Line 39:
        > >
        > > "
        > >
        > >
        > > Whatever I do it seems I can't make this error go away. Any suggestions?[/color]
        >
        >
        >[/color]

        Comment

        • Joachim

          #5
          Re: ASP.NET page compilation error

          Mr. Preston,

          I managed to delete the files at both locations, but I still had the same
          problem.
          Then I also found that I have to delete the files in the bin subdirectory of
          the project folder to make it work.

          Kind Regards,
          Joachim

          "Dale Preston" wrote:
          [color=blue]
          > Try deleting the pcswebapp folder at:
          > c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET Files\
          >
          > and then delete everything at C:\Documents and
          > Settings\%YourL oginName%\VSWeb Cache including the VSWebCache folder.
          >
          > And then restart.
          >
          > Oh.... one more thing. Be sure that you don't have more than one
          > Global.asax or any other Global class.
          >
          > I don't know of those things will fix your problem but one or the other of
          > the first two steps has been the cause whenever changes that I make in code
          > are not being reflected when I execute.
          >
          > HTH
          >
          > Dale Preston
          > MCAD, MCDBA, MCSE
          >
          >
          > "Joachim" <Joachim@discus sions.microsoft .com> wrote in message
          > news:C2D1814B-48F2-4E21-91D7-EB5AC46C6E03@mi crosoft.com...[color=green]
          > > I made some project changes (which seems it doesn't help if I undo) which
          > > have created compilation error:
          > >
          > > "
          > > Server Error in '/PCSWebApp1' Application.
          > > --------------------------------------------------------------------------[/color]
          > ------[color=green]
          > >
          > > Compilation Error
          > > Description: An error occurred during the compilation of a resource[/color]
          > required[color=green]
          > > to service this request. Please review the following specific error[/color]
          > details[color=green]
          > > and modify your source code appropriately.
          > >
          > > Compiler Error Message: CS1595: 'PCSWebApp1.Glo bal' is defined in multiple
          > > places; using definition from
          > > 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
          > >[/color]
          > Files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ A
          > SPdb.DLL'[color=green]
          > >
          > > Source Error:
          > >
          > >
          > >
          > > Line 26:
          > > Line 27:[/color]
          > [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()][color=green]
          > > Line 28: public class Global_asax : PCSWebApp1.Glob al {
          > > Line 29:
          > > Line 30: private static bool __initialized = false;
          > >
          > >
          > > Source File: c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary[/color]
          > ASP.NET[color=green]
          > > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.0 .cs Line: 28
          > >
          > >
          > >
          > > Show Detailed Compiler Output:
          > >
          > >
          > > C:\WINDOWS\syst em32>[/color]
          > "c:\windows\mic rosoft.net\fram ework\v1.1.4322 \csc.exe"[color=green]
          > > /t:library /utf8output
          > > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\mscorlib.dll "
          > >[/color]
          > /R:"c:\windows\a ssembly\gac\sys tem.drawing\1.0 .5000.0__b03f5f 7f11d50a3a\syst
          > em.drawing.dll"[color=green]
          > > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
          > >[/color]
          > files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ a
          > spdb.dll"[color=green]
          > >[/color]
          > /R:"c:\windows\a ssembly\gac\sys tem.web.mobile\ 1.0.5000.0__b03 f5f7f11d50a3a\s
          > ystem.web.mobil e.dll"[color=green]
          > > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
          > >[/color]
          > files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\eb91394c\1a9 b1821_2f2fc501\ a
          > spdbapp.dll"[color=green]
          > >[/color]
          > /R:"c:\windows\a ssembly\gac\sys tem.data\1.0.50 00.0__b77a5c561 934e089\system.
          > data.dll"[color=green]
          > >[/color]
          > /R:"c:\windows\a ssembly\gac\sys tem.enterprises ervices\1.0.500 0.0__b03f5f7f11
          > d50a3a\system.e nterpriseservic es.dll"[color=green]
          > >[/color]
          > /R:"c:\windows\a ssembly\gac\sys tem.web.service s\1.0.5000.0__b 03f5f7f11d50a3a
          > \system.web.ser vices.dll"[color=green]
          > >[/color]
          > /R:"c:\windows\a ssembly\gac\sys tem.xml\1.0.500 0.0__b77a5c5619 34e089\system.x
          > ml.dll"[color=green]
          > > /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
          > >[/color]
          > files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\2a56278c\2e9 3d48f_2f2fc501\ p
          > cswebapp1.dll"[color=green]
          > >[/color]
          > /R:"c:\windows\a ssembly\gac\sys tem\1.0.5000.0_ _b77a5c561934e0 89\system.dll"[color=green]
          > >[/color]
          > /R:"c:\windows\a ssembly\gac\sys tem.web\1.0.500 0.0__b03f5f7f11 d50a3a\system.w
          > eb.dll"[color=green]
          > > /out:"C:\WINDOWS \Microsoft.NET\ Framework\v1.1. 4322\Temporary ASP.NET
          > > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.d ll" /D:DEBUG /debug+[/color]
          > /optimize-[color=green]
          > > /warnaserror /w:1 "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary
          > > ASP.NET Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.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.
          > >
          > > c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
          > > Files\pcswebapp 1\63c74586\45a5 1b27\evkipkjp.0 .cs(28,32): error CS1595:
          > > 'PCSWebApp1.Glo bal' is defined in multiple places; using definition from
          > > 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
          > >[/color]
          > Files\pcswebapp 1\63c74586\45a5 1b27\assembly\d l2\62413afb\ccf 3302b_2a2fc501\ A
          > SPdb.DLL'[color=green]
          > >
          > >
          > >
          > >
          > >
          > > Show Complete Compilation Source:
          > >
          > >
          > > Line 1:
          > >[/color]
          > //--------------------------------------------------------------------------
          > ----[color=green]
          > > Line 2: // <autogenerate d>
          > > 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[/color]
          > will[color=green]
          > > be lost if
          > > Line 7: // the code is regenerated.
          > > Line 8: // </autogenerated>
          > > Line 9:
          > >[/color]
          > //--------------------------------------------------------------------------
          > ----[color=green]
          > > Line 10:
          > > Line 11: namespace ASP {
          > > Line 12: using System;
          > > Line 13: using System.Collecti ons;
          > > Line 14: using System.Collecti ons.Specialized ;
          > > Line 15: using System.Configur ation;
          > > Line 16: using System.Text;
          > > Line 17: using System.Text.Reg ularExpressions ;
          > > Line 18: using System.Web;
          > > Line 19: using System.Web.Cach ing;
          > > Line 20: using System.Web.Sess ionState;
          > > Line 21: using System.Web.Secu rity;
          > > Line 22: using System.Web.UI;
          > > Line 23: using System.Web.UI.W ebControls;
          > > Line 24: using System.Web.UI.H tmlControls;
          > > Line 25:
          > > Line 26:
          > > Line 27:
          > > [System.Runtime. CompilerService s.CompilerGloba lScopeAttribute ()]
          > > Line 28: public class Global_asax : PCSWebApp1.Glob al {
          > > Line 29:
          > > Line 30: private static bool __initialized = false;
          > > Line 31:
          > > Line 32: public Global_asax() {
          > > Line 33: if ((ASP.Global_as ax.__initialize d == false)) {
          > > Line 34: ASP.Global_asax .__initialized = true;
          > > Line 35: }
          > > Line 36: }
          > > Line 37: }
          > > Line 38: }
          > > Line 39:
          > >
          > > "
          > >
          > >
          > > Whatever I do it seems I can't make this error go away. Any suggestions?[/color]
          >
          >
          >[/color]

          Comment

          • xcode

            #6
            Re: ASP.NET page compilation error

            Have you created a Application with the folder in IIS?

            Comment

            • Hans Kesting

              #7
              Re: ASP.NET page compilation error

              Joachim wrote:[color=blue]
              > Thanks Mr. Prestion,
              >
              > However, I can't delete the information in the WSWebCache folder and I don't
              > know how to be able to do it. The file seems to be in use but I have no idea
              > which program that is using it, since I have closed down Visual Studio.
              >
              > Kind Regards,
              > Joachim
              >[/color]

              IIS can still hold a lock on those files. Kill the aspnet_wp.exe process
              (it restarts immediately) and the lock is gone.
              [color=blue]
              > "Dale Preston" wrote:
              >
              >[color=green]
              >>Try deleting the pcswebapp folder at:
              >> c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET Files\
              >>
              >>and then delete everything at C:\Documents and
              >>Settings\%You rLoginName%\VSW ebCache including the VSWebCache folder.
              >>
              >>And then restart.
              >>[/color][/color]

              --
              Hans Kesting

              Comment

              Working...