新手尝试部署Asp.Net网站 [英] Newbie Trying To Deploy Asp.Net Website

查看:115
本文介绍了新手尝试部署Asp.Net网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我基本上想知道什么来部署一个Asp.Net网站最好的办法是,大多是从看安全的地步。现在,我想用发布Visual Studio 2010中可能有人直接我就如何做到这一点安全一个很好的教程的网站?例如,可以在它通过Visual Studio的加密连接来完成?是否需要在服务器上安装任何软件就可以做到这一点?我应该使用不同的程序,首先打开一个SSL(TLS)连接,如果是这样,哪个程序(它标配视窗)?

I'm basically wondering what the best way to deploy an Asp.Net Web Site is, mostly from the point of view of security. Right now, I'm trying to publish the website using Visual Studio 2010. Could someone direct me to a good tutorial on how to do this securely? For example, can it be done over an encrypted connection via Visual Studio? Is it necessary to install any software on the server to do this? Should I use a different program to open up an SSL (TLS) connection first, and if so, which program (does it come standard with windows)?

服务器运行的是Windows Server 2008的开发是在Vista上。

The server is running Windows Server 2008. Development is on Vista.

在事先非常感谢在这个问题上任何方向!

Many thanks in advance for any direction in this matter!

安德鲁

推荐答案

注意:第一件事是检查与服务器的所有者,因为他们常常会为您提供一个FTP连接,将采取护理配置IIS的。

Note: First thing is to check with the owner of the server, as they often will provide you an FTP connection and will take care of configuring IIS.

如果您要添加的安全性,使密钥文件,并签署您的集会,并考虑您的DLL运行Dotfuscator的社区版是包含在Visual Studio。这里是我已经把更多信息在 Dotfuscator 前面一个问题。

If you want to add security, make a keyfile and sign your assemblies and consider running Dotfuscator on your dlls, the community edition is included in Visual Studio. Here is an earlier question where I've put more info on Dotfuscator.

如果你必须做你自己的部署,这里要考虑几件事情。

If you have to do the deployment yourself, here's a few things to consider.


  • 的XCopy (容易)

  • MSI (必须创建一个安装程序,可以在Visual Studio中很容易地做到这一点)

  • XCopy (easy)
  • MSI (have to create a setup program, you can do this easily in Visual Studio)

有在使用Visual Studio部署没有安全性的优势,但也可以使用Visual Studio创建一个小的安装程序。要确保安全的一件事是不部署任何的.cs文件。 prepare你的文件,你应该编译在Release模式,确保调试是不是在你的配置文件中启用,让您的bin和它的dll,也是ASPX,ASMX,ASCX,SVC,CSS,JS和配置文件。

There is no security advantage in deploying using Visual Studio, but you can use Visual Studio to create a small setup program. One thing you want to make sure for security is DO NOT deploy any .cs files. Prepare your files, you should compile in Release mode, make sure debug is not enabled in your config file, keep your bin and it's dll, also the aspx, asmx, ascx, svc, css, js, and config files.


  • 的XCopy :安装一个小型的FTP服务器,或使用一个公司alreayd了,这将让你得到你的文件,一旦你登录到目标计算机。你应该能够得到一个管理员帐户的目标机器,只问域的系统管理员,然后登录使用远程桌面,得到了您的FTP站点,并下载你的文件。在目标机器上打开IIS,创建一个虚拟目录和一个游泳池。您的文件复制到的位置,如果你使用一个,然后测试你的网站配置连接字符串,您的数据库。

  • MSI :与上述相同的过程,除了安装程序将创建虚拟目录和游泳池为您

  • XCopy: Install a small FTP server, or use one your company alreayd has, this will allow you to get your files once you are logged into the target machine. You should be able to get an administrator account for the target machine, just ask the sysadmin of the domain, then log on using remote desktop, got to your ftp site, and download your files. Open IIS on the target machine, create a virtual directory and a pool. Copy your files to the location, configure your connection string to your DB if you use one, then test your website.
  • MSI: same process as above, except the setup will create the virtual directory and pool for you.

下面是最佳做法,额外的信息来自官方 ASP.Net网站

Here is extra info on best practices from the official ASP.Net website.

这篇关于新手尝试部署Asp.Net网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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