码迷,mamicode.com
首页 > Web开发 > 详细

Help-.NET-.NET Pet Shop 4.0:ReadMe

时间:2020-04-08 22:46:02      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:optional   contents   color   account   dal   cli   define   mini   turn   

ylbtech-Help-.NET-.NET Pet Shop 4.0:ReadMe

 

1.返回顶部
1、

Microsoft .NET Pet Shop 4 ReadMe

© 2005 Microsoft Corporation. All rights reserved.
 
Contents

This documentation provides installation instructions for Microsoft .NET Pet Shop 4.

Installation Prerequisites

Microsoft .NET Pet Shop 4 has the following installation prerequisites:

  • Operating System: Windows XP SP2 or Windows Server 2003 
  • Microsoft.NET Framework 2.0
  • Microsoft SQL Server 2005, SQL Server Express, or Oracle 10g
  • Microsoft Internet Explorer 6 or greater
  • Microsoft Visual Studio® .NET 2005

Manual Setup Instructions (“Code Only” install option)

1.      Navigate to <Pet Shop 4 Install Folder>\DatabaseScripts.

2.      Edit InstallDatabases.cmd:

a.      Modify the connection settings to reflect the way you connect to SQL Server. Use osql /? command for reference.

b.      Modify the path to the .NET 2.0 runtime environment.

3.      Run InstallDatabases.cmd.   It will install the Microsoft .NET Pet Shop 4 databases.

4.      Verify that there were no errors during installation.

5.      Edit <Pet Shop 4 Install Folder>\Web\Web.config:

a.   Modify the server path in SQLProfileConnString, SQLMembershipConnString, SQLConnString1, SQLConnString2, and SQLConnString3 connection strings, using host_name\instance_name schema. Example: server=(local)\sqlexpress;.

Note: To install Pet Shop 4 databases on Oracle 10g, please use the “Full Install” option during setup.

Return to top


Manual Build Instructions

1.  Run <Pet Shop 4 Install Folder>\Build.bat.  This utility will build the entire solution in release mode.

Return to top


Running Microsoft .NET Pet Shop 4

1.  Open the Petshop solution file from the Start Menu | All Programs | Microsoft .NET Pet Shop 4 | Petshop.sln.

2.  Set the Web project as the startup project. You can do this by right-clicking on the web project and selecting Set as StartUp Project.

3.  Right-click on the Solution node and select Build.

4. Expand the Web project, right-click on Default.aspx and select View in Browser.

5. If you install Membership/Profile databases on SQL Server or SQL Server Express, 12 demo accounts will be created. You can use any of the following usernames: demo, AdamBarr, KimAbercrombie, RobYoung, TomYoutsey, GaryWYukish, RobCaron, KarinZimprich, RandallBoseman, KevinKennedy, DianeTibbott, or GarrettYoung. The password for all demo accounts is set to: pass@word1.

Return to top


Configuring MSDTC

Since the checkout step uses a distributed transaction, MSDTC must be running. To start the MSDTC service, open Administrative Tools | Services and start the Distributed Transaction Coordinator service.

Return to top


Encrypting and Decrypting the Connection Strings

Run <Pet Shop 4 Install Folder>\EncryptWebConfig.bat or DecryptWebConfig.bat to encrypt or decrypt connection strings in Web.config.

Note: If you select the “Full Install” option during setup, Web.config is automatically encrypted. Use DecryptWebConfig.bat should you need to decrypt it.

Return to top 


Asynchronous Order Placement Setup Instructions

1.      Add a new private queue for Pet Shop called “PSOrders”

2.      Modify web.config:

a.      Change the OrderStrategyClass key to OrderAsynchronous
< add key="OrderStrategyClass" value="PetShop.BLL.OrderAsynchronous"/>

b.      Change the MachineName in the following line to your MSMQ computer name.
< add key="OrderQueuePath" value="FormatName:DIRECT=OS:MachineName\Private$\PSOrders"/>

3.      Modify app.config in the OrderProcessor project:

a.      Change the MachineName in the OrderQueuePath key:
< add key="OrderQueuePath" value="FormatName:DIRECT=OS:MachineName\Private$\PSOrders"/>

Return to top 


Microsoft .NET Pet Shop 4 Removal Instructions

Removing Microsoft .NET Pet Shop 4 is a two-step process. First delete the databases.  Second delete the application. 

1. Delete the Microsoft .NET Pet Shop 4 databases (optional)

1.1. Navigate to <Pet Shop 4 Install Folder>\DatabaseScripts.

1.2. Open UninstallDatabases.cmd files in Notepad.

1.3. Modify connection settings to reflect the way you connect to the SQL Server. Use osql /? command for reference.

1.4. Run<Pet Shop 4 Install Folder>\DatabaseScripts\UninstallDatabases.cmd.

If for any reason you were not able to uninstall databases using the provided script, you can remove the databases using the Microsoft SQL Server Management Studio, Enterprise Manager, or a similar tool:

A. Open the Microsoft SQL Server Management Studio and delete the four Microsoft .NET Pet Shop 4 databases: MSPetShop4, MSPetShop4Orders, MSPetShop4Services, and MSPetShop4Profile.

B. Delete the mspetshop server login from the Security | Logins node.

2. Delete the Microsoft .NET Pet Shop 4 application

2.1.      Open Add and Remove Programs from the Control Panel

2.2.      Select the “.NET Pet Shop 4.0” application. 

2.3.      Select the Remove option. 

Return to top

2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
技术图片 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

Help-.NET-.NET Pet Shop 4.0:ReadMe

标签:optional   contents   color   account   dal   cli   define   mini   turn   

原文地址:https://www.cnblogs.com/storebook/p/12663048.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!