I have an ASP.NET web application that I just completed. I am now preparing to deploy the application to my company's intranet. I wanted to prepare the files so that I can simply give them to my company's IT group for uploading. I reviewed some of the previous Q&As posted on this website; however, there doesn't appear to be a simple way to deploy an ASP.NET web application from Visual Studio. From what I am finding, it looks like I have to go through the VS features to copy the files to a server. Unfortunately, I built the web app on my personal computer so I do not have access to any of my company's internal servers.
我有一个我刚刚完成的ASP.NET Web应用程序。我现在准备将应用程序部署到我公司的Intranet。我想准备文件,以便我可以简单地将它们提供给我公司的IT小组进行上传。我回顾了本网站上发布的一些以前的问答;但是,似乎没有一种从Visual Studio部署ASP.NET Web应用程序的简单方法。根据我的发现,看起来我必须通过VS功能将文件复制到服务器。不幸的是,我在个人计算机上构建了Web应用程序,因此我无法访问公司的任何内部服务器。
Therefore, I was hoping there was a way to just gather the files from VS and then place them conveniently in a folder to be copied into a server, such as IIS. Sort of like deploying a C# application by simply copying the install files to a computer. Does anyone know if this is possible?
因此,我希望有一种方法可以从VS收集文件,然后将它们方便地放在要复制到服务器(如IIS)的文件夹中。有点像通过简单地将安装文件复制到计算机来部署C#应用程序。有谁知道这是否可能?
For additional information, I am using VS 2008 and the web app reads off of an Access Db through ADO.NET (I understand I will have to change the path before deployment).
有关其他信息,我使用的是VS 2008,Web应用程序通过ADO.NET读取Access Db(我知道在部署之前我必须更改路径)。
Thank you,
Damion
3 个解决方案
#1
Sounds like you are using a Web Application Project. Right click on your web project in Visual Studio and select Publish. You can publish to a local folder on your file system, and then provide those files to your company's IT group. Be sure you select the "only files needed to run this application" option. Is your Access file in your App_Data folder or elsewhere on your network?
听起来像是在使用Web应用程序项目。在Visual Studio中右键单击您的Web项目,然后选择“发布”。您可以发布到文件系统上的本地文件夹,然后将这些文件提供给公司的IT组。确保选择“运行此应用程序所需的唯一文件”选项。您的Access文件是在App_Data文件夹中还是在网络上的其他位置?
#2
You can use the Publish feature to publish to a server that you have access to and instruct the IT group to copy it from there
您可以使用“发布”功能发布到您有权访问的服务器,并指示IT组从那里复制它
#3
Yes- copying the Web app is fairly normal. I often do it this way. You can still do this with the publish tool- simple publish locally- e.g. a different folder on C:\ (you might want to deploy only the files needed to run the application) and then copy the files to the server/drop location for the IT team.
是的 - 复制Web应用程序是很正常的。我经常这样做。您仍然可以使用发布工具执行此操作 - 在本地进行简单发布 - 例如C:\上的另一个文件夹(您可能只想部署运行应用程序所需的文件),然后将文件复制到IT团队的服务器/放置位置。
ASP.NET has always supported XCopy deployment.
ASP.NET始终支持XCopy部署。
#1
Sounds like you are using a Web Application Project. Right click on your web project in Visual Studio and select Publish. You can publish to a local folder on your file system, and then provide those files to your company's IT group. Be sure you select the "only files needed to run this application" option. Is your Access file in your App_Data folder or elsewhere on your network?
听起来像是在使用Web应用程序项目。在Visual Studio中右键单击您的Web项目,然后选择“发布”。您可以发布到文件系统上的本地文件夹,然后将这些文件提供给公司的IT组。确保选择“运行此应用程序所需的唯一文件”选项。您的Access文件是在App_Data文件夹中还是在网络上的其他位置?
#2
You can use the Publish feature to publish to a server that you have access to and instruct the IT group to copy it from there
您可以使用“发布”功能发布到您有权访问的服务器,并指示IT组从那里复制它
#3
Yes- copying the Web app is fairly normal. I often do it this way. You can still do this with the publish tool- simple publish locally- e.g. a different folder on C:\ (you might want to deploy only the files needed to run the application) and then copy the files to the server/drop location for the IT team.
是的 - 复制Web应用程序是很正常的。我经常这样做。您仍然可以使用发布工具执行此操作 - 在本地进行简单发布 - 例如C:\上的另一个文件夹(您可能只想部署运行应用程序所需的文件),然后将文件复制到IT团队的服务器/放置位置。
ASP.NET has always supported XCopy deployment.
ASP.NET始终支持XCopy部署。