How to publish my MVC 3 web application onto IIS7

老子叫甜甜 提交于 2019-12-21 01:12:11

问题


if possible I need total from the beginning utter beginner advice on how to get my ASP.Net MVC 3 Razor Visual Studio 10 web application live onto my IIS 7 webserver please?

I've never tried to publish this before, and wondering what I'm missing?

I've clicked "Publish" on Visual Studio Express 10, created a "published" version of the website. I've uploaded it to my webserver, however can't make it load on the net?

Appreciate some guidance please? (not sure how / what default documents work etc...?)


回答1:


By far the easiest approach is to use Web Application Deployment.

This blog by Scott Gu gives a great intro

http://weblogs.asp.net/scottgu/archive/2010/07/29/vs-2010-web-deployment.aspx

The article talks about web.config transformations (ability to have a .Release and a .Debug version of your web.config). Later, that capability was generalized through an add-on package to work for any XML-structured file in your deployment (for example, I use it with NLog configuration files).

http://www.hanselman.com/blog/SlowCheetahWebconfigTransformationSyntaxNowGeneralizedForAnyXMLConfigurationFile.aspx



来源:https://stackoverflow.com/questions/10127491/how-to-publish-my-mvc-3-web-application-onto-iis7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!