473,657 Members | 2,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.InvoiceExp ort_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.InvoiceExp ort_aspx' has base class or interface
'System.Web.Ses sionState.IRequ iresSessionStat e' 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\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\a ssembly\gac\sys tem.drawing\1.0 .5000.0__b03f5f 7f11d50a3a\syst em.drawing.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\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.ui.mobi lecontrols.adap ters\1.1.0.0__b 03f5f7f11d50a3a \system.web.ui. mobilecontrols. adapters.dll"
/R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\mscorlib.dll "
/R:"c:\windows\a ssembly\gac\sys tem.web\1.0.500 0.0__b03f5f7f11 d50a3a\system.w eb.dll"
/R:"c:\windows\a ssembly\gac\sys tem\1.0.5000.0_ _b77a5c561934e0 89\system.dll"
/out:"C:\WINDOWS \Microsoft.NET\ Framework\v1.1. 4322\Temporary ASP.NET
Files\root\0929 bfc9\6b8611c5\p gnru_ji.dll" /D:DEBUG /debug+ /optimize-
/warnaserror /w:1 "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary
ASP.NET Files\root\0929 bfc9\6b8611c5\p gnru_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 1262

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

Similar topics

3
3342
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 from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\1f575646\ad3a161b\assembly\dl2\57ca505e\044565c0_f84fc401\Test1.DLL' The problem is that the control is defined in two different assemblies
6
2886
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 error. For example, broken.aspx might only contain the following line of code: <% Dim x as %> When I visit this page from my Web browser, I see all the helpful ASP.NET Server Error information, including:
0
1054
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 of Microsoft Coproration: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07222003.asp We were experiencing the symptoms described in the article: awful performance under load when calling web services...
6
1528
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 different server. i have copied only the aspx file , the dll file as well as the config files.
16
2169
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 caused the application to go boom. Sometimes the page will compile and run using F5 and others not. So I do the web search tango looking around the blogs and the tuts and determine I should go into Temporary ASP.NET Files and delete the directory...
3
26317
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 local development box. I created a new web site with a single test page in it. I also right-clicked the project added a Bin folder. Then I added the DLL that I downloaded to that Bin folder. Then I copy/pasted the sample code included from...
0
1735
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 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.
25
4377
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 opened it in Visual Studio 2005. I've cleared up most errors, but have one that beats the heck out of me. I have a page: sales/Item.aspx that has several datagrids in it.
2
3272
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 filling the pageoutputcache on server side. so far so good. if we start one spider at once our application works fine, but if we run more than one spider tool at the same time the asp.net process works for a few minutes returning correct http...
0
8407
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8837
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6175
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.