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

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
  • Manual Setup
  • Manual Build
  • Running Microsoft .NET Pet Shop 4
  • Configuring MSDTC
  • Connection String Encryption
  • Asynchronous Order Placement Setup
  • Microsoft .NET Pet Shop 4 Removal

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: [email protected].

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/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

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

时间: 2024-11-14 08:13:04

Help-.NET-.NET Pet Shop 4.0:ReadMe的相关文章

Microsoft .NET Pet Shop 4: Migrating an ASP.NET 1.1 Application to 2.0

249 out of 297 rated this helpful - Rate this topic Gregory LeakeMicrosoft Corporation Alan Le, Alex Arkhipov, Mike Hanley, and Steve NyholmVertigo Software, Inc. February 2006 Applies to:    Microsoft .NET Framework 2.0     Microsoft Visual Studio 2

Microsoft .NET Pet Shop 4

https://msdn.microsoft.com/en-us/library/aa479070.aspx Executive Overview The .NET Pet Shop application is designed to show the best practices for building enterprise, n-tier .NET 2.0 applications that may need to support a variety of database platfo

分众2.0:情人节放大招为重启上市造势?

分众又要上市了?自13年从纳斯达克退市以来,有关其再度上市的消息从来没有断过,14年曾传出分众年内赴港上市的消息,进入15年,分众再度上市的消息愈发逼近现实.近日,有媒体爆料称,分众或在今年7月借壳登陆A股市场,也许这回是真的了,据说分众市值可能突破1000亿人民币. 分众转型已完成 再度上市时机已成熟 江南春所带领的分众走过了波澜起伏的10年,05-07时势如破竹突飞猛进,08-09时问题爆发遭受打击,10-12业绩稳定遭遇做空,13-14退市转型重构分众,15-?分众2.0欲再上市. 回过头

恒天云 3.0:打造基于OpenStack的私有云新模式

云计算在当今IT世界中已发展地如火如荼,越来越多的企业利用云计算改造传统的数据中心,简化IT资源的交付模式.云计算是许多开放技术的融合,在这个领域,OpenStack是其中最流行最具影响力的开源IaaS云平台,全世界大批的工程师参与OpenStack各组件的开发,使其社区越来越活跃,发展也越来越快速. OpenStack发展至今已发布9个版本,但许多组件仍存在种种稳定性问题,想在企业内部落地依然困难重重,如: Dashboard组件Horizon项目发展缓慢,产品化不足,用户友好度不高: 尚未与

Linux 7个运行级别(0:关机,停机模式、1:单用户模式、2:多用户模式、3:完整的多用户文本模式、4:系统未使用,保留一般不用、5:图形化模式、6:重启模式)、重置root密码方法

init是Linux系统操作中不可缺少的程序之一.init进程,它是一个由内核启动的用户级进程.内核会在过去曾使用过init的几个地方查找它,它的正确位置(对Linux系统来说)是/sbin/init.如果内核找不到init,它就会试着运行/bin/sh,如果运行失败,系统的启动也会失败. Linux 7个运行级别(0:关机,停机模式.1:单用户模式.2:多用户模式.3:完整的多用户文本模式.4:系统未使用,保留一般不用.5:图形化模式.6:重启模式),运行级就是操作系统当前正在运行的功能级别.

微软即将发布 TypeScript 2.0:候选版本已放出

微软推出TypeScript编程语言已有差不多4年时间,不过该公司正准备发布第二个大版本.TypeScript 2.0的开发似乎已近完成,因为该公司已经开放了候选发布(RC)版本的下载.在发行说明中,其主要提到了三方面的增强,分别是——(1)Tagged unions:(2)更多Literal字体:(3)全局.包含.例外. 更多微软即将发布 TypeScript 2.0:候选版本已放出,请访问勤快学资讯http://qkxue.net/info/ 开发者们可以通过“npm install -g

C# in Depth Third Edition 学习笔记-- C#2.0: 解决C#1.0的问题 1 泛型

用泛型实现参数化类型 1. 泛型更好滴编译时检查,能消除很多装箱和拆箱 2. 泛型字典 Dictionary<TKey, TValue> 1 static Dictionary<string,int> CountWords(string text) 2 { 3 Dictionary<string,int> frequencies; 4 frequencies = new Dictionary<string,int>(); 5 6 string[] words

分享《人人都是产品经理2.0:写给泛产品经理》高清中文PDF+苏杰(作者)

下载:https://pan.baidu.com/s/1LL0QffA_tF6znwrfvGyiuQ 更多分享:http://blog.51cto.com/14050756 <人人都是产品经理2.0:写给泛产品经理>高清中文PDF+苏杰(作者) 高清中文PDF,带书签目录,彩色配图,383页,文字能够复制粘贴. 两个版本.经典书籍. <人人都是产品经理2.0--写给泛产品经理>将从人开始,以人结束,中间说事,以一个产品从无到有的过程为框架--想清楚.做出来.推出去,外加一章综合案例

麻省理工公开课:线性代数 第7课 求解Ax=0:主变量、特解

参考资料: 网易公开课:http://open.163.com/special/opencourse/daishu.html 麻省理工公开课:线性代数 教材:Introduction to Linear Algebra, 4th edition  by Gilbert Strang 链接:https://pan.baidu.com/s/1bvC85jbtOVdVdw8gYMpPZg 提取码:s9bl 假设:$A$为$3\times 4$长方形矩阵(线性相关),求解$A\mathbf{x}=0$