web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

GP Web Services 18.2 (October 2019 release) does not start.

(0) ShareShare
ReportReport
Posted on by 1,692

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&amp; stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark&amp; 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

Categories:
  • Verified answer
    Japheth Nolt Profile Picture
    285 on at

    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"

  • Perry Smith - CRi Profile Picture
    1,692 on at

    Thanks Japeth, that worked.

  • Lucas Miller Profile Picture
    Microsoft Employee on at

    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:

    community.dynamics.com/.../how-to-slip-stream-msp-files-for-service-packs-and-hotfixes-when-installing-microsoft-dynamics-gp

    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

  • Perry Smith - CRi Profile Picture
    1,692 on at

    Thanks Lucas,

    I will get the patch and reinstall Web Services.

  • Japheth Nolt Profile Picture
    285 on at

    Lucas, Thanks for the update.

  • sandipdjadhav Profile Picture
    18,377 on at

    Hello Japheth, Thanks for your post.  It works for me.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 239 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 221

#3
Subra Profile Picture

Subra 166 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans