.NET Runtime version 4.0.30319.0 - There was a failure initializing profiling API attach infrastructure. This process will not allow a profiler to attach. HRESULT: 0x80004005

Warren Hayden 0 Reputation points
2025-12-03T16:46:19.18+00:00

Hello,

I have been receiving this error for months and have not been able to identify a solution. This error occurs on Windows 11, but does not occur on one older Windows 10 machine.

  1. This error occurs when I save (an actual local file write to disk) an empty or populated Word 2024 document.
  2. It also occurs when I save an empty PowerPoint or populated document.
  3. However, this error does not appear when saving an empty Excel spreadsheet or fully populated spreadsheet.

I have repaired MS Office multiple times using the quick and full online process.

I tried uninstalling and reinstalling, but the symptoms persist.

I tried deleting the normal document template and letting Word create a new template, but the problem persists.

  1. If I create an empty Word document, add a small amount of content, and save it, the error occurs. The same error results when I make a small or large change to any document.
  2. If I launch Word using "winword /safe" and create/save a blank document the error does not occur.
  3. If I paste a large Word document into an empty Word file that was created in the safe mode, the error occurs when it is saved to disk.
  4. However, if I make a slight modification in the Word file created in the last step and save it, no error occurs. Strange?!?!

We do not use cloud storage for any of our documents and do not allow auto save to MS cloud. All documents are all saved to a local machine disk drive and later backed up on our network. Critical backups are stored on non-volatile media.

MS cloud storage is disabled.

How can I track down the issue and resolve this problem that is filling up the event log with these errors?

Thanks,


Moderator note: personal info removed 

Microsoft 365 and Office | Word | For business | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-03T16:46:33.5166667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error you are encountering, "There was a failure initializing profiling API attach infrastructure. HRESULT: 0x80004005," typically indicates a problem with the .NET runtime or the Office installation on your Windows 11 machine. Since you mentioned that the issue does not occur on an older Windows 10 machine, it suggests that there may be compatibility or configuration issues specific to your Windows 11 setup.

    Here are some steps you can take to troubleshoot and potentially resolve the issue:

    1. Check for Windows Updates: Ensure that your Windows 11 installation is fully updated. Sometimes, updates can resolve underlying issues with the .NET framework or Office applications.
    2. Reinstall .NET Framework: Since the error is related to the .NET runtime, consider uninstalling and reinstalling the .NET Framework. You can download the latest version from the Microsoft website.
    3. Check for Conflicting Software: Sometimes, third-party software can interfere with Office applications. Check if there are any recently installed applications that might be causing conflicts and try disabling or uninstalling them.
    4. Run Office in Safe Mode: Since you mentioned that running Word in safe mode does not produce the error, this indicates that an add-in or customization might be causing the issue. Try disabling all add-ins in Word and PowerPoint to see if that resolves the problem. You can do this by going to File > Options > Add-ins, and then manage COM Add-ins.
    5. Create a New User Profile: Sometimes, user profiles can become corrupted. Try creating a new user profile on your Windows 11 machine and see if the issue persists when using Office applications under that profile.
    6. Check Event Viewer: Since you mentioned that the event log is filling up with errors, check the Event Viewer for more specific error messages related to the issue. This can provide additional insight into what might be causing the problem.
    7. Contact Microsoft Support: If none of the above steps resolve the issue, consider reaching out to Microsoft Support for further assistance. They may have more specific tools or insights to help diagnose the problem.

    By following these steps, you should be able to narrow down the cause of the error and hopefully find a resolution.


  2. Darren-Ng 5,960 Reputation points Microsoft External Staff Moderator
    2025-12-04T02:24:59.67+00:00

    Dear @Warren Hayden,

    Thank you for posting your question in the Microsoft Q&A forum.

    Please understand that our forum is a public platform, and we will modify your question to cover your organization domain name in the description. Please notice to hide these personal or organization information next time you post error or some information to protect personal data.

    Based on your description, the issue occurs when saving Word or PowerPoint files on Windows 11, even after repairing and reinstalling Office, deleting the Normal.dotm template, and running in Safe Mode. For better understanding your situation, could you please provide us more detail information as:

    • Which version of Windows 11 are you using?

    According to research on the forum, I found that many users have experienced a similar issue. Here is one case that includes an effective solution you can refer to, and I hope it works for your situation.

    https://learn.microsoft.com/en-us/answers/questions/5526360/0x80004005-on-windows-11-24h2

    If after you tried but the issue still persists or get stuck in any steps, please let us know so we could find the better solutions to resolve the issue together. Looking forward to your update.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.