Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

System.Net.Security could not be loaded on arm machine #3355

Closed
jornbeyers opened this issue Feb 9, 2016 · 2 comments
Closed

System.Net.Security could not be loaded on arm machine #3355

jornbeyers opened this issue Feb 9, 2016 · 2 comments
Milestone

Comments

@jornbeyers
Copy link

I'm experiencing the famous "System.Net.Security" issue on an arm machine.
The arm machine is a Raspberry PI which is running Windows IoT Core.

When running the project on version 1.0.0-rc2-16357 on a x64 architecture, everything runs smooth. But when I publish the project and try to run it on the Raspberry PI, I’m facing the following error:

Exception throwed in IoTHubAmqpConnection: System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'System.Net.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.IO.FileNotFoundException: Could not load the specified file. File name: 'System.Net.Security' at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName) at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)

. I already combined the System.Net.Security with the Microsoft.NETCore.Platforms library but this doesn't work for me. Or should I use specific versions? My project.json looks like this:

{
  "version": "1.2.0-*",
  "description": "",
  "authors": [ "" ],
  "tags": [ "" ],
  "projectUrl": "",
  "licenseUrl": "",
  "frameworks": {
    "dnxcore50": {
      "dependencies": {
        "Microsoft.CSharp": "4.0.1-beta-23516",
        "System.Collections": "4.0.11-beta-23516",
        "System.Linq": "4.0.1-beta-23516",
        "System.Runtime": "4.0.21-beta-23516",
        "System.Text.RegularExpressions": "4.0.11-beta-23516",
        "System.Xml.XmlSerializer": "4.0.11-beta-23516",
        "System.ComponentModel": "4.0.1-beta-23516",
        "System.Text.Encoding": "4.0.11-beta-23516",
        "System.Threading.Tasks": "4.0.11-beta-23516"
      }
    }
  },
  "dependencies": {
  },
  "configurations": {
  }
}

There already have been issues regarding System.Net.Security: #4533
It should have been resolved in RC2 builds as stated here #3183

@SamVanhoutte
Copy link

I was able to reproduce this one on my PI as well.

@muratg muratg added this to the Backlog milestone Mar 2, 2016
@muratg
Copy link
Contributor

muratg commented Mar 2, 2016

Could you guys try to do this with the new dotnet CLI? DNX is being retired in RC2 and the new dev workflow will be through the new CLI.

@Eilon Eilon closed this as completed Dec 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants