How to Fix VSTO Add-In Error 0x80070002 During .NET Assembly Loading
Question details
The user needs to resolve an issue where a VSTO add-in fails to load due to a .NET assembly dependency error.

- Product
- VSTO Add-In
- Device & OS
- Windows
- Scenario
- Running a VSTO add-in in a virtual desktop environment using FSLogix or with strict endpoint security software.
- Observed behavior
- The add-in fails to load, generating a Fusion log error 0x80070002 even when the primary DLL is present, often due to excluded or corrupted assembly paths.
Ensure you have administrative access to the virtual desktop environment and the FSLogix configuration files before making modifications. It is also recommended to temporarily disable endpoint security software to isolate the cause.
Remove Assembly Cache Path from FSLogix redirections.xml
Prevents the assembly cache path from being excluded and corrupted upon sign-in in a virtual desktop environment.
In virtual desktop environments, FSLogix profile redirection can cause the AppData\Local\assembly\dl3 path to be excluded from the profile container. Modifying the redirections.xml file ensures the .NET assembly cache is maintained correctly across sessions.
Navigate to your default FSLogix Profile Container configuration folder on the file server or virtual machine.
Open the redirections.xml file using a text editor like Notepad with administrator privileges.
Locate and delete the entry for AppData\Local\assembly\dl3 from the file.
Save the XML file and restart the virtual desktop session to apply the changes.

Whitelist .NET Assemblies in Cybersecurity Software
Resolves loading blocks caused by strict endpoint security policies interfering with .NET Framework execution.
Try WPS Office for a Hassle-Free Experience
Tired of dealing with complex VSTO add-in errors and assembly loading failures in Microsoft Office? WPS Office offers a lightweight, highly compatible alternative without the heavy administrative overhead.

Frequently Asked Questions
What causes the 0x80070002 error when loading a VSTO add-in?
This error usually indicates that a required .NET assembly or dependent DLL could not be found, often due to profile virtualization exclusions or security software blocking the file.
Why does FSLogix cause issues with VSTO add-ins?
If the FSLogix redirections.xml file excludes the AppData\Local\assembly\dl3 folder, the assembly cache path is not saved in the profile container and becomes corrupted on the next login.
How can I check if my antivirus is blocking the VSTO add-in?
You can review the Fusion logs using the Assembly Binding Log Viewer (Fuslogvw.exe) to see if access is denied, or temporarily disable your security software in a test VM to see if the add-in loads successfully.
Do I need administrative privileges to edit the redirections.xml file?
Yes, editing the FSLogix Profile Container configuration files requires local administrator or domain administrator privileges, depending on your virtual desktop infrastructure.




