ekenman
ekenman

Reputation: 995

Ambiguous reference to ViewModel in MVC project

I have a MVC project .NET 4.5, using VS 2013

When I start debugging the project, I get the following error on my Viewmodel:

Ambiguous reference:
  Vin.Model.ViewModel.Bottle.BottleDetailsViewmodel
  Vin.Model.ViewModel.Bottle.BottleDetailsViewmodel
match

If I stop debugging and clean the solution everything is OK, but as soon as I start debugging the error is back.

Perhaps I also should point out that this is only occurs in the views, not in the controller class or anywhere else in the solution.

Upvotes: 1

Views: 1990

Answers (2)

Rohan Mane
Rohan Mane

Reputation: 1

You can try following,

it is not the complex one . just add fully qualified name that is , model."class name"

Upvotes: 0

Jamez
Jamez

Reputation: 1597

You could try:

  • Cleaning the solution and rebuilding
  • Ensure the version of the .Net framework your projects are pointing at are the same
  • Clear your Bin & Obj folders

Upvotes: 4

Related Questions