LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-23-2017, 03:34 PM   #1
fefe1200
LQ Newbie
 
Registered: Jun 2017
Posts: 3

Rep: Reputation: Disabled
Question Missing DLL according To VSCode


Hi!

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
 
Old 06-24-2017, 08:29 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
how did you install vscode and dotnet core on linux?
 
Old 06-24-2017, 11:36 AM   #3
fefe1200
LQ Newbie
 
Registered: Jun 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-03-2017, 03:16 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wine is missing MFC42.DLL Chris.Bristol Linux - Software 6 11-01-2018 07:45 AM
Missing php_gd2.dll (I tried yum install php-gd) auftbl Linux - Software 7 10-14-2010 10:56 PM
foobar 2000 in wine - dll files is missing kimothy MEPIS 2 08-27-2005 03:04 AM
hal.dll missing linuxbeta Amigo 4 09-19-2004 04:24 AM
missing DLL in WINE GrandTheft Linux - Software 4 06-07-2003 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration