I'm working on a VB.net project in VS 2012 and I'm getting the below error message.
Error Details C:\xxx\xxxApp\xxxApplication.aspx(51): error BC30554: 'xxxxDBDataContext' is ambiguous.
Error Source System.Web
Here is the screenshot of the source code
The error "'<ClassName>' is ambiguous" is usually given when the compiler encounters two identical classes (or a class and a namespace, etc.) that are either in the same namespace, or have both been imported into your environment. So, for example, if you had
System.Data.DataTableandMyNamespace.DataTableand had imported both of them into your environment:If after this you just referenced:
Then the compiler will tell you
'DataTable' is ambiguousbecause it doesn't know which one you're referring to. You need to qualify the name with either:or