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 November 20th, 2010, 10:18 AM
elbandit's Avatar
Wrox Author
Points: 599, Level: 8
Points: 599, Level: 8 Points: 599, Level: 8 Points: 599, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2007
Location: Southsea, Portsmouth, Hampshire, United Kingdom.
Posts: 107
Thanks: 11
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
Reply With Quote
  #2 (permalink)  
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
Reply With Quote
  #3 (permalink)  
Old January 11th, 2011, 06:01 AM
elbandit's Avatar
Wrox Author
Points: 599, Level: 8
Points: 599, Level: 8 Points: 599, Level: 8 Points: 599, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2007
Location: Southsea, Portsmouth, Hampshire, United Kingdom.
Posts: 107
Thanks: 11
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
Reply With Quote
  #4 (permalink)  
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!
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
Professional ASP.NET Design Patterns book? Lee Dumond Forum and Wrox.com Feedback 9 July 15th, 2010 07:18 AM
Source code for Professional C# Design Patterns ganeshr74 C# 4 August 29th, 2008 02:45 AM
Code download for Design Patterns yaip Wrox Book Feedback 2 April 21st, 2005 02:47 AM
Source code for Professional C# Design Patterns Ap aja_boy C# 0 May 29th, 2004 10:43 AM
Where is the code for J2EE Design Patterns Applied stony All Other Wrox Books 2 May 3rd, 2004 10:54 PM



All times are GMT -4. The time now is 08:08 AM.


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