Comments (9)
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.
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.
SIDCloner.zip
This is mine ;-)
from sidcloner.
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.
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.
Thank you. Let’s close the issue now.
Jiri
from sidcloner.
Jiri helped me out
Issue is resolved ;-)
from sidcloner.
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.
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)
- Inappropriate authentication HOT 2
- Access Denied HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sidcloner.