当我尝试在我的 VS2010 项目中添加带有 Presenter 的 View 时,我遇到了 SCSF 2010 指导包的随机问题。当我尝试添加业务模块时也会发生这种情况。
这个问题似乎是随机发生的,因为在两个不同的位置打开了完全相同的解决方案,一个会让我添加 View ,另一个会抛出异常。真是令人难以置信。有时它会让我添加 View 没问题,有时它只是崩溃。
我必须从源代码中检查我的解决方案的早期版本(我知道这会让我添加 View )并创建所有内容并将其导入到最新版本中。
这似乎与这个 WCSF 问题有关,但我对这里提出的解决方案并不满意。
http://webclientguidance.codeplex.com/discussions/263101
删除 gpState 并重新启用 SCSF 没有帮助。
这是错误:
Microsoft.Practices.WizardFramework.WizardExecutionException: 向导执行失败。错误是: 无法将“Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings”类型的对象转换为类型“Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ITypeRegistrationsProvider”。 ---> System.InvalidCastException:无法将“Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings”类型的对象转换为类型“Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ITypeRegistrationsProvider”。
最佳答案
我相信这是您问题的答案。
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).
你可以找到here .
关于c# - SCSF 配方框架错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11222683/