Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't find System.Web.MVC from the add reference Dialog box [I'm inside a Webform Application]

I'm reading a blog on how to add MVC functionalities to an existing WebForm application. I've created a WebForm Application. To proceed further, I need to add a number of references to assemblies.

I've been able to add them all, but the System.Web.MVC. There's no such assembly in the Add Reference Dialog box. But, the sample code that I downloaded contains a reference to that assembly.

Any how to overcome that problem?

like image 359
Richard77 Avatar asked May 21 '11 19:05

Richard77


People also ask

What happened to System Web MVC?

Mvc Namespace | Microsoft Learn. This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

How do I add a System reference in Windows app?

To add a Web reference to a project. In Solution Explorer, right-click the name of the project to add the Web service to and then click Add Web Reference. The Add Web Reference dialog box is displayed. In the URL box, enter the URL of the Web service to use.

What is System Web MVC?

The System. Web. Mvc namespace contains classes and interfaces that support the ASP.NET Model View Controller (MVC) framework for creating Web applications. This namespace includes classes that represent controllers, controller factories, action results, views, partial view, model binders, and much more.


1 Answers

Depending on the version of Visual Studio you are using, the MVC framework may not automatically be installed on your computer.

Check here to make sure you have the latest MVC installed

Additional suggestions:

  1. When you go to Project->Add Reference make sure you wait for the list to fully populate and then click the System Component column header (the list is not alphabetized by default). System.Web.MVC should show up between System.Web.Mobile and System.Web.RegularExpression. You will not find System.Web.MVC there if you do not sort the column (even when you reopen the reference list).

  2. If that still does not solve the problem then I would suggest a reinstall or simply dl MVC 3 if it isn't already installed (only MVC 2 will be installed by default) and that should add the System.Web.MVC to your references.

like image 149
CodeGuru Avatar answered Sep 28 '22 06:09

CodeGuru