Compilation error cs0011 with single aspx page in asp application

P

Paul van Brenk

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top