简体   繁体   English

在 windows 中的 IIS 上部署 ASP.net

[英]Deploying ASP.net on IIS in windows 7

I've never actually used IIS, and I'm pretty new to the whole ASP.net thing too.我从未真正使用过 IIS,而且我对整个 ASP.net 也很陌生。

Basically, I've created a RESTful service using a VS2010 ASP.net project.基本上,我使用 VS2010 ASP.net 项目创建了一个 RESTful 服务。 I'm not sure how you get that ASP.net application (which runs great on Visual Studio) to run on an IIS server.我不确定您如何让 ASP.net 应用程序(在 Visual Studio 上运行良好)在 IIS 服务器上运行。 It's pretty easy with a Java dynamic web project and Tomcat, but here I'm not sure how to begin.使用 Java 动态 web 项目和 Tomcat 非常容易,但我不知道如何开始。

Do I simply deploy the binaries to a directory?我只是将二进制文件部署到目录吗?

Thanks!谢谢!

ther are some possibilities有一些可能性

the easy one最容易的

create under c:\inetpub\wwwroot\ a new directory for your app在 c:\inetpub\wwwroot\ 下为您的应用创建一个新目录

in the iis manager, configure this directory (create an application, set the right .net version, ... ).在 iis 管理器中,配置此目录(创建应用程序,设置正确的 .net 版本,...)。 than everything you need is to copy all your files into that directory and thats it.您需要的只是将所有文件复制到该目录中,仅此而已。

but you can also create a msi file, if you don't have the direct access to the server.但如果您没有直接访问服务器的权限,您也可以创建一个 msi 文件。

hth hth

For best testing you application use IIS 7.5 express on you development machine and set this: project->Properties->Web->Use Local IIS Web Server为了最好地测试您的应用程序,请在您的开发机器上使用 IIS 7.5 express 并设置:项目->属性->Web->使用本地 IIS Web 服务器

After testing under local IIS you can deploy you project to real IIS by using Build->Publish 'Your project' Simplest way is deploying to File System in some folder and copy its content to created site folder, associated with IIS Virtual directory.在本地 IIS 下测试后,您可以使用 Build->Publish 'Your project' 将项目部署到真正的 IIS 最简单的方法是部署到某个文件夹中的文件系统,并将其内容复制到创建的站点文件夹,与 Z5DA5ACF461B4EFB7E76ZEC861 关联的虚拟目录。 To create Sites and virtual directories, see this:要创建站点和虚拟目录,请参见:

http://www.bloggingdeveloper.com/post/Creating-IIS7-sites-applications-and-virtual-directories-using-Internet-Information-Services-Manager.aspx http://www.bloggingdeveloper.com/post/Creating-IIS7-sites-applications-and-virtual-directories-using-Internet-Information-Services-Manager.aspx

http://mvolo.com/blogs/serverside/archive/2007/07/12/Creating-IIS7-sites_2C00_-applications_2C00_-and-virtual-directories.aspx http://mvolo.com/blogs/serverside/archive/2007/07/12/Creating-IIS7-sites_2C00_-applications_2C00_-and-virtual-directories.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM