user1510685
user1510685

Reputation:

Can't find namespace

When I create new mvc4 project "Internet application" the AccountController has a reference to mvc4.Models. When I create "basic application" and copy above controller to it I can't resolve said namespace. What did I misunderstand ? Thanks.

Upvotes: 1

Views: 448

Answers (1)

Brandon
Brandon

Reputation: 70022

There is no such thing as a basic application. Do you mean an empty application?

An empty application does not create any Model classes. The /Model folder is empty, so the classes the Account Controller is referencing (LoginModel, RegisterModel, etc) do not exist. You need to copy them over as well. (Although if you're just going to copy all of the files, just use an Internet Application project instead of an empty one...)

Upvotes: 1

Related Questions