Compiler Failed with Error Code 2000

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

    Compiler Failed with Error Code 2000

    I'm seeing an error when I try to run/debug a web
    service. Although it doesn't happen every time, it does
    occur more than half of the times I hit F5. It appears
    to be returned by the the JIT compiler as the page is
    requested by the browser. The result is that
    the "compiler failed with error code 2000". I have
    tested the same code on another workstation with VS.NET
    and it works fine EVERY time. I'm convinced it's not the
    code and I have installed/repaired the prereqs and .NET
    twice to try to resolve the issue.

    From the Compiler Output, it appears that a temporary
    file (passwordclasse s.dll) can't be located. This is not
    a reference that I added, so I assume it's related to one
    of the imports??? I am using System.Web.Serv ices,
    System.Data.Sql Client, System.Configur ation, System.Xml
    and System.Text.

    The machine in question is a Pentium 4, 3.00 GHz with 1
    gig of RAM. It's new so I just installed VS.NET in the
    last week. The problem started yesterday after I cleaned
    up some old web directories from IIS.

    I have included the entire error displayed below. Thanks
    in advance for any help.
    Mike

    =============== =============== ===============

    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: The compiler failed with error
    code 2000.



    Show Detailed Compiler Output:


    C:\WINDOWS\syst em32> "c:\windows\mic rosoft.net\fram ework\v
    1.1.4322
    \vbc.exe" /t:library /utf8output /R:"c:\windows\a ssembly\g
    ac\system.web\1 .0.5000.0__b03f 5f7f11d50a3a\sy stem.web.dll"
    /R:"c:\windows\a ssembly\gac\sys tem\1.0.5000.0_ _b77a5c5619
    34e089
    \system.dll" /R:"c:\windows\a ssembly\gac\sys tem.web.servic
    es\1.0.5000.0__ b03f5f7f11d50a3 a\system.web.se rvices.dll" /
    R:"c:\windows\a ssembly\gac\sys tem.xml\1.0.500 0.0__b77a5c56
    1934e089
    \system.xml.dll " /R:"c:\windows\a ssembly\gac\sys tem.drawin
    g\1.0.5000.0__b 03f5f7f11d50a3a \system.drawing .dll" /R:"c:\
    windows\microso ft.net\framewor k\v1.1.4322\tem porary
    asp.net files\ws_iri\a3 68cf29\3393b0c7 \assembly\dl2
    \0a06a769\0089d dd7_cecec201
    \passwordclasse s.dll" /R:"c:\windows\a ssembly\gac\sys tem.w
    eb.mobile\1.0.5 000.0__b03f5f7f 11d50a3a\system .web.mobile.d
    ll" /R:"c:\windows\a ssembly\gac\sys tem.data\1.0.50 00.0__b7
    7a5c561934e089
    \system.data.dl l" /R:"c:\windows\a ssembly\gac\sys tem.enter
    priseservices\1 .0.5000.0__b03f 5f7f11d50a3a\sy stem.enterpri
    seservices.dll" /R:"c:\windows\m icrosoft.net\fr amework\v1.
    1.4322\temporar y asp.net files\ws_iri\a3 68cf29\3393b0c7
    \assembly\dl2\e abff948\ce8871d 3_6f92c301
    \ws_iri.dll" /out:"C:\WINDOWS \Microsoft.NET\ Framework\v1.1
    ..4322\Temporar y ASP.NET Files\ws_iri\a3 68cf29\3393b0c7
    \kk1njxzo.dll" /D:DEBUG=1 /debug+ "C:\WINDOWS\Mic rosoft.N
    ET\Framework\v1 .1.4322\Tempora ry ASP.NET
    Files\ws_iri\a3 68cf29\3393b0c7 \kk1njxzo.0.vb"


    Microsoft (R) Visual Basic .NET Compiler version
    7.10.3052.4
    for Microsoft (R) .NET Framework version 1.1.4322.573
    Copyright (C) Microsoft Corporation 1987-2002. All rights
    reserved.

    vbc : Command line error BC2017 : could not find
    library 'c:\windows\mic rosoft.net\fram ework\v1.1.4322
    \temporary asp.net files\ws_iri\a3 68cf29\3393b0c7
    \assembly\dl2\0 a06a769\0089ddd 7_cecec201
    \passwordclasse s.dll'
    vbc : Fatal error BC2000 : compiler initialization failed
    unexpectedly: The filename, directory name, or volume
    label syntax is incorrect.





    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: Option Strict Off
    Line 12: Option Explicit On
    Line 13:
    Line 14: Imports Microsoft.Visua lBasic
    Line 15: Imports System
    Line 16: Imports System.Collecti ons
    Line 17: Imports System.Collecti ons.Specialized
    Line 18: Imports System.Configur ation
    Line 19: Imports System.Text
    Line 20: Imports System.Text.Reg ularExpressions
    Line 21: Imports System.Web
    Line 22: Imports System.Web.Cach ing
    Line 23: Imports System.Web.Secu rity
    Line 24: Imports System.Web.Sess ionState
    Line 25: Imports System.Web.UI
    Line 26: Imports System.Web.UI.H tmlControls
    Line 27: Imports System.Web.UI.W ebControls
    Line 28:
    Line 29: Namespace ASP
    Line 30:
    Line 31:
    <System.Runtime .CompilerServic es.CompilerGlob alScopeAttrib
    ute()> _
    Line 32: Public Class Global_asax
    Line 33: Inherits WS_IRI.Global
    Line 34:
    Line 35: Private Shared __initialized As
    Boolean = false
    Line 36:
    Line 37: Public Sub New()
    Line 38: MyBase.New
    Line 39: If (ASP.Global_asa x.__initialized
    = false) Then
    Line 40: ASP.Global_asax .__initialized
    = true
    Line 41: End If
    Line 42: End Sub
    Line 43: End Class
    Line 44: End Namespace
    Line 45:



  • Tian Min Huang

    #2
    RE: Compiler Failed with Error Code 2000

    Hello Mike,

    Thanks for your post. As I understand, you fail to compile an ASP .NET
    project sometimes with the error "compiler failed with error code 2000".
    Please correct me if there is any misunderstandin g. Now I'd like to share
    the following information with you:

    1. I suggest you to backup and delete your application directory from the
    "C:\Winnt\Micro soft.NET\Framew ork\v1.1.4322\T emporary ASP.NET Files"
    directory. This will force complete recompilation of the application, and
    then check whether or not the problem still exists.

    2. I searched in google.com for the file passwordclasses .dll with no
    result. If it still complains about the passwordclasses .dll, please locate
    it on your system other than the "Temporary ASP.NET Files" folder. Add it
    into the GAC with the following command:

    gacutil -I <directories>\p asswordclasses. dll

    I look forward to your result.

    Have a nice day!

    Regards,

    HuangTM
    Microsoft Online Partner Support
    MCSE/MCSD

    Get Secure! -- www.microsoft.com/security
    This posting is provided "as is" with no warranties and confers no rights.

    Comment

    • Guest's Avatar

      #3
      RE: Compiler Failed with Error Code 2000

      I followed the first suggenstion and so far, so good.
      Things seem to be working correctly for now. Thanks for
      your help!!
      Mike
      [color=blue]
      >-----Original Message-----
      >Hello Mike,
      >
      >Thanks for your post. As I understand, you fail to[/color]
      compile an ASP .NET[color=blue]
      >project sometimes with the error "compiler failed with[/color]
      error code 2000".[color=blue]
      >Please correct me if there is any misunderstandin g. Now[/color]
      I'd like to share[color=blue]
      >the following information with you:
      >
      >1. I suggest you to backup and delete your application[/color]
      directory from the[color=blue]
      >"C:\Winnt\Micr osoft.NET\Frame work\v1.1.4322\ Temporary[/color]
      ASP.NET Files"[color=blue]
      >directory. This will force complete recompilation of the[/color]
      application, and[color=blue]
      >then check whether or not the problem still exists.
      >
      >2. I searched in google.com for the file[/color]
      passwordclasses .dll with no[color=blue]
      >result. If it still complains about the[/color]
      passwordclasses .dll, please locate[color=blue]
      >it on your system other than the "Temporary ASP.NET[/color]
      Files" folder. Add it[color=blue]
      >into the GAC with the following command:
      >
      > gacutil -I <directories>\p asswordclasses. dll
      >
      >I look forward to your result.
      >
      >Have a nice day!
      >
      >Regards,
      >
      >HuangTM
      >Microsoft Online Partner Support
      >MCSE/MCSD
      >
      >Get Secure! -- www.microsoft.com/security
      >This posting is provided "as is" with no warranties and[/color]
      confers no rights.[color=blue]
      >
      >.
      >[/color]

      Comment

      Working...