Failed to load assembly: NPOI.OpenXml4Net.dll

Hey, guys.

I’m getting this warning when opening an already existing UiPath project:

image

As you can see, the .dll file is located in the directory:

Could someone please explain to me why am I getting this warning and whether I can fix it?

Thanks!

Hello @franrua02!

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

I have the same issue

I upgraded my UiPath.System. Activities and suddenly I get this message

@loginerror @marian.platonov what can I do here?

What is your Studio and what is your UiPath.System.Activities version?

Studio: 2023.4.5
UiPath.System.Activities: same

And still I have most of my dependencies red and the following error

NU1102: Unable to find package UiPath.CodedWorkflows with version (>= 23.10.0)

  • Found 1 version(s) in C:\Program Files\UiPath\Studio\Packages [ Nearest version: 23.2.0-alpha.3503132 ]

I copied the code to a new project, I made sure that Studio and UiPath.System.Activities have the same version (2023.4.5) )and I still have these error:

Cannot load assembly: C:\Users\lu_rpa_acg.nuget\packages\npoi\2.2.1\lib/net40/NPOI.OpenXml4Net.dll : System.TypeLoadException: Inheritance security rules violated by type: ‘NPOI.OpenXml4Net.Util.ZipInputStreamZipEntrySource+FakeZipEntry’. Derived types must either match the security accessibility of the base type or be less accessible.
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path)
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass15_0.b__0(Tuple`2 range)

And finally now I managed to have only 1 error left, one related to http request activity.

How can I still check what was this activity like when it was still opening? I think the update to 23.4.5 made this http request activity to stop working, but I still need to be able to open it to see what is inside to be able to re-build it in 23.4.5

Try upgrading/downgrading the UiPath.WebAPI.Activities package and see if the activity is visible.

Also, you may try to open the xaml in Notepad++ to see its content.