Compilation error cs0011 with single aspx page in asp application

Discussion in 'ASP .Net' started by Paul van Brenk, Aug 25, 2005.

  1. Hi,

    after installing sp1 on windows 2003 I get the following error when
    accessing an aspx page in an otherwise asp application:

    error: Unable to generate a temporary class (result=1). error CS0011:
    Referenced class 'ASP.InvoiceExport_aspx' has base class or interface
    'System.Web.UI.Page' defined in an assembly that is not referenced. You must
    add a reference to assembly 'System.Web'. error CS0011: Referenced class
    'ASP.InvoiceExport_aspx' has base class or interface
    'System.Web.SessionState.IRequiresSessionState' defined in an assembly that
    is not referenced. You must add a reference to assembly 'System.Web'.

    All other (asp) pages are working without a problem.

    There is no code-behind file, so no bin directory and no global.asax file.

    This is the .cmdline in the "Temporary Asp.Net files" directory:

    /t:library /utf8output
    /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll"
    /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll"
    /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll"
    /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll"
    /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll"
    /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll"
    /R:"c:\windows\assembly\gac\system.web.ui.mobilecontrols.adapters\1.1.0.0__b03f5f7f11d50a3a\system.web.ui.mobilecontrols.adapters.dll"
    /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll"
    /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll"
    /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
    /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
    Files\root\0929bfc9\6b8611c5\pgnru_ji.dll" /D:DEBUG /debug+ /optimize-
    /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
    ASP.NET Files\root\0929bfc9\6b8611c5\pgnru_ji.0.cs"

    which clearly shows a reference added to the system.web assembly, in the
    correct location.

    I added a reference to the assembly both as a page directive and in the
    web.config compilation section, both didn't work.

    Any suggestions how to resolve this. or is this a bug?

    Paul
    Paul van Brenk, Aug 25, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stimp
    Replies:
    0
    Views:
    368
    Stimp
    Sep 19, 2006
  2. C__chp
    Replies:
    4
    Views:
    491
    Puppet_Sock
    Feb 15, 2008
  3. Anthony Jones
    Replies:
    1
    Views:
    519
    Anthony Jones
    Jan 16, 2009
  4. Nathan Sokalski
    Replies:
    0
    Views:
    534
    Nathan Sokalski
    Jan 15, 2009
  5. Tyrel van Niekerk
    Replies:
    4
    Views:
    489
    Tyrel van Niekerk
    Sep 9, 2003
Loading...

Share This Page