Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET Design Patterns
This is the forum to discuss the Wrox book Professional ASP.NET Design Patterns by Scott Millett; ISBN: 978-0-470-29278-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET Design Patterns section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2018, 07:40 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2017
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Unhappy Chapter3 : Implement Structure Map

Chapter3/Layered-project: The BootStrapper-class in the WebUI-Layer implements Structure Map. However, in the most recent ObjectFactory is obsolete.

Question: Being fairly new to C# in general, how do I implement Structure Map version v4.0.30319 as part of this Exercise?
 
Old January 12th, 2018, 05:37 AM
Registered User
Points: 62, Level: 1
Points: 62, Level: 1 Points: 62, Level: 1 Points: 62, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2013
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Default

One option is to install an older version of the StructureMap to the web project using NuGet package manager.

If you really need to use the latest version of StructureMap please reply and I will investigate into one of my [mvc] projects where StructureMap was used to provide some information on the updated configuration/usage w/o ObjectFactory.
The Following User Says Thank You to dpant For This Useful Post:
JanVolante (January 12th, 2018)
 
Old January 12th, 2018, 06:51 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2017
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Thumbs up Chapter 3: Using older version of Structure Map

Thanks Dpant,

That's exactly what I figured out, finally. I have decided to use Visual Studio 2010 and the ASP.NET Framework 3.5/4.0 to work through the book's exercises because it's published some years ago in 2010. Until now, using older versions of third party frameworks together with the exercises/examples seems to work fine!

Kind regards,

Jan Speyer
Vlaardingen, the Netherlands
 
Old January 13th, 2018, 04:21 AM
Registered User
Points: 62, Level: 1
Points: 62, Level: 1 Points: 62, Level: 1 Points: 62, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2013
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Good. I believe all the examples will work without any problem.

FWIW, currently, I am in the process of implementing the book's case study using Visual Studio 2015 and .NET 4.5.2. Using older versions of the StructureMap and NHibernate NuGet packages works in this case, too. My priority is to make the MVC project fully functional and when it's done I may update to the latest versions and make all necessary changes. Finally, if everything works as it should I intend to upload all code to GitHub.
 
Old January 13th, 2018, 05:10 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2017
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default More recent .NET versions

That should be a great help for other readers, updating the exercises to a higher Framework version and make them available. Anyway, the book is about Patterns, whatever Framework it takes to get the examples working.

Kind regards,

Jan Speyer




Similar Threads
Thread Thread Starter Forum Replies Last Post
DataContext Lifetime : Structure Map + EF fillie76 BOOK: Professional ASP.NET Design Patterns 0 January 6th, 2012 02:20 PM
Heat Map over Google Map ajit Javascript 0 March 7th, 2008 09:01 AM
Custom Events Chapter3 rav BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 September 5th, 2007 07:43 PM
Chapter3 DB question... dtucker01 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 25th, 2006 04:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.