How to deploy an ASP.NET MVC3 application?

I created a web application using ASP.NET MVC3 in Visual Studio (without SQL Server). Now I want to deploy it, and I'm looking for suggestions for the easiest way.

Now I have done (rule 1-10) http://msdn.microsoft.com/en-us/library/dd410407(v=vs.90).aspx

+7
source share
5 answers

1- folder with folder in the project folder
2- content folder
3-script folder
4th viewport
5- Global.asax
6- Web.config
7- copying from C: \ Program Files \ Microsoft ASP.NET \ ASP.NET Web Pages \ v1.0 \ Assembler Directory
You must copy these files to the bin directory before deploying the website.

Microsoft.CSharp.dll - reference Microsoft.Web.Infrastructure.dll and .xml - copy System.Web.Helpers.dll and .xml - reference System.Web.Razor.dll and .xml - copy System.Web.Routing.dll - reference System.Web.WebPages.Deployment.dll and .xml - copy System.Web.WebPages.dll - reference System.Web.WebPages.Razor.dll and .xml - copy 
+11
source

When you run the application in Visual Studio 2010 with the .NET Framework 4 and MVC 3 installed, the following folders are automatically created on your computer:

C: \ Program Files \ Microsoft ASP.NET \ ASP.NET MVC 3

C: \ Program Files (x86) \ Microsoft ASP.NET \ ASP.NET Web Pages.

These folders also contain the Assemblies folder.

ASP.NET MVC links after additional builds:

 System.Web.Mvc Microsoft.Web.Infrastructure System.Web.Razor System.Web.WebPages System.Web.WebPages.Razor 

To deploy your application on a shared server without support from your hosting company, you can simply copy these DLL files and paste them into your BIN folder.

Make local DLLs when publishing:

If you do not want to copy these files manually or do not have permission to copy and paste these files, you can use this method.

The DLL files mentioned in the manual method can be included in the Bin folder when publishing your project to production.

To include them in the Bin folder, go to the MVC application project and expand the β€œLinks node in the project tree. Select the assembly above, then right-click and selectβ€œ Properties and change β€β€œ Local copy ”toβ€œ True ”, since by default this is If the Local Copy attribute is set to TRUE, then the selected DLL will be included in the β€œBin” folder when publishing your project.

+5
source

In addition to all these answers about copying the mvc dll manually. Visual Studio 2010 (Service Pack 1) has the ability to do this for you.

  • Right-click your mvc web project.
  • Click Add Deployable Dependencies
  • Choose one or more of the three options (asp.net mvc, asp.net web pages with razor syntax, sql server compact)
  • Publish your app.

In Visual Studio, the correct links in the bin folder will now automatically expand.

+5
source

Right-click the project and choose Publish.

+4
source

very simple steps -

  • Put the application in C:\inetpub\wwwroot (for this first IIS setup on your system).
  • Now click on the windows and start recording.
  • A text box will appear, type 'inetmgr' inside it and click OK.
  • Expand Administrator on the left side of the screen by clicking on its arrow.
  • Expand sites and then expand Default Web Site.
  • Right-click your application and select Add to Web Application.

What is it. The icon next to your application will turn into a blue globe.

+2
source

All Articles