locked
Came to work this morning to see our users getting a silverlight error from the portal RRS feed

  • Question

  • Here's the detailed Silverlight error:

    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.00&File=mscorlib.dll&Key=Arg_TargetInvocationException ---> Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderException: Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderException: The type initializer for 'Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.ObjectDataTypeBase`1' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.ObjectDataTypeBase`1' threw an exception. ---> System.ArgumentException: An item with the same key has already been added.

       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

       at Microsoft.EnterpriseManagement.UI.Core.Shared.CacheService.RegisterCache(String key, IQueryCache queryCache)

       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.ObjectDataTypeBase`1..cctor()

       --- End of inner exception stack trace ---

       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.ObjectDataTypeBase`1..ctor(Uri name)

       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.SdkDataTypeBase`1..ctor(Uri name, String dataIdPrefix)

       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.EnterpriseManagementObjectDataTypeBase`1..ctor(Uri name, String dataIdPrefix)

       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.EnterpriseManagementObjectProjectionDataType..ctor(ManagementPackTypeProjection mpTypeProjection, Uri name, String dataIdPrefix)

       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.EnterpriseManagementObjectProjectionDataType..ctor(ManagementPackTypeProjection mpTypeProjection)

       at Microsoft.EnterpriseManagement.ServiceManager.Portal.DataProviders.InstanceProviderBase.GetDataTypeBase(ManagementPackElement mpElement)

       at Microsoft.EnterpriseManagement.ServiceManager.Portal.DataProviders.EnterpriseManagementObjectProjectionProviderBase.GetProjectionsById(Guid typeProjectionId, IList`1 emopIds, IList`1 propertyNames, Boolean createDataType)

       at Microsoft.EnterpriseManagement.ServiceManager.Portal.DataProviders.EnterpriseManagementObjectProjectionProviderBase.GetProjectionsById(Guid typeProjectionId, IList`1 idList, IList`1 propertyNames)

       at Microsoft.EnterpriseManagement.ServiceManager.Portal.DataProviders.EnterpriseManagementObjectProjectionProvider.GetRequestOffering(Guid requestOfferingTypeProjectionId, Guid seedEmoId, IList`1 propertyNames)

       --- End of inner exception stack trace ---

       at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderCommandMethod.Invoke(CoreDataGateway gateWay, DataCommand command)

       at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.Execute(DataCommand command)

       at Microsoft.EnterpriseManagement.Presentation.DataAccess.Server.DataAccessService.Execute(TransportDataCommand command)

       at SyncInvokeExecute(Object , Object[] , Object[] )

       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)

       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

       at Microsoft.EnterpriseManagement.ServiceManager.Portal.RequestOfferingSilverlightModule.Models.Providers.DataProvider.<>c__DisplayClass5.<FetchRequestOfferingById>b__4(Object sender, AsyncDataCommandCompletedEventArgs`1 e)

       at Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.<>c__DisplayClass2.<CompleteCommand>b__0(Object )

       --- End of inner exception stack trace ---

       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

       at System.Delegate.DynamicInvokeImpl(Object[] args)

       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, Boolean useFastPath, Delegate d, Object[] args)

       at System.Windows.Threading.DispatcherSynchronizationContext.Send(SendOrPostCallback d, Object state)

       at Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.CompleteCommand(Object sender, AsyncDataCommandCompletedEventArgs`1 e)

       at Microsoft.EnterpriseManagement.Presentation.DataAccess.AsyncDataCommandBase`2.OnCommandCompleted(Object sender, Exception exception)

       at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataGatewayBase.CompleteAsyncDataCommandWithError(AsyncDataCommand command, Exception exception)

       at Microsoft.EnterpriseManagement.Presentation.DataAccess.ProxyDataGateway.ProxyExecuteCompletedHandler(Object sender, ExecuteCompletedEventArgs e)

       at Microsoft.EnterpriseManagement.Presentation.DataAccess.ProxyDataGateway.<>c__DisplayClass4.<GetClientProxy>b__3(Object sender, ExecuteCompletedEventArgs args)

       at Microsoft.EnterpriseManagement.Presentation.DataAccess.Proxy.ServiceReference.DataAccessServiceClient.OnExecuteCompleted(Object state)

    Any ideas?  I'm stumped on the issue...

    Thursday, August 28, 2014 5:08 PM

Answers

  • Came to work the next week and it was back up & running.  The administrator for the Sharepoint server said he didn't change anything but....

    Thanks everyone for their help!

    • Marked as answer by Steven Strang Wednesday, September 3, 2014 7:28 PM
    Wednesday, September 3, 2014 7:28 PM

All replies

  • Have you

    1. Recycled application pools on web content server (may be a sync issue)
    2. Restarted IIS website
    3. Restarted server(s) hosting web portal

    http://codebeaver.blogspot.dk/

    Monday, September 1, 2014 10:18 AM
  • The type initializer for 'Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.ObjectDataTypeBase`1' threw an exception. ---> System.ArgumentException: An item with the same key has already been added.

    Bad juju in data access services, do IISReset on all data access and content web servers (i.e the website that isn't sharepoint). 

    Tuesday, September 2, 2014 12:37 AM
  • Came to work the next week and it was back up & running.  The administrator for the Sharepoint server said he didn't change anything but....

    Thanks everyone for their help!

    • Marked as answer by Steven Strang Wednesday, September 3, 2014 7:28 PM
    Wednesday, September 3, 2014 7:28 PM