{"action":"created","issue":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/293","labels_url":"https://api.github.com/repos/jstedfast/MailKit/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/jstedfast/MailKit/issues/293/comments","events_url":"https://api.github.com/repos/jstedfast/MailKit/issues/293/events","html_url":"https://github.com/jstedfast/MailKit/issues/293","id":129924174,"number":293,"title":"Sending email example not working with dnxcore50","user":{"login":"mogarick","id":4414145,"avatar_url":"https://avatars.githubusercontent.com/u/4414145?v=3","gravatar_id":"","url":"https://api.github.com/users/mogarick","html_url":"https://github.com/mogarick","followers_url":"https://api.github.com/users/mogarick/followers","following_url":"https://api.github.com/users/mogarick/following{/other_user}","gists_url":"https://api.github.com/users/mogarick/gists{/gist_id}","starred_url":"https://api.github.com/users/mogarick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogarick/subscriptions","organizations_url":"https://api.github.com/users/mogarick/orgs","repos_url":"https://api.github.com/users/mogarick/repos","events_url":"https://api.github.com/users/mogarick/events{/privacy}","received_events_url":"https://api.github.com/users/mogarick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-30T01:18:52Z","updated_at":"2016-01-30T01:58:13Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to run the sending email example from MacOSX.\r\nThe build works without error but when trying to run I get the next error:\r\n\r\n```\r\nSystem.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.\r\n\r\nFile name: 'System.Net.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.IO.FileNotFoundException: Could not load the specified file.\r\nFile name: 'System.Net.Security'\r\n   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)\r\n   at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)\r\n   at MailKit.Net.Smtp.SmtpClient.Connect(String host, Int32 port, SecureSocketOptions options, CancellationToken cancellationToken)\r\n   at MailKit.MailService.Connect(String host, Int32 port, Boolean useSsl, CancellationToken cancellationToken)\r\n   at app01console.Program.Main(String[] args)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider)\r\n   at Microsoft.Dnx.ApplicationHost.Program.<>c__DisplayClass3_0.<ExecuteMain>b__0()\r\n   at System.Threading.Tasks.Task`1.InnerInvoke()\r\n   at System.Threading.Tasks.Task.Execute()\r\nSystem.IO.FileNotFoundException: Could not load the specified file.\r\nFile name: 'System.Net.Security'\r\n   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)\r\n   at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)\r\n```\r\nI tried adding `System.Net.Security` to my dependencies but the error remained.\r\n\r\nCould you help me with this? Is this a real bug or Am I missing something?"},"comment":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/comments/177045694","html_url":"https://github.com/jstedfast/MailKit/issues/293#issuecomment-177045694","issue_url":"https://api.github.com/repos/jstedfast/MailKit/issues/293","id":177045694,"user":{"login":"jstedfast","id":338984,"avatar_url":"https://avatars.githubusercontent.com/u/338984?v=3","gravatar_id":"","url":"https://api.github.com/users/jstedfast","html_url":"https://github.com/jstedfast","followers_url":"https://api.github.com/users/jstedfast/followers","following_url":"https://api.github.com/users/jstedfast/following{/other_user}","gists_url":"https://api.github.com/users/jstedfast/gists{/gist_id}","starred_url":"https://api.github.com/users/jstedfast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstedfast/subscriptions","organizations_url":"https://api.github.com/users/jstedfast/orgs","repos_url":"https://api.github.com/users/jstedfast/repos","events_url":"https://api.github.com/users/jstedfast/events{/privacy}","received_events_url":"https://api.github.com/users/jstedfast/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T01:58:13Z","updated_at":"2016-01-30T01:58:13Z","body":"Another possibility is that you might need to run `dnu restore` so that the dependencies are fetched properly?"}}