VB.NET ambiguous compilation error

ITSVBNET

New member
Joined
Jun 2, 2006
Messages
1
Programming Experience
Beginner
Hi all

I have one application in C#, I have converted the code to VB.Net and trying to compile it. It gives me errors in variable declarations:

e.g.

1) I have BaseBehaviour as base class in One Behaviour.dll.

Public Class MyBehavior
Inherits BaseBehavior

Following error occured:

'BaseBehavior' is ambiguous in the namespace 'Behaviors'.

2) I have one interface as IElement, my declaration goes

Private element As IElement

Following error occured:

'IElement' is ambiguous in the namespace "WebEditing.Elements'.

Can someone pls suggest whats wrong here?

Thanks


 
It meas that the class and interface names could refer to two different types. You will need to qualify the type with the appropriate namespace to differentiate. Are you sure you haven't accidentally included the same types in more than one namespace?
 
Back
Top