狀況
當您檢視活動表單在 Microsoft Dynamics CRM 4.0 時,您會收到下列錯誤訊息︰
錯誤︰ 型別 'System.Web.HttpUnhandledException' 擲回例外狀況。錯誤訊息︰ 目前的 web 要求執行期間發生未處理的例外狀況。請檢閱堆疊追蹤,如需詳細資訊,有關錯誤及其產生程式碼中的位置。錯誤的詳細資料︰ 擲回例外狀況的型別 'System.Web.HttpUnhandledException'。原始程式檔︰ 無法使用的行號︰ 無法使用要求的 URL: http://URL
堆疊追蹤資訊: [ArgumentNullException︰ 索引鍵不可為 null。參數名稱︰ 索引鍵] 在 System.Collections.Hashtable.Contains (物件識別碼),在 Microsoft.Crm.Metadata.PreloadedMetadataCacheDataProvider.TryGetEntity 的 System.Collections.Hashtable.ContainsKey (物件識別碼) (字串 entityName NameMappingType 對應) 在 Microsoft.Crm.Metadata.DynamicMetadataCache.GetEntity (字串 entityName NameMappingType 對應) 在 Microsoft.Crm.Security.User.HasPrivilege (IUser 使用者、 字串 entityName、 PrivilegeType privilegeType、 PrivilegeDepth privilegeDepth) 在 Microsoft.Crm.Security.User.HasPrivilege (IUser 使用者、 字串 entityName、 AccessRights accessRights、 PrivilegeDepth privilegeDepth) 在 Microsoft.Crm.Application.Components.Sdk.FormControls.Web.LookupControl.set_LookupTypes ([] 值 Int32),在 Microsoft.Crm.Security.User.HasPrivilege (IUser 使用者、 字串 entityName、 AccessRights accessRights)Microsoft.Crm.Application.Components.Sdk.FormControls.Web.LookupControl.set_Metadata (AttributeMetadata 值),在 Microsoft.Crm.Application.ControlActivator.CreateControl (ControlDescriptor controlDescriptor,字串 clientId) 在 Microsoft.Crm.Application.Forms.CrudForm.BuildFormModel (FormDescriptor formDescriptor),在 Microsoft.Crm.Application.Forms.CustomizableForm.Execute (實體實體),在 Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender (EventArgs e) 在 System.Web.UI.Page.ProcessRequestMain System.Web.UI.Control.PreRenderRecursiveInternal() Microsoft.Crm.Web.Activities.PhoneCallDetailPage.ConfigureForm() Microsoft.Crm.Web.Activities.BasicActivityPage.ConfigureForm() Microsoft.Crm.Application.Forms.CustomizableForm.Execute (實體的實體,字串 formType) (布林 includeStagesBeforeAsyncPoint,則為 TrueincludeStagesAfterAsyncPoint)
原因
之所以發生這個問題,是因為FormDescriptor物件會快取的某些實體中繼資料。因此,就會發生ArgumentNullException例外狀況。
解決方案
Microsoft Dynamics CRM 4.0 的最新的累積更新彙總套件中解決此問題。如需詳細資訊,按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件:
949256 Microsoft Dynamics CRM 4.0 更新與 h otfix
狀態
Microsoft 已確認這是<套用>一節所列出的 Microsoft 產品的問題。
更多的資訊
如需有關軟體更新術語的詳細資訊,請按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件:
用來描述 Microsoft 軟體更新標準術語的編號 824684描述如需有關 Microsoft Dynamics CRM 軟體 hotfix 及更新封裝術語的詳細資訊,請按一下下面的文件編號,檢視 「 Microsoft 知識庫 」 中的文件︰
887283 Microsoft 商務解決方案 CRM 軟體 hotfix 及更新套件命名標準