How to deploy an ASP.Net MVC 4 application in IIS with a bin folder

I tried these steps but could not do it. When I browse my application, it shows a DLL file.

  • Log in to the computer where your application is located.
  • Use IIS Manager to create a new website for your application.
  • Create a new application on this site. I believe that this will also automatically create an application pool with the same name for you and will use it by default.
  • Specify virtual directoryfor your application. This will tell IIS where to look for your mvc application. For this case, suppose thatC:\myApp
  • On your own machine, Build the applicationhowever, you will create it with the correct solution configuration (i.e. Release). Let's say the result of your assembly is in C:\MyProject\bin.
  • Copy C:\MyProject\binfrom your computer to the hosting machine inC:\myApp

I am new to this technology.

+4
source share
2 answers

you should not just drag the bin folder. all this also looks like images, css, jscript files, as well as cshtml files (your views) in the c: \ myapp folder.

or maybe just post to visual studio. maybe even take a look at this to see if this helps:

How to publish my MVC 3 web application on IIS7

but, generally speaking, I am building a solution. Then I create vdir in my IIS. I copy the bin and view folder along with the images / css / jscript / shared folders etc ... to C: \ my deployed site. Then I convert to the application for this vdir that I just created in IIS.

+8

- ASP.Net(MVC, Forms ..)

+1

All Articles