473,386 Members | 1,779 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,386 software developers and data experts.

Ambiguous in the Namespace

Hello,

Hoping someone can help me so I can build my homework!

I have a public class called Employee.vb in a project called
Compensation Review. I have created HourlyEmployee that Inherits
Employee. When I try to build it, I get an error:

'Employee' is ambiguous in the namespace 'Compensation_Review'

Any advice? I created a reference to Compensation Review.dll in the
Compensation Review project.

Jun 2 '06 #1
3 1422
code?

"Erik" <er******@hotmail.com> wrote in message
news:11*********************@u72g2000cwu.googlegro ups.com...
Hello,

Hoping someone can help me so I can build my homework!

I have a public class called Employee.vb in a project called
Compensation Review. I have created HourlyEmployee that Inherits
Employee. When I try to build it, I get an error:

'Employee' is ambiguous in the namespace 'Compensation_Review'

Any advice? I created a reference to Compensation Review.dll in the
Compensation Review project.

Jun 2 '06 #2
use the full namespace path when you reference "Employee"

If your namespace in foo.dll is MyNameSpace.Foo.Employee, use

DIm obj as New MyNameSpace.Foo.Employee

The ambigous error message is often displayed when it doesnt know which
"Employee" you are referencing in your code.

Use the class browser in VS to help you find the full namespace.

Jun 2 '06 #3

Charlie Brown wrote:
use the full namespace path when you reference "Employee"

If your namespace in foo.dll is MyNameSpace.Foo.Employee, use

DIm obj as New MyNameSpace.Foo.Employee

The ambigous error message is often displayed when it doesnt know which
"Employee" you are referencing in your code.

Use the class browser in VS to help you find the full namespace.


This helped, thanks! I have 2 projects in my solution. I had defined
references to Compensation Review in each project causing the
ambiguity. I deleted one of the references and the build succeeded.

Much appreciated.

Jun 4 '06 #4

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

Similar topics

3
by: Lee Gillie | last post by:
I have a VS6 project which I brought into VS .NET, and all has been building fine. Then I upgraded to VS 2003 and I have one source which will no longer compile. Any clues? Compiling......
5
by: rodri rodri via DotNetMonster.com | last post by:
I have done a program with windows forms in "Visual C++". I have implemented a function that returns two values. For example: double functionExample(int parameter, double __gc* result2); And...
3
by: Ben | last post by:
Hi I have just created a new ASP .net web project and when i run the project I receieve this error: System.Reflection.AmbiguousMatchException: Ambiguous match found. Any help would be much...
4
by: Johnny van Cadsand | last post by:
Hi, I get the following errors when trying to build my solution: 'Exception' is ambiguous in the namespace 'System' 'EventArgs' is ambiguous in the namespace 'System' 'IDisposable' is ambiguous...
9
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include...
3
by: Arpan | last post by:
The following code exists in a class file named "Users.vb": Namespace Users Public Class UserDetails Public FirstName As String Public LastName As String Public UserName As String Public...
1
by: rn5a | last post by:
Consider the following code in a VB class file: Namespace LoginUserFetchDB Public Class ZForZebra : Inherits SoapHeader Public UserName As String Public Password As String End Class Public...
9
by: neildferguson | last post by:
I am using templates with a little project I am working on. My compiler (GCC) is finding a particular construct ambiguous. Can anyone suggest something I might change in the declaration of class...
12
by: Nathan Sokalski | last post by:
I have several CustomControls that I have written for my project. However, when I try to compile I recieve the following warning & errors: Warning 32 Could not resolve this reference. Could not...
11
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a machine Windows Server 2003 using IIS 6.0 and I am getting the error BC30560 prjob_ascx is ambiguous in the namespace ASP I found a fix. Deleting all the files in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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:
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
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...

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.