Bryan
Bryan

Reputation: 3541

Can't create controller in my asp.net project

I have three projects in my solution, UI, Service and Core.

When I add a reference to my Service or my Core projects, from my UI-project, and then tries to add a new controller In the UI, I get the following error message:

enter image description here

When I remove the references, it works and I can create new controllers.

Upvotes: 0

Views: 2418

Answers (2)

Prince Painadath Jose
Prince Painadath Jose

Reputation: 54

Rebuild the solution and if there is any error then fix those issues. After that try to create a new controller. It worked for me!

Upvotes: 0

NikolaiDante
NikolaiDante

Reputation: 18649

The error suggests that it is related to your service library somehow.

Check that soundyladder.service project builds successfully and that it is referenced as a project (rather than a DLL) in soundyladder.ui.

Ensure that you can (re)build the entire solution.

Upvotes: 2

Related Questions