Question

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'.

No correct solution

OTHER TIPS

I believe this is the answer to your problem.

The problem can be resolved by removing a Page Flow project and the Page Flow settings in web.config (including connection string and http modules).

Which you can find here.

Recipe Framework Error when adding page with presenter.

... some users have also suggested that deleting the .gpState file of the solution, re-opening the visual studio & solution and re-enabling WCSF Guidance seems to fix this problem temporarily. Please, create a backup of your .gpState file before trying this approach.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top