Reputation: 201
I have tried these steps but could not make it. When I browse my app it shows dll file.
virtual directory
for your application. This is going to tell IIS where to look for your mvc application. For this case lets assume it is C:\myApp
Build the application
however you build it with the correct solution configuration (i.e. Release
mode). Lets say the result of your build is located at C:\MyProject\bin
.C:\MyProject\bin
from your machine onto your hosting machine at C:\myApp
I am a novice to this technology.
Upvotes: 5
Views: 65200
Reputation: 615
You have to use publish action for ASP.Net web application(MVC, Forms and etc.)
Upvotes: 1
Reputation: 5832
you shouldn't just drag the bin folder. it is everything else too like the images, css, jscript files as well as the cshtml files too (your views) to the c:\myapp folder.
or perhaps just do a publish within visual studio. maybe even take a look at this to see if this helps:
How to publish my MVC 3 web application onto IIS7
but generally speaking, I build the solution. I then create the vdir in my IIS. I copy the bin and view folder along with images/css/jscript/shared folders etc... to C:\my deployed site. I then convert to application for that vdir I just created in IIS.
Upvotes: 9