.NET Pet Shop 4 on MSDN

Congratulations to the Pet Shop team! The .NET Pet Shop 4.0 article and code base has been published on MSDN!

For those not familiar with the .NET Pet Shop, it is a sample application that shows the best practices for building an enterprise application using the .NET framework.  The .NET Pet Shop features common e-commerce scenarios such as browsing for items, maintaining a shopping cart, checking out, and keeping track of user accounts. 

With .NET Pet Shop 4.0, we did a complete user interface re-design from version 3.0 that take advantage of many of the new controls and features ASP.NET 2.0 provides including: Master Pages, Themes, Wizard control, Membership and Profile. Along with a user interface face-lift, Pet Shop 4.0 introduces a wishlist and asynchronous order processing. For further details, check out .NET Pet Shop 4 article on MSDN.

Please feel free to leave comments and questions on this blog entry and don't forget to rate the article.

- Alan
posted on Monday, February 06, 2006 2:22 PM by AlanL

Comments

# re: .NET Pet Shop 4 on MSDN

Not bad.

Just some weird, funky formatting in the files that should have been fixed before packaging, but that's OK.

One thing though that I HATE (not with Pet Shop) is that Caching is in the System.Web namespace. Why it's in there will always perplex me.

I'm going to be pouring over that Pet Shop example, because you guys did some really cool things in it.
Tuesday, February 07, 2006 9:56 AM by foobar

# re: .NET Pet Shop 4 on MSDN

Hello,

I have two SqlParameter-related implementation questions:

1. To what extent and how does caching and cloning the SqlParameters provide a performance improvement?

2. Why are the command parameters cleared immediately after executing the command? I see lines of code such as:

object val = cmd.ExecuteScalar();
cmd.Parameters.Clear();

If there is another/better place for me to ask these questions, please let me know.

Thanks for your help.
Tuesday, March 14, 2006 4:27 PM by Richard Beauchamp

# re: .NET Pet Shop 4 on MSDN

To Richard Beauchamp: It appears that this question is about SqlHelper class, which is part of the MS Application Data Block v1 and therefore should be addressed to its authors. That said, caching SqlParameter should improve the performance, since you are not dealing with casting from .NET data types into Sql data types.

As for the second question, it is always a good idea to clean up some resources, especially if the underlying class implements IDisposable interface.
Monday, March 27, 2006 6:44 PM by Alex

# re: .NET Pet Shop 4 on MSDN

Hi Alan,

Congratulations on the .NET Pet Shop 4.0 release.

I've downloaded it for training purposes (best practices on ASP.NET 2.0 apps) but I'm running across the following exception:

Exception Details: System.Data.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

I'm running on VS2005 Team Suite and SQLServer 2005. I wonder why it wants to connect to SQL Server via shared memory rather than via TCP/IP? Can't do much to check the connection string coz that part of web.config is ciphered.

Hope you can help. Thanks!
Wednesday, June 07, 2006 12:27 AM by Jon Limjap

# re: .NET Pet Shop 4 on MSDN

Hi,
I'm student in Tunisia, I have a research an a presentation to do on Pet Shop(especially about best practices). The Version 4 is great. The 3 is good. But the others are horrible!! Can someone please guide me or give some good links about the architecture. Or at list the "object Model diagram" thanks!
Sunday, December 24, 2006 1:15 PM by Aymen Boukhari

# re: .NET Pet Shop 4 on MSDN

Hi, congratulations for your great job!

Can you publish some developer documentation? Something like Class Diagram, a description about the classes, projects and namespaces. And if it's possible, a step by step guide about following the way that PetShop has been developed.

Thanks.
Monday, January 08, 2007 1:35 PM by Juliano

# re: .NET Pet Shop 4 on MSDN

Hi I have Windows Server 2003 and visual Studio 2005 installed. When I run Microsoft .NET Pet Shop 4.0.msi and I got this error,
http://www.ledtronics.com/error.jpg

anyone know what’s wrong?
Thanks
Ryan
Monday, January 14, 2008 11:44 AM by Ryan