473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Compilation error cs0011 with single aspx page in asp application

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.5 000.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.enterpriseservic es\1.0.5000.0__b03f5f7f11d50a3a\system.enterprises ervices.dll"
/R:"c:\windows\assembly\gac\system.web.ui.mobilecon trols.adapters\1.1.0.0__b03f5f7f11d50a3a\system.we b.ui.mobilecontrols.adapters.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\ms corlib.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__b77a 5c561934e089\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\Temp orary
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
Nov 19 '05 #1
0 1250

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
6
by: Plat | last post by:
I've Googled this for a while, to no avail. Hopefully someone can help me. Maybe I'm using the wrong terminology. Here's the scoop! Let's say I've got a simple *.ASPX page that has a syntax...
0
by: Todd Gill | last post by:
We have recently modified our ASP.NET web application to make web service calls asynchronously using the global.asax PreRequestHandler technique as explained in the following article by Matt Powell...
6
by: thomson | last post by:
Hi all, I have compiled by .net web applicaion in my local machine , and a dll has been created on the bin Directory, And i have copied the entire application using xcopy deployment to a...
16
by: clintonG | last post by:
At design-time the application just decides to go boom claiming it can't find a dll. This occurs sporadically. Doing a simple edit in the HTML for example and then viewing the application has...
3
by: M Noreen | last post by:
I'm unable to build a web project that has a custom .NET control that I downloaded (from: http://blogs.msdn.com/dmitryr/archive/2006/03/26/561200.aspx) I'm running VS 2005, ASP.NET 2.0 on my...
0
by: Stimp | last post by:
I've created an aspx page called HistoryManage.aspx. The page works fine on my local machine but when I load it off the web I get the following strange error... Compilation Error...
25
by: Blasting Cap | last post by:
I keep getting errors that pop up when I am trying to convert an application from dotnet framework 1.1 to framework 2.0. The old project was saved in sourcesafe from Visual Studio 2003, and I have...
2
by: f0zzyNUE | last post by:
hi everyone, currently we are testing the performance our application (asp.net based CMS) ... for that reason we wrote a "spider" that starts webrequests for all relevant pages which results in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.