Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys
i am sort of new to C# but i keep getting this one error which is now getting my nerves.
I have created a database and when i try access my database :-

C#
private void button3_Click(object sender, EventArgs e)
       {
           TillDatabaseEntities tde = new TillDatabaseEntities();

       }


i then get this error , i hope this makes sense. if it does can you help me please?


The call is ambiguous between the following methods or properties: 'Till_System.TillDatabaseEntities.TillDatabaseEntities()' and 'Till_System.TillDatabaseEntities.TillDatabaseEntities()'
Posted

1 solution

My guess is that you have two different assemblies referenced (possibly the same DLL in two different locations).

I just dealt with that issue myself a couple minutes ago. One of my projects was referencing an older version of a DLL, and another of my projects was referencing the newer version.
 
Share this answer
 
Comments
1Future 8-Jul-13 20:26pm    
hi! Thank you for responding ... how do i delete any of the DLL versions? or how do i get my project to reference to one DLL in the same location?

Thank you

Abraham
AspDotNetDev 8-Jul-13 20:44pm    
See the answer to this (basically, enabled detailed build output): http://stackoverflow.com/questions/1871073/resolving-msb3247-found-conflicts-between-different-versions-of-the-same-depen . You can also find all references to the DLL and ensure they are pointing to the same DLL.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900