Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class

Hello UiPath Community,

I recently upgraded the studio to 2022.10.3 and converted one of the projects to VB, Windows from VB, Windows Legacy.

After the successful conversion, studio analyzed the project and found a dependency which is not available anymore, it is one of the Microsoft activity the Workflow Manager activities v1.0.1.
I successfully uninstalled the dependency and replaced the single activity which was the IsFalse activity to CheckFalse activity from the UiPath.Core.Activity.

Also removed all unused imports from each workflow and done a project analyse which resulted without error.

After all this if I try to Debug Run the workflow in which the IsFlase activity was,
the project wont compile at the start of debug run results in compilation failed.

comp_err

Error Message does not give much of a hint:

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:
 * Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.
 * Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.

Does anybody hade this type of issue after project conversion?

Thanks, Zoltan

Error Screenshot:

Hello @Zoltan!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

After digging around in source i managed to get a more elaborate error description.

22.10.3+Branch.master.Sha.def2351dc828ccfbcddb6e9e07c9cf71b5bf55da

Object reference not set to an instance of an object.

Error: System.Exception: Object reference not set to an instance of an object.
   at System.Activities.Presentation.View.ImportDesigner.OnReferenceUpdated(Assembly assembly, Boolean isAdded)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2147467261

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.