2

When I try to build my WEB API project on MS VS 2015 I am getting an erroras shown below.

CS1503 Argument 3: cannot convert from 'System.Web.Mvc.ModelStateDictionary' to 'Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary'

.

1
  • I don't know why they down-voted you, but I had exactly same problem, and would never figure it out if I didn't see it on yours question. Thank you. Commented Jan 20, 2017 at 12:52

1 Answer 1

3

In your project you are using System.Web.ModelBinding so please change it to using System.Web.Mvc;

Sign up to request clarification or add additional context in comments.

1 Comment

Hey man, thanks a lot, I would have never figure it out if it weren't for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.