Sunday, October 29, 2006

.Net Pet shop 4.0 Architecture

Petshop Architecture 4.0

I have used earlier Petshop Architecture. It left a mixed feeling. It was simple to start with but not extensible enough for complex distributed computing needs.
I decided to revisit the new Petshop Architecture 4.0. My thoughts


Architectural ConcernObservationMy Rating
High level Diagramhttp://msdn.microsoft.com/library/en-us/dnbda/html/bdasamppet409L.gifA+
Exploiting ASP.NET 2.0Generics ,Provider ,Caching, Transaction A+
Seperation of Business Logic and Persistence LogicBLL,Model,
Pattern for transferring data between Business Layer and Data LayerModel(Data Tranfer Object)A+
Optimized for Distributed ScenarioWhether Chunky Interfaces are possible between BLL and DLL Under Evaluation
Is optimized for Service Oriented Architecture? Under Evaluation
Business Rule Processor :Under Evaluation
Businses Layer Richness Under Evaluation


References
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/bdasamppet4.asp



Setting up PetShop Application
Setting up .Net PetShop Application has been a very daunting and time-consuming exercise.

1. Do read the ReadMe.Html File. It contain very critical steps to performed before one can run the application

2 . Try running the InstallDatabases.cmd.

3. You can Install SQL Express from this link


4. If you get error that your script is failing because remote is not allowed for SQL Express ,try this link
http://blogs.vertigosoftware.com/petshop/archive/2005/10/13/Enabling_Remote_Connections_to_SQL_Server_Express.aspx

5. If it does not work like it did not work for me , go to your
Edit \.NET Pet Shop 4.0\DatabaseScripts\Sql and run the individual scripts.

Under Security Folder in SQL Server Management Studio Express, do add your user account.


6. Edit \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;.

7. Add this section after decrypting the Web.Config file using the utility DecryptWebConfig.bat

More Information
http://msdn2.microsoft.com/en-us/library/ms998283.aspx



{"The database 'MSPetShop4' is not enabled for SQL cache notification.\r\n\r\nTo enable a database for SQL cache notification, please use the System.Web.Caching.SqlCacheDependencyAdmin.EnableNotifications method, or the command line tool aspnet_regsql. To use the tool, please run 'aspnet_regsql.exe -?' for more information."}

C:\Program Files\Microsoft\.NET Pet Shop 4.0>aspnet_regsql.exe -d MsPetShop4 -ed
-E

8. You cannot enable Notification with SQL Express, so just comment the code and voila.
http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx




Proposed changes

No comments: