ASP.Net Web应用程序部署步骤 [英] ASP.Net Web Application deployment steps

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

问题描述

我有以下两个文件夹/文件:

I have the following two folder/files:


  1. .bak文件

  2. 部署文件夹包含帐户,App_GlobalResources,App_Themes,bin,HelpFiles,Master,Media Scripts,Styles等文件夹和配置文件

与ASP.Net Web应用程序相关。如何在 IIS 上部署此应用程序。步骤?

All this is related to a ASP.Net Web Application. How do I deploy this application on IIS. Steps?

注意:我无法访问VS。但是我可以访问 VS Tools for Applications 2.0

Note: I don't have access to VS. But I do have access to VS Tools for Applications 2.0

编辑1:我按照完美的步骤通过@YashSaraiya

Edit 1: I followed the steps laid out perfectly by @YashSaraiya

但是,当我右键单击我的应用程序 - >管理应用程序 - >浏览后,按照这些步骤,我得到以下屏幕:

However, after following those steps when I right-clicked on my Application -> Manage Application -> Browse, I got the following screen:

我相信,我将不得不更改网络中的一些属性.config文件。但是我不知道要做什么变化(除了连接字符串)。

I believe, I will have to change some properties in web.config file. But I don't know what changes I will have to make (except for the connection string).

推荐答案

要执行的步骤(第2点):

Steps to follow (Point no. 2):


  1. 打开开始 - > inetmgr

  2. 展开服务器(在连接选项卡下)。展开时您将看到应用程序池和站点

  3. 展开站点,右键单击默认网站,然后选择添加应用程序...选项(这样做,将弹出一个新窗口)

  4. 输入别名(例如ABC),物理路径(部署文件夹的路径),然后单击确定(将创建一个新站点) li>
  5. 右键单击应用程序池(上述站点),然后选择添加应用程序池(这将打开一个新窗口)

  6. 选择.NET框架版本,选择管理管道模式并输入名称。单击确定。

  1. Open Start -> inetmgr
  2. Expand the server (under Connections Tab). On expanding you will see "Application Pools" and "Sites"
  3. Expand Sites and Right-click "Default Web Site" and select "Add Application..." option (On doing so, a new window will pop-up)
  4. Enter the Alias (ABC for example), Physical Path (Path to your Deployment Folder) and click OK (A new site will be created)
  5. Right-click "Application Pools" (above Sites) and select "Add Application Pool" (This will open a new window)
  6. Select the .NET Framework version, Select Managed Pipeline Mode and Enter the Name. Click Ok.






跟随步骤(第1点):


Steps to Follow (Point No. 1):


  1. 打开SSMS(SQL Server Management Studio)

  2. 连接到您的服务器

  3. 右键单击数据库(可视对象资源管理器),然后选择恢复数据库。这将打开一个新窗口

  4. 从恢复源下的设备选择

  5. 点击...除设备选项以浏览.bak文件。这将打开一个新窗口

  6. 点击添加按钮

  7. 选择您的.bak文件,然后单击确定

  8. 重复步骤6和7.现在,您将看到在选择要还原的备份下添加的一些数据

  9. 选中要还原数据库的框,然后单击确定

  1. Open SSMS (SQL Server Management Studio)
  2. Connect to your Server
  3. Right-click Databases (Visible inside Object Explorer) and select "Restore Database". This will open a new window
  4. Select From device under "Source for Restore"
  5. Click "..." besides From device option to browse for .bak file. This will open a new window
  6. Click on "Add" button
  7. Select your .bak File and click OK
  8. Repeat steps 6 and 7. Now you will see some data added under "Select the backup to restore"
  9. Check the box for which you want to restore a database and click ok

希望这有帮助!!!

这篇关于ASP.Net Web应用程序部署步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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