View Single Post
  #2 (permalink)  
Old February 1st, 2013, 02:59 AM
dpant dpant is offline
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by timtatum View Post
Getting an error in Index.aspx.cs on this line...
Code:
_presenter = new HomePagePresenter(this, ObjectFactory.GetInstance<ProductService>());
Here is the error message...
{"StructureMap Exception Code: 202\nNo Default Instance defined for PluginFamily ASPPatterns.Chap8.MVP.Model.IProductRepository, ASPPatterns.Chap8.MVP.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"}

Any thoughts?

Thanks
Tim Tatum

Hi,

make sure you have set up the default implementation instance for IProductRepository in the Bootstrapper.cs file.
Reply With Quote