cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Summary

This article covers a KeyNotFoundException: The given key was not present in the dictionary error when you are accessing the Assets> Change Management tab.

Symptoms

When accessing the Assets> Change Management tab you may encounter a red bar error in the WebUI (please find example screenshot below).

Error


Along with the above error, the following error is also visible in the WebUI log:

[ERROR 2015-10-20 15:26:34,469 320053ms HandleErrorAttribute  ] An unhandled error occurred
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at Flexera.Web.Data.ViewModels.DeviceComplianceListModel.get_SelectedValues()
   at ASP._Page_Views_AssetsOptions_Templates_MultiChecklist_cshtml.Execute() in c:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\WebUI\Views\AssetsOptions\Templates\MultiChecklist.cshtml:line 19
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at Flexera.Web.Core.Display.WebViewBase`2.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData)
   at Flexera.Web.Core.Display.UiHelper_PartialView.PartialWithParams(UiHelper ui, String partialName, Object model, Object objectForParams)
   at Flexera.Web.Core.Display.UiHelper_Grid.ConfigureValueTemplate_Content(UiHelper ui, GridCustomSettings settings, ModelMetadata property, String valueTemplate, GridViewDataItemTemplateContainer container)
   at Flexera.Web.Core.Display.UiHelper_Grid.<>c__DisplayClass81.<ConfigureValueTemplate>b__7d(GridViewDataItemTemplateContainer container)
   at DevExpress.Web.Mvc.Internal.ContentControl`1.RenderInternal(HtmlTextWriter writer)
   at DevExpress.Web.Mvc.Internal.ContentControl`1.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.WebControls.TableCell.RenderContents(HtmlTextWriter writer)
   at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
   at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.WebControls.Table.RenderContents(HtmlTextWriter writer)
   at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
   at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
   at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
   at DevExpress.Web.ASPxClasses.ASPxWebControlBase.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at DevExpress.Web.Mvc.GridViewExtension.RenderCallbackResultControl()
   at DevExpress.Web.Mvc.ExtensionBase.Render()
   at Flexera.Web.Core.Display.UiHelper_Grid.RenderGrid(UiHelper ui, IViewModel modelType, IEnumerable modelList, Action`1 customSettings)
   at Flexera.Web.Core.Display.UiHelper_Grid.Grid(UiHelper ui, Object model, Func`2 toolbarRazor, Func`2 noResultsRazor, Boolean allowSelection, Boolean showFilter, Boolean delayLoad)
   at Flexera.Web.Core.Display.UiHelper_Grid.GridForModel(UiHelper ui, Func`2 toolbarRazor, Func`2 noResultsRazor, Boolean allowSelection, Boolean showFilter, Boolean delayLoad)
   at ASP._Page_Views_AssetsOptions_DeviceCompliance_Grid_cshtml.Execute() in c:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\WebUI\Views\AssetsOptions\DeviceCompliance_Grid.cshtml:line 3
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at Flexera.Web.Core.Display.WebViewBase`2.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)


To help diagnose this further, please run the below query:
SELECT * FROM AssetComplianceColumnI18N

Looking at your query results you may find that the TrackComplianceBitwiseValue column is set to 1025 for certain hardware values such as Number of Processors", "Processor Type" and "Total Memory". They means these properties are being tracked for "Workstation" and "Laptop".

Cause

This is caused by tracking hardware asset properties for "Workstation" and "Laptop". At the moment, the software is not handling this combination properly.

Workaround

The workaround to resolve this is to choose either "Workstation" OR "Laptop" for properties such as "Number of Processors", "Processor Type" and "Total Memory". They can't have both selected for now.

Additional Information

This is proposed to be fixed in 2015 R2 SP2.
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Mar 20, 2018 12:58 PM
Updated by: