Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Software deployment to cloud hosted machine fails with "The specified module 'C:\Program Files\Microsoft Security Client\MpProvider' was not loaded because no valid module file was found in any module directory."

(0) ShareShare
ReportReport
Posted on by 185

Hello

While trying to apply a Software Deployable Package to a cloud hosted dev machine the following error was found in an error log downloaded:

"The specified module 'C:\Program Files\Microsoft Security Client\MpProvider' was not loaded because no valid module file was found in any module directory."

There is a related post: https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/462669/cloud-hosted-environment-update-failed/1267233 which showed another related error found with VSIX.

I don't find any related error with VSIX in the error logs I downloaded.

This feels like a misleading error message and that it is an effect of some other problem.

Anyone have any ideas on this one?

  • jt1024 Profile Picture
    185 on at
    RE: Software deployment to cloud hosted machine fails with "The specified module 'C:\Program Files\Microsoft Security Client\MpProvider' was not loaded because no valid module file was found in any module directory."

    Hello Komi,

    So I built a new SDP (Software deployable package) today with two small custom code changes, and updates for two ISV packages.  That SDP deployed correctly to my environments for testing!

    Thanks again for your help.

    - Jim

  • Komi Siabi Profile Picture
    12,772 Most Valuable Professional on at
    RE: Software deployment to cloud hosted machine fails with "The specified module 'C:\Program Files\Microsoft Security Client\MpProvider' was not loaded because no valid module file was found in any module directory."

    Noted Jim,

    Looking forward to your feedback.

  • jt1024 Profile Picture
    185 on at
    RE: Software deployment to cloud hosted machine fails with "The specified module 'C:\Program Files\Microsoft Security Client\MpProvider' was not loaded because no valid module file was found in any module directory."

    Hello Komi,

    Thanks for these suggestions.  I'll work through them today and see what happens.  I'll try to remember to post back here my results.

    - Jim

  • André Arnaud de Calavon Profile Picture
    292,884 Super User 2025 Season 1 on at
    RE: Software deployment to cloud hosted machine fails with "The specified module 'C:\Program Files\Microsoft Security Client\MpProvider' was not loaded because no valid module file was found in any module directory."

    Hi Jim,

    Komi provided valid suggestions. The last time I saw this error message, someone did log in on the VM and opened Visual Studio while the deployment was executing.

  • Verified answer
    Komi Siabi Profile Picture
    12,772 Most Valuable Professional on at
    RE: Software deployment to cloud hosted machine fails with "The specified module 'C:\Program Files\Microsoft Security Client\MpProvider' was not loaded because no valid module file was found in any module directory."

    Are you applying a custom package or a Microsoft package. If the later is the case, from which version to which one are you upgrading to?

    Few things you should check before reapplying the update.

    1. Build your models without errors,

    2. Visual studio should be closed.

    3. Launch Visual studio installer, update Visual studio then reapply package.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans