none
Could not load file or assembly RRS feed

  • Question

  • When trying to open a Form in vusal Studio 2019 we get this error:

    Could not load file or assembly 'System.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Het systeem kan het opgegeven bestand niet vinden. 

    CallStack: 

    at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject) 

    Please advice a permanent solution. 


    Friday, September 11, 2020 12:02 PM

All replies

  • Hello Luuk,

    I’m not sure if some framework files are missed or broken, please kindly try to use Microsoft .NET Framework Repair Tool to fix this issue.

    To narrow down this issue, could you share some more information with me such as:

    #1. Does this issue appear for specific project? If you try to create a new simple project will this issue appear?

    #2. Did this issue appear before? Or did you modify something or perform some actions before this issue appeared?

    If this issue appears for specific project, please close every VS instances and try to rename(or delete) the `bin`, `obj` and the hidden `.vs` folders under the solution folder, then launch VS and build your project again.

    If this issue also appears for other projects, and .net framework repair tool doesn’t work, please try to repair Visual Studio 2019 from Visual Studio Installer.

    If this issue persists, could you share a reproduced sample with me(by using OneDrive) for further check?

    Best Regards,

    Tianyu


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, September 14, 2020 3:26 AM
  • Hello Luuk,

    Does your issue persist after deleting the “bin”, “obj” and “.vs” folder? Will repair Visual Studio 2019 resolve this issue? Feel free to contact me.

    Best Regards,

    Tianyu


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Wednesday, September 23, 2020 9:45 AM
  • Repairing Visual Studion 2019 and removing the folders "bin","obj" and ".vs" did not help

    For reference commenting the section, as shown below, in "devenv.exe.config" solves the problem until the next release.

    "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe.config"
            <!-- SharePoint Workflow v3.5 Build assembly -->
    <!--        <dependentAssembly>
              <assemblyIdentity name="System.Workflow.ComponentModel" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
              <bindingRedirect oldVersion="3.0.0.0-4.0.0.0" newVersion="16.0.0.0"/>
            </dependentAssembly> -->

    Thursday, September 24, 2020 6:35 AM
  • Hi Luuk,

    I appreciate that you share the workarounds with us, you can mark your useful reply as answer and this will help other forum members who have similar issues to easily find and refer to this workaround.

    Have a nice day:)

    Kind Regards,

    Tianyu


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Friday, October 2, 2020 9:38 AM
  • But it is no answer to the question, just a 'workaround'.

    The error re-appears with every update of Visual Studio....

    Saturday, October 3, 2020 9:57 AM