How to add MVC3 to a web project - visual-studio-2010

What are the steps to enable MVC3 development on a web project that was created by default when starting a Silverlight Business Application

Related

How to use Microsoft.AspNetCore.Identity with an old web forms project?

I have an old web forms application that uses membership provider. I want to use an existing .net core identity project instead of membership provider. Where and how can I configure it in my old web forms project? Does anyone know how to implement that in my old project?

How to perform web deploy in ASP.NET 5?

When I click publish ASP.NET 5 project in visual studio, only 3 target I can choose:
Microsoft Azure Web Apps,
Import,
File System
There're no Web Deploy or Web Deploy package as shown in ASP.NET 4.6 Project.
How can I perform Web Deploy on ASP.NET 5 project?
Publishing an ASP.NET 5 project to an IIS server with Web Deploy requires a few additional steps in comparison to an ASP.NET 4 project.
Before asp.net dev team provide a better solution, you can just follow the instruction from docs.asp.net Publishing to IIS with Web Deploy using Visual Studio 2015
To publish an ASP.NET 5 application to a remote IIS server the following steps are required.
Configure your remote IIS server to support ASP.NET 5
Create a publish profile
Customize the profile to support Web Deploy publish

How to publish MVC3 razor with WCF service on IIS 7.5

I have created a service-oriented MVC3 application in Visual Studio 2010. I have used layered architecture for my application. It has a separate project for WCF Services,and separate projects for BLL and DAL, and also one for Entities. Now I want to publish my MVC application on IIS 7.5. I have Windows 7 Home Premium, and I use SQL Server 2008 R2 for my database. How can I publish it in IIS 7.5?
Note: I have created library projects for Entities, BLL, and DAL and use MVC3 for web project and WCF Service Application for WCF services.
I already tried to publish it by using this tutorial, but when I run the application in a browser, it does not load my Javascript, jquery and CSS files, and it give Network error 404 file not found.
Use, #Url.Content("~/blah/blah") to convert the relative path to an application absolute path.

Silverlight OOB App and Web Service in same Solution

I'm using vs2012 and have created a Silverlight 5 out of browser application that talks to a MVC 4 webapi web service for its data.
With both projects in the same solution I can successfully fire up and test the silverlight application with the web service if I have the web service set as the startup project and have the application running in the browser and embedded in a view on the MVC web service site. If I set the silverlight application as the startup application so that I can run it out of the browser like the user will, then the MVC site doesn't get started and the web service isn't available to connect to.
Is there anyway to have both projects running in the same instance of visual studio, but have the silverlight app run out of browser?
Try this:
Right click on solution from Solutin Explorer and select Properties. Then select the Multiple startup project option inside Common Properties/Startup Project and set both as 'Start'. Close and Start Debug again.

Use Apicontrollers in MVC3 Project

I am working on a project with Vs2010 and MVC4. (mainly Apicontrollers). Now the project is ready to deploy into production. The problem is that the client don't want to go with MVC4 even though there is a go-live license from Microsoft. The only new feature I used in this project from MVC4 is webAPI.
Can I use APIcontrollers in MVC3?
If yes How can I implement API controllers in MVC3 project?
What troubles will I face if I downgrade to MVC3 from webAPI standpoint (like :routing,hhtpconfiguration)
Yes
You can get web API with Nuget to you MVC3 project
Don't think you'll have any troubles, web API comes in separate dll that is independent of MVC dlls

Resources