c# - SCSF 配方框架错误

标签 c# cab scsf

当我尝试在我的 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/

相关文章:

C# 应用程序调用 Powershell 脚本问题

c# - Twilio 短信到语音邮件

visual-studio - Visual Studio 中是否有 "ZIP project"?

scsf - MS SCSF-CAB 框架是否过时了,现在有更好的框架吗?

c# - 在 app.config 中存储树状信息的最佳方式

c# - 如何使用 .NET 4.0 读取 .RTF 文件

c# - 在 Windows 任务计划程序中每天安排任务(周日除外)

c# - .NET Compact Framework - Windows Mobile 6.5 上的 CAB 自动更新

internet-explorer - 在 Windows Vista 和 7 上安装 .cab 文件 (ActiveX) 的问题