Geeks With Blogs

News
Anirudha gupta

Soon you will see a new version of MVC5 in VS2013. MVC5 will be incorporated in VS2013. MVC3 will not be supported in VS2013 (but I found Any kind of MVC version can be used in MV by my tricks). I confirmed it on channel9 last time. So People who have installed only VS2013 or doesn’t have old version will be got trouble with the project that is still in MVC3. This error happen because MVC4 and 5 installation doesn’t contain the DLL that is used in Version 3 of ASP.NET MVC.

 

Don’t be panic. You guys want to upgrade your project. Here is a trick  to solve the issue.

 

When you open the project you have seen that in Reference there is some dll that have yellow icon. This means that dll are missing or not found in your configuration or system.

 

Now remember that dll name. Remove them from reference and add them from adding reference. I telling you to remove so VS will not prevent you to add new version of same assembly. Add all those assembly.

Those dll will be following :

System.Web.Mvc

Razor and Webpages Dll.

 

Remember that in MVC3 we use old version of these assembly. Now When you done by adding all assembly then now open web.config.

 

There is 2 web.config file in our mvc project.  One is in root folder and second in Views folder. You need to update all those version no. This is not a big deal if you know the name of assembly. Now if you web.config show you assembly version as 3.000.00 then 3 would be replaced with 4 or 5 according to version no. Same thing need to applied all dll for both web.config.

 

Note :- In VS Template Views goes in ~/Views folder but if someone use any other folder then Views for views and those folder have also web.config then remember to update them also. Your project will be compile and make no warning and error but that certainly not work. for examples areas/views and themes/views that contain web.config also need to be updated with newer assembly version no.

 

After done these thing you can compile your project and it will be work as it should be Smile

Thanks for read my post. Follow me on FB and Twitter to stay updated Smile

Posted on Wednesday, October 16, 2013 7:51 AM | Back to top


Comments on this post: How to migrate ASP.NET MVC 3 , MVC4 project to ASP.NET MVC5 ?

# re: How to migrate ASP.NET MVC 3 , MVC4 project to ASP.NET MVC5 ?
Requesting Gravatar...
Thank you !
Left by Dalc on Dec 14, 2013 11:37 PM

# re:HOW DATA MIGRATION IS DONE IN MVC4?
Requesting Gravatar...
please expalin...
Left by ANU on Dec 19, 2013 10:48 AM

# re: How to migrate ASP.NET MVC 3 , MVC4 project to ASP.NET MVC5 ?
Requesting Gravatar...
Sorry, I didn't try SQL server from a long time.I didn't know how Data migration work in ASP.NET.
Left by Anirudha on Dec 19, 2013 1:20 PM

# re: How to migrate ASP.NET MVC 3 , MVC4 project to ASP.NET MVC5 ?
Requesting Gravatar...
thanks body
Left by sencer erim on Jan 20, 2014 4:13 AM

# re: How to migrate ASP.NET MVC 3 , MVC4 project to ASP.NET MVC5 ?
Requesting Gravatar...
Thanks a lot giving idea.
Left by alam on Jul 16, 2014 3:38 PM

# re: How to migrate ASP.NET MVC 3 , MVC4 project to ASP.NET MVC5 ?
Requesting Gravatar...
Thanks a lot for giving idea.
Left by alam on Jul 16, 2014 3:38 PM

Your comment:
 (will show your gravatar)


Copyright © Anirudha | Powered by: GeeksWithBlogs.net