Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > BOOK: Professional ASP.NET Design Patterns
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2017
Posts: 3
Thanks: 1
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?
Reply With Quote
  #2 (permalink)  
Old January 12th, 2018, 05:37 AM
Registered User
Points: 44, Level: 1
Points: 44, Level: 1 Points: 44, Level: 1 Points: 44, Level: 1
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jan 2013
Posts: 8
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.
Reply With Quote
The Following User Says Thank You to dpant For This Useful Post:
JanVolante (January 12th, 2018)
  #3 (permalink)  
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: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2017
Posts: 3
Thanks: 1
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
Reply With Quote
  #4 (permalink)  
Old January 13th, 2018, 04:21 AM
Registered User
Points: 44, Level: 1
Points: 44, Level: 1 Points: 44, Level: 1 Points: 44, Level: 1
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jan 2013
Posts: 8
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.
Reply With Quote
  #5 (permalink)  
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: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2017
Posts: 3
Thanks: 1
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08: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 05:21 AM



All times are GMT -4. The time now is 12:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.