ASP.Net Web应用程序部署步骤 [英] ASP.Net Web Application deployment steps
问题描述
我有以下两个文件夹/文件:
I have the following two folder/files:
- .bak文件
- 部署文件夹包含帐户,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):
- 打开开始 - > inetmgr
- 展开服务器(在连接选项卡下)。展开时您将看到应用程序池和站点
- 展开站点,右键单击默认网站,然后选择添加应用程序...选项(这样做,将弹出一个新窗口)
- 输入别名(例如ABC),物理路径(部署文件夹的路径),然后单击确定(将创建一个新站点) li>
- 右键单击应用程序池(上述站点),然后选择添加应用程序池(这将打开一个新窗口)
- 选择.NET框架版本,选择管理管道模式并输入名称。单击确定。
- Open Start -> inetmgr
- Expand the server (under Connections Tab). On expanding you will see "Application Pools" and "Sites"
- Expand Sites and Right-click "Default Web Site" and select "Add Application..." option (On doing so, a new window will pop-up)
- Enter the Alias (ABC for example), Physical Path (Path to your Deployment Folder) and click OK (A new site will be created)
- Right-click "Application Pools" (above Sites) and select "Add Application Pool" (This will open a new window)
- Select the .NET Framework version, Select Managed Pipeline Mode and Enter the Name. Click Ok.
跟随步骤(第1点):
Steps to Follow (Point No. 1):
- 打开SSMS(SQL Server Management Studio)
- 连接到您的服务器
- 右键单击数据库(可视对象资源管理器),然后选择恢复数据库。这将打开一个新窗口
- 从恢复源下的设备选择
- 点击...除设备选项以浏览.bak文件。这将打开一个新窗口
- 点击添加按钮
- 选择您的.bak文件,然后单击确定
- 重复步骤6和7.现在,您将看到在选择要还原的备份下添加的一些数据
- 选中要还原数据库的框,然后单击确定
- Open SSMS (SQL Server Management Studio)
- Connect to your Server
- Right-click Databases (Visible inside Object Explorer) and select "Restore Database". This will open a new window
- Select From device under "Source for Restore"
- Click "..." besides From device option to browse for .bak file. This will open a new window
- Click on "Add" button
- Select your .bak File and click OK
- Repeat steps 6 and 7. Now you will see some data added under "Select the backup to restore"
- Check the box for which you want to restore a database and click ok
希望这有帮助!!!
这篇关于ASP.Net Web应用程序部署步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!