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. Sometimes it will let me add Views no problem, sometimes it just crashes.
I have to check out an earlier version of my solution from source (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'.