Error BC30652 System.Runtime.InteropServices after Update yesterday

Hi,

unfortunately I’m getting the following error message since updating StudioX yesterday:
Main.xaml: (2) : error BC30652: Es ist ein Verweis auf die Assembly “System.Runtime.InteropServices, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” erforderlich, die den Typ “SecureString” enthält. Fügen Sie dem Projekt einen Verweis hinzu.

This error is connected to a SecureString containing the Password for SAP Login Activity that comes from local windows credential manager.
Before updating yesterday everything was working as expected, no errors.

Any ideas?

Cheers, Peer

2 Likes

I already tried to reset all dependencies to last stable versions with no success.

@Peer

Welcome to the community

Can you try removing the errors activity and re add the same again…

If its on variable then try the same…there as well…

When removing make sure to remove save the project and then re add

cheers

@Anil_G
Thanks for your reply.
I deleted the GetUsername/Password activity as well as the variable containing username and password. I also deleted the SAP Login activity and saved everything.
After readding all activities the error is still the same.

@Peer

Can you please try upgrading your packages to latest version

Alternately close the project and rename the project.json file and reopen the project

cheers

@Anil_G
I updated all packages and tried to rename the project.json and reopen the project.
The error persists :frowning:

@Peer

Is it possible to share the project here?

If not as one more resort…try renaming the packages folder inside .nuget foldwr and then reopen the project.This is to make sure the packages are downloded again freshly

C:\Users\<Username>\.nuget\packages

Can you share some screnshots if not the project

Cheers

@Anil_G
No success with renaming the packages-Folder.
I cannot share the project itself but I will try to provide the screenshots (one by one due to forum restrictions:

Packages:

Get Username/Password and put it into “SAP_BQ1” Variable:

SAP Logon and Login with SecurePassword as part of the variable above:

Specs of SAP Login:

Error message:

Any ideas what the problem might be?
Maybe it’s a bug in the recent release of StudioX?
The problem even persists after rebuilding the process from scratch.

@Peer

Did you do the .nuget steps as well?

That will ensure new packages are downloaded properly again

Cheers

@Anil_G
Yes, I did the .nuget steps as well.
As far as I could see, all packages where downloaded again.

@Peer

After the new download …did you try replacinf the effected activity

Cheers

@Anil_G
I did not only replace the affected activity, but also created a whole new project rebuilding the login.
In both cases the error persists.

@Peer

Try changing the versions of your packages from the preview versions to anything lower…which refers to different version of interop…probably 4.x

cheers

@Anil_G
I tried to install packages 22.4.X without success.
The error message is still the same but saying:

Main.xaml: (2) : error BC30652: Es ist ein Verweis auf die Assembly “System.Runtime.InteropServices, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” erforderlich, die den Typ “SecureString” enthält. Fügen Sie dem Projekt einen Verweis hinzu.

So the Interop version in the message is now 5.0.0.0 instead of 6.0.0.0 in the initial message.

@Peer

Try downgrading more…as of now i guess it working with introp 4.3 version or lower…starting ll its trying for 5.0

Cheers