Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > BOOK: Professional ASP.NET Design Patterns
|
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 November 20th, 2010, 10:18 AM
elbandit's Avatar
Wrox Author
 
Join Date: May 2007
Posts: 107
Thanks: 10
Thanked 17 Times in 15 Posts
Default See the latest ASP.NET Design Patterns code and contribute

Please check out the books codeplex project site that contains the most up to date version of the case study featured at the end of the book.

http://aspnetdesignpatterns.codeplex.com

Cheers
Scott
 
Old January 10th, 2011, 09:37 PM
Authorized User
 
Join Date: Dec 2010
Posts: 23
Thanks: 3
Thanked 2 Times in 2 Posts
Default

Scott, I'm getting an exception when I try to run the SpecFlow/Watin tests:
Agathas.Storefront.Acceptance.Tests.Features.AddPr oductsToABasketFeature.AddProductToABasket:
System.Threading.ThreadStateException : The CurrentThread needs to have it's ApartmentState set to ApartmentState.STA to be able to automate Internet Explorer.

I got this from the ReSharper runner, and the NUnit GUI runner
 
Old January 11th, 2011, 06:01 AM
elbandit's Avatar
Wrox Author
 
Join Date: May 2007
Posts: 107
Thanks: 10
Thanked 17 Times in 15 Posts
Default

Hi ksouthworth,

I forgot to include a configuration file when I committed the changes.

Add an app.config file to the root of the Agathas.Storefront.Acceptance.Tests project with the following content...

Code:
 
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <sectionGroup name="NUnit">
      <section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/>
    </sectionGroup>
  </configSections>
  <NUnit>
    <TestRunner>
      <!-- Valid values are STA,MTA. Others ignored. -->
      <add key="ApartmentState" value="STA" />
    </TestRunner>
  </NUnit>
 
</configuration>
You can read why we need to add this file here http://watin.sourceforge.net/apartme...nfo.html#nunit

Let me know if this doesn't solve your problem.

Cheers
Scott
 
Old January 11th, 2011, 10:35 AM
Authorized User
 
Join Date: Dec 2010
Posts: 23
Thanks: 3
Thanked 2 Times in 2 Posts
Default

Thanks, that did the trick!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Professional ASP.NET Design Patterns book? Lee Dumond Forum and Wrox.com Feedback 9 July 15th, 2010 06:18 AM
Source code for Professional C# Design Patterns ganeshr74 C# 4 August 29th, 2008 01:45 AM
Code download for Design Patterns yaip Wrox Book Feedback 2 April 21st, 2005 01:47 AM
Source code for Professional C# Design Patterns Ap aja_boy C# 0 May 29th, 2004 09:43 AM
Where is the code for J2EE Design Patterns Applied stony All Other Wrox Books 2 May 3rd, 2004 09:54 PM





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