GithubHelp home page GithubHelp logo

Comments (7)

swinster avatar swinster commented on May 30, 2024

Looks like rebooting might have resolved this

from secretstore.

PaulHigin avatar PaulHigin commented on May 30, 2024

I am not clear on the repro steps. Did you install the modules and vaults under two accounts, one admin and one not? I have tested this without any problems. The type initializer exception suggests you have two different versions of SecretStore or SecretManagement. During preview, each version is incompatible with the other. So be sure and uninstall the old versions before you install the new.

from secretstore.

swinster avatar swinster commented on May 30, 2024

Hey @PaulHigin. Installation of the modules were under a single users account, but from an elevated PS window, then re-run under the normal user context. No previous modules were install, only the last releases of SecretStore or SecretManagement. TBH, I managed to get something similar to happen on two other machines as well.

from secretstore.

PaulHigin avatar PaulHigin commented on May 30, 2024

@swinster One other thing that may result in type initializer error is if you installed onto a Windows machine without netstandard2.0. PowerShell 7+ will include the needed binaries, but if you are running WindowsPowerShell, the netstandard binaries will not be there by default. Installing PowerShell 7+ will include them or you can get it from netstandard.library package from nuget.org.

from secretstore.

swinster avatar swinster commented on May 30, 2024

Was using the latest version of PS7....

from secretstore.

PaulHigin avatar PaulHigin commented on May 30, 2024

I am changing how the module binaries are built, targeting net461 framework rather than netstandard2.0. This should improve compatibility with PS7 and PS5.1. This may solve your issue since the exception above is thrown during store file creation, and may be related to the access control API compatibility issue my change addresses.

from secretstore.

PaulHigin avatar PaulHigin commented on May 30, 2024

Implemented in preview4 changes.

from secretstore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.