【问题标题】:MS Dynamics CRM 4 - The current configuration system does not support user-scoped settingsMS Dynamics CRM 4 - 当前配置系统不支持用户范围的设置
【发布时间】:2011-10-04 03:00:29
【问题描述】:

我已将我的插件注册到 MSCRM 4.0。当我修改或关闭报价时,会出现错误。见下文

来自事件查看器的日志

来自源 MSCRMWebService 的事件 ID 18176 的描述不能 被发现。未安装引发此事件的组件 在您的本地计算机上或安装已损坏。你可以 在本地计算机上安装或修复组件。

如果事件源自另一台计算机,则显示信息 必须与事件一起保存。

活动中包含以下信息:

3fcb582d-1ab7-dd11-9382-001cc4e015ee f21001ba-1ee5-e011-8cb3-02bfac1e2a4b 报价关闭 50 创建 AAA.Microsoft.CRM.Plugin.CloseddateToQuote、CloseddateToQuote、 版本=1.0.0.0,文化=中性,PublicKeyToken=0b2965a625ff0115 AAA.Microsoft.CRM.Plugin.CloseddateToQuote 未处理的异常: System.Configuration.ConfigurationErrorsException:当前 配置系统不支持用户范围的设置。在 System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext 上下文,SettingsPropertyCollection 属性)在 System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider 提供者)在 System.Configuration.SettingsBase.GetPropertyValueByName(字符串 propertyName) 在 System.Configuration.SettingsBase.get_Item(String 属性名称)在 System.Configuration.ApplicationSettingsBase.GetPropertyValue(字符串 属性名称)在 System.Configuration.ApplicationSettingsBase.get_Item(字符串 属性名称)在 CloseddateToQuote.Properties.Settings.get_CloseddateToQuote_CrmSdk_CrmService() 在 AAA.Microsoft.CRM.Plugin.CloseddateToQuote.Execute(IPluginExecutionContext 上下文)在 Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext 上下文)

有人知道根本原因吗?以及如何模拟这个错误?

如何解决?

谢谢,

【问题讨论】:

    标签: dynamics-crm dynamics-crm-4


    【解决方案1】:

    您的插件似乎使用了设置文件,据我所知,插件不支持该文件。如果你需要将配置传递给你的插件,你可以使用unsecure/secure parameters in your plugin constructor.

    然后您可以在 PluginRegistrationTool 中注册配置文本(例如 XML)。在您的插件构造函数中,解析 unsecured/secure 参数并将它们保存到本地支持字段以在您的 Execute 方法中使用。

    【讨论】:

      猜你喜欢
      • 2011-01-04
      • 2012-04-09
      • 2013-11-03
      • 1970-01-01
      • 2012-04-25
      • 1970-01-01
      • 1970-01-01
      • 2012-04-30
      • 1970-01-01
      相关资源
      最近更新 更多