Related Links

Adding a Method to a Controller and Creating Views

1. What is the procedure to add a new method to the controller? Can I just write a method for the view or do I need to create the view first or vice versa? Is it more complicated than simply adding a new method with the same name as the view?

2. Is there a specific procedure for creating views or can I just add a view by copy pasting a currently existing one?

Re: Adding a Method to a Controller and Creating Views

Yes. That indicates MVC 2. It also matches what I get when I create an MVC 2 project. One question I forgot to ask. Does the current application work? I.e. does it compile and are you able to run it? If so I think the problem may be related to the MVC 2
tooling support that was available when the project was first created. Here's an article that may be related:

Re: Adding a Method to a Controller and Creating Views

Do you recall if you were ever presented with an option to "upgrade the solution" when you opened the project in VS2010? If so and you declined the option, can you try using the upgrade commandline switch to upgrade the solution/project. Here's the documentation
for the upgrade switch:

Re: Adding a Method to a Controller and Creating Views

chohmann

Do you recall if you were ever presented with an option to "upgrade the solution" when you opened the project in VS2010? If so and you declined the option, can you try using the upgrade commandline switch to upgrade the solution/project. Here's the documentation
for the upgrade switch:

Re: Adding a Method to a Controller and Creating Views

"The solution or project you are open was created in a previous version of Visual Studio"

It would then have taken you through the Visual Studio conversion wizard. It's possible that the conversion process failed. Or that the previous developer setup a mixed development environment to allow both VS2008 and VS2010 to work on the same project.
Here's a thread that discusses a mixed Visual Studio development environment.

Anyway, I think if you tried the upgrade commandline switch in the previous article I posted, it may resolve the issue. Obviously, you will want to make a backup of the current project before attempting the upgrade commandline switch.