I just upgraded a client to GP 18.2. When we start the service, it does not start. I see this error in the Event log:
Log Name: Dynamics
Source: Microsoft.Dynamics.GP.ServiceHost
Date: 12/11/2019 3:37:33 PM
Event ID: 0
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: anaas-sql-02.arena.hsventures.org
Description:
Action:
Creating Service
Current User Name:
Input parameters:
Exception type:
System.IO.FileLoadException
Exception message:
Could not load file or assembly 'Microsoft.Dynamics.GP.WebServices.Contract, Version=18.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Stack Trace:
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName)
at Microsoft.Dynamics.GP.NTServiceHost.ResolveServiceType(ServiceElement service)
at Microsoft.Dynamics.GP.NTServiceHost.OnStart(String[] args)
Event Xml:
<Event xmlns="">schemas.microsoft.com/.../event">
<System>
<Provider Name="Microsoft.Dynamics.GP.ServiceHost" />
<EventID Qualifiers="0">0</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-12-11T23:37:33.743036800Z" />
<EventRecordID>665</EventRecordID>
<Channel>Dynamics</Channel>
<Computer>anaas-sql-02.arena.hsventures.org</Computer>
<Security />
</System>
<EventData>
<Data>Action:
Creating Service
Current User Name:
Input parameters:
Exception type:
System.IO.FileLoadException
Exception message:
Could not load file or assembly 'Microsoft.Dynamics.GP.WebServices.Contract, Version=18.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Stack Trace:
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName)
at Microsoft.Dynamics.GP.NTServiceHost.ResolveServiceType(ServiceElement service)
at Microsoft.Dynamics.GP.NTServiceHost.OnStart(String[] args)
</Data>
</EventData>
</Event>
Any ideas?
Thanks
Perry
Hello Japheth, Thanks for your post. It works for me.
Lucas, Thanks for the update.
Thanks Lucas,
I will get the patch and reinstall Web Services.
Perry,
This has also been addressed in a patch for GP Web Services that you can download from Customer/PartnerSource The catch is that the .MSP can only be slip-streamed into a new Web Services install. The following article explains how that process works:
While changing the .config file might work, it isn't something we'd recommend for production environment since it isn't something that we're going to test for potential issues.
Lucas
Thanks Japeth, that worked.
I fixed this by searching for 18.2.0.0 in any .config file in the web service installation folder (C:\Program Files\Microsoft Dynamics\GPWebServices) and replacing it with 18.0.0.0
In my case, the 2 files that needed modified were:
"C:\Program Files\Microsoft Dynamics\GPWebServices\Microsoft.Dynamics.GP.WebServices.ServiceHost.exe.config"
"C:\Program Files\Microsoft Dynamics\GPWebServices\ServiceConfigs\GPWorkflowService.config"
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,524 Super User 2024 Season 2
Martin Dráb 228,493 Most Valuable Professional
nmaenpaa 101,148