473,499 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

inheritance, class library, and compile errors

Here is the problem. I built LibA and LibB as class library projects in the
same solution as my web application HelloWorldWebApp. Wherever necessary I
added project references. Everything compiled nicely and ran smoothly.
After I finished my development, I wanted to use LibA across multiple
projects so I removed LibA from the solution and copied the LibA.dll to a
common location and added it to HelloWorldWebApp as a file reference. Now,
whenever I compile HelloWorldWebApp I receive the following error.

'Public Property ds() As System.Data.DataSet' is declared in project
'LibA.dll', which is not referenced by project 'HelloWorldWebApp.dll'.

Keep in mind that LibB still exists in the solution and now references LibA
by file. HelloWorldWebApp references LibB by project and now references LibA
by file.

If I run the application without debugging the web application works fine.
How do I fix the compilation errors?

Also, can anyone recommend a great article/walkthrough on building
distributable class libraries and properly maintaining and sharing them
within SourceSafe?

Here’s the code:

‘----------------------------------------------------
Class Library LibA

Public MustInherit Class MyWebPage : Inherits System.Web.UI.Page

'Local Dataset property
Private m_ds As DataSet
Public Property ds() As DataSet
Get
ds = m_ds
End Get
Set(ByVal Value As DataSet)
m_ds = Value
End Set
End Property

End Class

‘----------------------------------------------------
Class Library LibB

Public Class WebPage : Inherits LibA.MyWebPage

End Class

‘----------------------------------------------------
HelloWorldWebApp Web Project (helloworld.aspx web page)

Public Class helloworld : Inherits LibB.WebPage

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

ds = New DataSet ’Compilation Error occurs here

End Sub

End Class

‘----------------------------------------------------
Nov 19 '05 #1
0 941

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

Similar topics

2
4358
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
4
8161
by: Roy Pereira | last post by:
I have an application that is composed of a set of "Content" dlls and a viewer application. The viewer calls a standard set of functions that are present in all the dlls. I maintain this by...
1
379
by: Tony Johansson | last post by:
Hello! What does this mean. "The use of inheritance to provide various implementations of a single abstraction tightly binds these implementations to the abstarction. Therfore it, is difficult...
3
582
by: Tony Johansson | last post by:
Hello experts! I have a small program that is using multiple inheritance. There are 4 classes involved I get 4 compile error that I can't figure out why. It's this row which is located in the...
14
12873
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at...
45
6305
by: Ben Blank | last post by:
I'm writing a family of classes which all inherit most of their methods and code (including constructors) from a single base class. When attempting to instance one of the derived classes using...
6
3395
by: ryan.d.rembaum | last post by:
Hello, I have code that I wish to use in many web applications. Basically sort of stand utility stuff. So from Visual Studio Project I select add a component and chose Component Class. Lets...
0
847
by: BruinBySea | last post by:
Here is the problem. I built LibA and LibB as class library projects in the same solution as my web application HelloWorldWebApp. Wherever necessary I added project references. Everything...
6
3795
by: Bart Simpson | last post by:
I remember reading on parashift recently, that "Composition is for code reuse, inheritance is for flexibility" see (http://www.parashift.com/c++-faq-lite/smalltalk.html#faq-30.4) This confused...
0
7131
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,...
0
7388
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...
0
5470
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,...
1
4919
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...
0
4600
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...
0
3099
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...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
297
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...

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.