1
Vote

SCSF Recipe Framework Error - Microsoft.Practices.WizardFramework.WizardExecutionException: The wizard failed to execute. The error was: Unable to cast object of type

description

I am experiencing a random issue with the SCSF 2010 guidance package when I try to add a View with Presenter in my VS2010 project. This also happens when I try to add a Business module as well.
 
The issue seems to happen randomly because the same exact solution opened in two different locations, one will let me add views and the other one will throw the exception. Its really mind boggling.
 
I have to check out an earlier version of my solution (which i know will let me add views) and create everything and import it into the most current version.
 
It seems to be related to this WCSF issue but I had no luck with the solutions proposed here.
 
http://webclientguidance.codeplex.com/discussions/263101
 
Deleting the gpState and re-enabling SCSF did not help.
 
This is the error:
 
Microsoft.Practices.WizardFramework.WizardExecutionException: The wizard failed to execute. The error was:
Unable to cast object of type 'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings' to type 'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ITypeRegistrationsProvider'. ---> System.InvalidCastException: Unable to cast object of type 'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings' to type 'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ITypeRegistrationsProvider'.

comments