PROBLEM SCENARIO
In a recent issue that i was working, the Forefront Identity Manager Synchronization Service was failing to start. In review of the Application Event Log the following was received.
APPLICATION EVENT LOG
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) The assembly name is the main.
The server encountered an unexpected error and stopped. “BAIL: MMS(3176): d:bt37281privatesourcemiissharedmaxmlcdext.cpp(416): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiissharedxmlpexstack.cpp(405): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiissharedxmlpexparse.cpp(436): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiissharedxmlpexparse.cpp(517): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiissharedmaxmlmapartition.cpp(2314): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiisserversqlstorepartition.cpp(1064): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiisserversqlstorepartition.cpp(753): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiisserversqlstorepartition.cpp(2277): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiisservermastatemastate.cpp(1106): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiisservermastatemastate.cpp(883): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverserver.cpp(532): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverserver.cpp(3960): 0x80070057 (The parameter is incorrect.) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverservice.cpp(1588): 0x80070057 (The parameter is incorrect.) ERR_: MMS(3176): d:bt37281privatesourcemiisserverserverservice.cpp(1027): Error creating com objects. Error code: -2147024809. This is retry number 0. BAIL: MMS(3176): d:bt37281privatesourcemiissharedutilsclrhost.cpp(224): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverrulesscriptmanagerimpl.cpp(7886): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverserver.cpp(272): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverserver.cpp(3960): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverservice.cpp(1588): 0x80131022 (unable to get error text) ERR_: MMS(3176): d:bt37281privatesourcemiisserverserverservice.cpp(1027): Error creating com objects. Error code: -2146234334. This is retry number 1. BAIL: MMS(3176): d:bt37281privatesourcemiissharedutilsclrhost.cpp(224): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverrulesscriptmanagerimpl.cpp(7886): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverserver.cpp(272): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverserver.cpp(3960): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverservice.cpp(1588): 0x80131022 (unable to get error text) ERR_: MMS(3176): d:bt37281privatesourcemiisserverserverservice.cpp(1027): Error creating com objects. Error code: -2146234334. This is retry number 2. BAIL: MMS(3176): d:bt37281privatesourcemiissharedutilsclrhost.cpp(224): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverrulesscriptmanagerimpl.cpp(7886): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverserver.cpp(272): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverserver.cpp(3960): 0x80131022 (unable to get error text) BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverservice.cpp(1588): 0x80131022 (unable to get error text) ERR_: MMS(3176): d:bt37281privatesourcemiisserverserverservice.cpp(1027): Error creating com objects. Error code: -2146234334. This is retry number 3. BAIL: MMS(3176): d:bt37281privatesourcemiisserverserverservice.cpp(1041): 0x80131022 (unable to get error text) Forefront Identity Manager 4.1.3599.0” |
CAUSE
There were several inconsistencies in the backend FIMSynchronizationService Database dealing with CS objects and links from CS->MV->CS issues.
NOTE: You may want to contact Microsoft Product Support for assistance in reviewing and locating these inconsistencies.
RESOLUTION
Restore the FIMSynchronizationService database from backup
![Microsoft Visual Studio The Parameter Is Incorrect 0x80070057 Microsoft Visual Studio The Parameter Is Incorrect 0x80070057](/uploads/1/2/5/7/125744011/109840773.png)
I have a fresh install of Windows 10, Visual Studio 2015 Update 3, and the latest Xamarin. I get the following error:
The 'InspectorPackage' package did not load correctly.
Here is the info from the activity log:
<entry> <record>673</record> <time>2016/12/27 08:31:15.065</time> <type>Error</type> <source>VisualStudio</source> <description>LegacySitePackage failed for package [InspectorPackage]Source: '' Description: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
 at EnvDTE.Properties.Item(Object index)
 at Xamarin.Inspector.VS.VSAgentExecutionTarget..ctor(Project proj)
 at Xamarin.Inspector.VS.VSInspectorSession.CreateAgentExecutionTarget()
 at Xamarin.Interactive.IdeSupport.InspectorSession.Prepare()
 at Xamarin.Inspector.VS.InspectorPackage.RefreshInspectorSession()
 at Xamarin.Inspector.VS.InspectorPackage.Initialize()
 at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)</description> <guid>{0FCBA9C6-0554-418C-8B79-FF2ED7DC658D}</guid> <hr>80070057 - E_INVALIDARG</hr> <errorinfo></errorinfo> </entry>
Any idea how to resolve?