Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2021 Release Wave 1Discover the latest updates and new features to Dynamics 365 planned April 2021 through September 2021.
Release overview guides and videos Release Plan | Preview 2021 Release Wave 1 Timeline
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Frequently, we've seen the following error message when installing Web Services for Microsoft Dynamics GP, specifically when running the Web Services Configuration Wizard to install onto the GP databases themselves.
The error is:
"A loader exception has occurred.Loader Errors:- Microsoft.Dynamics.Security.InvalidSecurityContextException: Microsoft.Dynamics.Security.NonExistentSecurityObjectException : The security object does not exist. Key = 25cc1a21-2cc4-4b13-a1c8-eea186fb688a"
This error is normally caused by the installer seeing remnants of a prior install of Web Services, usually in the GP databases, when running the Configuration Wizard, but not seeing all of the information it requires in order to upgrade Web Services, so it throws this loader error.
The 25cc1a21-2cc4-4b13-a1c8-eea186fb688a key is the default key that Web Services has in the Authorization Manager (Azman.msc) such as this example:
To resolve this error message, we want to do the following:
1. Run the attached scripts against the system and all company databases for Microsoft Dynamics GP, to remove any and all Web Services objects.
The 'GPWS_Drop_DYNAMICS_Database_Objects' is run against the system database while the 'GPWS_Drop_Company_Database_Objects' script is run against all company databases.
These scripts can be downloaded from Web Services Removal Scripts.zip.
2. After using the scripts to completely remove Web Services objects from the Microsoft Dynamics GP databases, launch the Web Services Configuration Wizard again, which will allow you to install Web Services on the system and any company databases you want to. Once the Wizard finishes, it will restart the Microsoft Dynamics GP Service Host service, for Web Services, to push down the changes.
3. At this point, we also recommend going through the following article to verify Web Services for Microsoft Dynamics GP is installed and working correctly:
**NOTE: If you're installing Web Services for Microsoft Dynamics GP 18.2, you must slip-stream the KB4527536 patch for Web Services, otherwise you'll run into issues with the Configuration Wizard showing a blue question-mark failure on the Functional Currency check with no company databases available for selection and/or the Microsoft Dynamics GP Service Host service won't restart/run, which prevents Web Services from working.
The links to this patch can be found here:
To slipstream this file, in the Microsoft Dynamics GP DVD media, browse into the 'AdProd' folder, then into the 'WebServices' folder, choose either the 'x64' or 'x86' folder, then in the 'Updates' folder, remove the existing MSP file and replace it with the KB4527536 patch. You can use the Setup.exe under AdProd > WebServices > X86/X64 to launch the Web Services installation/upgrade.
**NOTE2: If you're installing Web Services for Microsoft Dynamics GP 18.3, you must be installing Web Services for Microsoft Dynamics GP from the MDGPFALL2020_DVD_ENUS.zip media, which already has the KB4527536 patch setup in it, for Web Services. Failing to do so, will result in the same issues as mentioned with GP 18.2.
We've had the security key error for a number of versions of Web Services, so it's not new especially if you're familiar with the Web Services for Microsoft Dynamics GP installations/upgrade processes. We just wanted to put out an updated blog with this information, along with new information for the GP 18.2 and GP 18.3 versions of Web Services as well.
Hopefully this will help everyone get out of some issues with Web Services and answer questions.
Business Applications communities