Code Monkey home page Code Monkey logo

Comments (9)

jformacek avatar jformacek commented on June 15, 2024

This is most likely because your machine does not have VC++ redistributable installed. There used to be a way to compile with /MT instead of /MD switch, but this is no longer supported and CRL support is not compatible with static linking to C++ runtime.
See here for details.
So your only option is currently to make sure that you have VC++ runtime installed on target machine.
I can confirm That on my test machine with VC++ runtime, I'm able to load the assembly without any problems:

PS C:\Users\JiriFormacek> [system.reflection.assembly]::LoadFile("C:\TFS\github.com\SIDCloner\x64\Release\SIDCloner.dll")

GAC    Version        Location
---    -------        --------
False  v4.0.30319     C:\TFS\github.com\SIDCloner\x64\Release\SIDCloner.dll

Hope this helps,
Jiri

from sidcloner.

aka004db avatar aka004db commented on June 15, 2024

Hé Jiri,

Thanks for your reply and your efforts!

Unfortunately it still doesn't work on my machine.
I don't get it... Installed the "Microsoft Visual C++ 2008" and "Microsoft Visual C++ 2015-2019" for x64 and x86
Still the same error. Could it be I use the wrong settings while compiling? I can't even get the reflection working on the same machine the code is compiled? That seems weird, doesn't it? The solution builds successfully without errors or warnings.

Is it possible you transfer the dll to me somehow just to make sure it isn't a compiling mistake?

Thanks in advance
Arjan

from sidcloner.

aka004db avatar aka004db commented on June 15, 2024

SIDCloner.zip
This is mine ;-)

from sidcloner.

jformacek avatar jformacek commented on June 15, 2024

See my answer via mail, there are compiled binaries attached. I would say that you were trying to import x86 binaries into x64 process

Jiri

from sidcloner.

aka004db avatar aka004db commented on June 15, 2024

Thanks a million! This is working. I will try to find out my own building parameters, but you helped me out of a tough spot right now. I'm very grateful!

Cheers

Arjan

from sidcloner.

jformacek avatar jformacek commented on June 15, 2024

Thank you. Let’s close the issue now.
Jiri

from sidcloner.

aka004db avatar aka004db commented on June 15, 2024

Jiri helped me out
Issue is resolved ;-)

from sidcloner.

Haramyde avatar Haramyde commented on June 15, 2024

Hi @jformacek Looks like I've got the same problem as @aka004db
With my checks, I want to believe I have the pre-requisite on my box, but still unable to install the module

PS C:\Program Files\WindowsPowerShell\Modules\sidcloner> [system.reflection.assembly]::LoadFile("C:\Program Files\WindowsPowerShell\Modules\sidcloner\SIDCloner.dll")

GAC Version Location

False v4.0.30319 C:\Program Files\WindowsPowerShell\Modules\sidcloner\SIDCloner.dll

Would you have any suggestion on how to TS this? Thanks!

from sidcloner.

mathewhunter avatar mathewhunter commented on June 15, 2024

Just my 2 cents a long time after this was closed:
you can't install this on a member server, has to be a DC. you can use dependency crawler on a member server to see how lots of dependencies are missing.

from sidcloner.

Related Issues (3)

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.