DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Kali linux, x64. I have installed vscode and the dotnet core, but when I try to make a new console application with this "dotnet new console", I get this error message:
Code:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Crypto' threw an exception. --->
System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.Dll
NotFoundException: Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not
be found.
(Exception from HRESULT: 0x8007007E)
at Interop.CryptoInitializer.EnsureOpenSslInitialized()
at Interop.CryptoInitializer..cctor()
--- End of inner exception stack trace ---
at Interop.Crypto..cctor()
--- End of inner exception stack trace ---
at Interop.Crypto..cctor()
--- End of inner exception stack trace ---
at Interop.Crypto.GetRandomBytes(Byte* buf, Int32 num)
at System.IO.Path.GetCryptoRandomBytesOpenSsl(Byte* bytes, Int32 byteCount)
at System.IO.Path.GetCryptoRandomBytes(Byte* bytes, Int32 byteCount)
at System.IO.Path.GetRandomFileName()
at Microsoft.DotNet.InternalAbstractions.TemporaryDirectory..ctor()
at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateTemporaryDirectory()
at Microsoft.DotNet.Configurer.NuGetPackagesArchiver..ctor()
at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
Aborted
I did what I was told here: https://www.microsoft.com/net/core#linuxdebian
The 4 command at the top. Then I did this: https://code.visualstudio.com/docs/setup/linux
I am not sure about anything I have done about the issue, because one problem came another... There was a file that didn't match the requirements (in jessie it would be fine but the kali is based on the debian 9 and that file is no longer the same...) I downgraded it to a lower version (don't remember the name of the file, sorry). But I surfed the net the whol evening and did everything I was told to make this work, but I got always a different error message at a different point of the procedure xd... I ended up with the posted issue below. I can run the application, I can click create new file or open a directory but (as far as I remember, I used to get an error connected to the task.json and the launch.json and the pre-task thing, but somehow I managed to solve that problem.) I am sorry that I don't remember everything properly, but now this is the main problem.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Kali is set up differently than Debian. It's Debian based, but it's quite a bit different. And Kali is not designed for programming. So, it might be missing a lot. Did you make sure all the files went where they were supposed to?
Also, the instructions tell you to link /opt/dotnet/dotnet to /usr/local/bin, which I advise against, because you might need /usr/local/bin itself for something else. And since /usr/local/bin exists, the command probably didn't work.
Last edited by AwesomeMachine; 07-03-2017 at 03:34 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.