Sequential / State machine workflow in VS 2022

Krishna Priya Cherungottil 20 Reputation points
2023-07-26T06:47:59.61+00:00

How to migrate a Workflow project to VS 2022? While trying to build workflow project in VS 2022, we are getting the below build error.

Compilation failed. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Background:

The project was initially in VS 2012, later We migrated to VS 2017 (Installed Office/Sharepoint development component) and build was successful. While trying to migrate to VS 2022, the build fails.

We could find that the support for SharePoint Sequential Workflow or State Machine Workflows has been stopped from VS 2019. So is there any alternative for the same ?

Thanks in advance!

SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
482 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ling Zhou_MSFT 11,625 Reputation points Microsoft Vendor
    2023-07-28T08:51:22.58+00:00

    Hi @Krishna Priya Cherungottil,

    Thank you for the reply.

    I looked up the information through your share and indeed SharePoint Sequential Workflow or State Machine Workflows are no longer supported after VS2019. If you want to just use Visual Studio to maintain your workflows, the only way to do that at the moment is to continue using Visual Studio 2017.

    We apologize for any inconvenience this may cause. Thank you for your kind understanding. If there is any other assistance I can provide, please feel free to let me know.


    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.


2 additional answers

Sort by: Most helpful
  1. Ling Zhou_MSFT 11,625 Reputation points Microsoft Vendor
    2023-07-26T09:16:47.4366667+00:00

    Hi @Krishna Priya Cherungottil,

    Thank you for posting in this community.

    Since your problem is so complex and we can't reproduce it, we need to narrow down the problem and try some things.

    However, we can work together to narrow down and resolve the situation. So, Please kindly provide more information below to let us work further.

    1.Check that your projects are set to compile against the right version of the .NET framework. If your project dll references are using an older version of .NET but you are compiling against a newer one that could cause problems.

    2.You should use the Assembly Binding log viewer (also known as Fuslogvw) to record exactly what dlls are failing to load and where they are being looked for as it may just be that one of them is not in the right place, but it should give you more information on why it can't be loaded.

    3.If you are referencing a x64 dll on an x86 system, or vice versa that would also cause a similar error.

    1. Are all workflows migrating from VS2017 to VS2022 having the same issue?

    5.Are your other colleagues having the same problem? You can ask your other colleagues to build on their computers and see if the problem persists.

    6.I did not find any information about not supporting SharePoint Sequential Workflow or State Machine Workflows after VS2019. Can you tell me where you got this information? Could you share the link to the article with me if it is convenient?

    Thank you for your time and efforts in advance. If there is any other assistance I can provide, please feel free to let me know.


    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.


  2. Khaja, Minhajuddin 0 Reputation points
    2023-12-19T20:07:29.1633333+00:00

    I am having the same issue, I am trying to migrate from VS2017 to VS2022(Windows workflow service/windows workflow foundation application), and my workflows are not opening.

    Error: sequential and state machine workflows are no longer supported by this version of visual studio

    0 comments No comments