2011-10-04 48 views
0

我已將我的插件註冊到MSCRM 4.0。當我修改或關閉報價時,會出現錯誤。看到它下面MS Dynamics CRM 4 - 當前配置系統不支持用戶範圍設置

Error

登錄從事件觀看者

從源MSCRMWebService事件ID 18176的描述不能 找到。引發此事件的組件未在本地計算機上安裝 或安裝已損壞。您可以在本地計算機上安裝或修復組件。

如果事件發生在另一臺計算機上,顯示信息 必須與該事件一起保存。

下面的信息包括與所述事件:

3fcb582d-1ab7-dd11-9382-001cc4e015ee f21001ba-1ee5-e011-8cb3-02bfac1e2a4b quoteclose 50創建 AAA.Microsoft.CRM.Plugin.CloseddateToQuote, CloseddateToQuote, 版本= 1.0.0.0,文化=中性公鑰= 0b2965a625ff0115 AAA.Microsoft.CRM.Plugin.CloseddateToQuote未處理的異常: System.Configuration.ConfigurationErrorsException:當前 配置系統不支持用戶範圍的設置。在處 System.Configuration.SettingsBase.GetPropertyValueByName(字符串 propertyName的)在System.Configuration System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider 提供商) System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext 上下文,SettingsPropertyCollection屬性)。 SettingsBase.get_Item(字符串 propertyName的)在 System.Configuration.ApplicationSettingsBase.GetPropertyValue(字符串 propertyName的)在 System.Configuration.ApplicationSettingsBase.get_Item(字符串 propertyName的)在 CloseddateToQuote.Properties.Settings.get_CloseddateToQuote_CrmSdk_CrmService() 在 AAA.Microsoft.CRM.Plugin.CloseddateToQuote.Execute(IPluginExecutionContext 上下文)在 Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext 上下文)

有沒有人知道的根本原因?和如何模擬這個錯誤?

如何解決?

感謝,

回答

1

它看起來像你的插件使用的設置文件,據我所知是沒有插件支持。如果您需要將配置傳遞給您的插件,您可以使用unsecure/secure parameters in your plugin constructor.

這樣做,然後您可以在PluginRegistrationTool中註冊配置文本(如XML)。在您的插件構造函數中,解析不安全的/安全參數並將它們保存到本地支持字段以用於Execute方法。