ASP.NET应用程序部署要求 [英] ASP.NET application deployment requirements

查看:70
本文介绍了ASP.NET应用程序部署要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发第一个C#ASP.NET(v 4.5.2)Web API,目前为止,我仅使用带有IIS Express 10的Visual Studio 2015 Professional进行调试.我一般没有IIS或ASP.NET部署的经验.所以我的问题:

I am in the middle of developing my first C# ASP.NET (v 4.5.2) Web API, and until now i have been only using Visual Studio 2015 Professional, with IIS Express 10 for debugging. I have no previous experience with IIS or ASP.NET deployment in general. So my questions :

  1. 当我发布应用程序并尝试将其部署到生产IIS(可能是IIS v.8)时,我是否需要任何.Net框架或服务器上手动安装的任何其他软件包?那我使用的任何Nuget软件包怎么办?发布过程会包装所有需要的文件吗?
  2. 我需要哪个版本的IIS申请工作?
  3. 是否还有其他考虑因素可确保将ASP.NET应用程序在生产环境上成功部署?就像我使用MVC一样或Entity Framework,我需要手动将其安装在服务器?
  4. :忘记了Crystal Reports!我想这必须手动安装在服务器上吗?
  1. When i publish my application and try to deploy it on the production IIS (which will probably be IIS v.8), am i going to need any .Net frameworks or any other packages manually installed on the server? What about any Nuget packages i use? Does the publishing process wrap all the needed files?
  2. Which version of IIS am i going to need in order for my application to work?
  3. Are there any other considerations to ensure that an ASP.NET app will be deployed successfully on a production environment? Like if i use MVC or Entity Framework do i need to install those manually on the server?
  4. EDIT : Forgot about Crystal Reports! I suppose this has to be manually installed on the server right?

推荐答案

1.

如果您使用的是IIS的新版本,则不必安装.net框架.如果目标框架在该服务器上不存在,则必须安装它并注册iis: https://msdn.microsoft.com/de-de/library/k6h9cz8h(v = vs.100).aspx

if you take a new version of IIS you should not have to install .net frameworks. If the target framework does not exist on that server, you have to install it and register for iis : https://msdn.microsoft.com/de-de/library/k6h9cz8h(v=vs.100).aspx

nuget包不会有问题,因为Vs也会部署所有dll(例如express上的)

The nuget packages won't be a problem because Vs will deploy all dlls too (like on express)

如果您使用的是Url-Rewrite之类的特殊功能,则必须手动安装这些模块(例如,用于url-rewrite https://www.iis.net/downloads/microsoft/url-rewrite )

If you are using some special things like Url-Rewrite you have to install these modules manually (e.g. for url-rewrite https://www.iis.net/downloads/microsoft/url-rewrite)

2.

关于版本,如果您想使其简单易用,请使用最新版本.但这取决于您使用哪个服务器版本,即使大多数应用程序也可以在较旧的IIS上运行.如果您使用某种特殊"配置,也许必须对web.config进行一些更改

About the version, if you want to do it easy, just use the newest. But it depends on which server-version do you use, even though most applications work on older IIS too. Maybe some changes in the web.config have to be made if you are using some kind of "special" configurations

3.

对于部署,您有几种选择:

For deployment you have several options:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆