{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/1472","repository_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk","labels_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/1472/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/1472/comments","events_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/1472/events","html_url":"https://github.com/Azure/azure-webjobs-sdk/issues/1472","id":283131084,"number":1472,"title":"Couldn't load assembly System.Data.SqlClient: System.AppDomain conflict in assemblies","user":{"login":"PoisonousJohn","id":1488281,"avatar_url":"https://avatars0.githubusercontent.com/u/1488281?v=4","gravatar_id":"","url":"https://api.github.com/users/PoisonousJohn","html_url":"https://github.com/PoisonousJohn","followers_url":"https://api.github.com/users/PoisonousJohn/followers","following_url":"https://api.github.com/users/PoisonousJohn/following{/other_user}","gists_url":"https://api.github.com/users/PoisonousJohn/gists{/gist_id}","starred_url":"https://api.github.com/users/PoisonousJohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PoisonousJohn/subscriptions","organizations_url":"https://api.github.com/users/PoisonousJohn/orgs","repos_url":"https://api.github.com/users/PoisonousJohn/repos","events_url":"https://api.github.com/users/PoisonousJohn/events{/privacy}","received_events_url":"https://api.github.com/users/PoisonousJohn/received_events","type":"User","site_admin":false},"labels":[{"id":620217197,"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/labels/needs-investigation","name":"needs-investigation","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"fabiocav","id":2507935,"avatar_url":"https://avatars2.githubusercontent.com/u/2507935?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiocav","html_url":"https://github.com/fabiocav","followers_url":"https://api.github.com/users/fabiocav/followers","following_url":"https://api.github.com/users/fabiocav/following{/other_user}","gists_url":"https://api.github.com/users/fabiocav/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiocav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiocav/subscriptions","organizations_url":"https://api.github.com/users/fabiocav/orgs","repos_url":"https://api.github.com/users/fabiocav/repos","events_url":"https://api.github.com/users/fabiocav/events{/privacy}","received_events_url":"https://api.github.com/users/fabiocav/received_events","type":"User","site_admin":false},"assignees":[{"login":"fabiocav","id":2507935,"avatar_url":"https://avatars2.githubusercontent.com/u/2507935?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiocav","html_url":"https://github.com/fabiocav","followers_url":"https://api.github.com/users/fabiocav/followers","following_url":"https://api.github.com/users/fabiocav/following{/other_user}","gists_url":"https://api.github.com/users/fabiocav/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiocav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiocav/subscriptions","organizations_url":"https://api.github.com/users/fabiocav/orgs","repos_url":"https://api.github.com/users/fabiocav/repos","events_url":"https://api.github.com/users/fabiocav/events{/privacy}","received_events_url":"https://api.github.com/users/fabiocav/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/milestones/23","html_url":"https://github.com/Azure/azure-webjobs-sdk/milestone/23","labels_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/milestones/23/labels","id":2605216,"number":23,"title":"Active Questions","description":null,"creator":{"login":"paulbatum","id":10663,"avatar_url":"https://avatars2.githubusercontent.com/u/10663?v=4","gravatar_id":"","url":"https://api.github.com/users/paulbatum","html_url":"https://github.com/paulbatum","followers_url":"https://api.github.com/users/paulbatum/followers","following_url":"https://api.github.com/users/paulbatum/following{/other_user}","gists_url":"https://api.github.com/users/paulbatum/gists{/gist_id}","starred_url":"https://api.github.com/users/paulbatum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulbatum/subscriptions","organizations_url":"https://api.github.com/users/paulbatum/orgs","repos_url":"https://api.github.com/users/paulbatum/repos","events_url":"https://api.github.com/users/paulbatum/events{/privacy}","received_events_url":"https://api.github.com/users/paulbatum/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":10,"state":"open","created_at":"2017-06-26T17:46:10Z","updated_at":"2018-02-07T22:30:43Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2017-12-19T07:40:24Z","updated_at":"2018-02-08T21:44:53Z","closed_at":null,"author_association":"NONE","body":"I'm trying to use System.Data.SqlClient to work with Azure SQL, but I get exception during local testing.\r\n\r\n#### Repro steps\r\n\r\n1. Clone repository: https://github.com/PoisonousJohn/CSharpHttpCore\r\n2. Launch project in VS or VSCode\r\n3. Execute function: http://localhost:7071/api/HttpTriggerCSharp\r\n\r\n#### Expected behavior\r\n\r\nFunction fires without errors\r\n\r\n#### Actual behavior\r\n\r\nI get exception during function execution:\r\n```\r\nException during runtime resolution of assembly 'System.Data.SqlClient, Version=4.2.0.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a': \r\n'System.InvalidCastException: [A]System.AppDomain cannot be cast to [B]System.AppDomain. \r\nType A originates from 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\2.0.3\\System.Private.CoreLib.dll'. \r\nType B originates from 'System.Runtime.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the context 'Default' at location 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\2.0.3\\System.Runtime.Extensions.dll'.\r\n```\r\n\r\n#### Known workarounds\r\n\r\nNo any workaround for me\r\n\r\n#### Related information \r\n\r\nProvide any related information \r\n\r\n* `-- azure-functions-core-tools@2.0.1-beta.22\r\n* https://github.com/PoisonousJohn/CSharpHttpCore\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/comments/364258453","html_url":"https://github.com/Azure/azure-webjobs-sdk/issues/1472#issuecomment-364258453","issue_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/1472","id":364258453,"user":{"login":"justin-lovell","id":178498,"avatar_url":"https://avatars3.githubusercontent.com/u/178498?v=4","gravatar_id":"","url":"https://api.github.com/users/justin-lovell","html_url":"https://github.com/justin-lovell","followers_url":"https://api.github.com/users/justin-lovell/followers","following_url":"https://api.github.com/users/justin-lovell/following{/other_user}","gists_url":"https://api.github.com/users/justin-lovell/gists{/gist_id}","starred_url":"https://api.github.com/users/justin-lovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justin-lovell/subscriptions","organizations_url":"https://api.github.com/users/justin-lovell/orgs","repos_url":"https://api.github.com/users/justin-lovell/repos","events_url":"https://api.github.com/users/justin-lovell/events{/privacy}","received_events_url":"https://api.github.com/users/justin-lovell/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T21:44:53Z","updated_at":"2018-02-08T21:44:53Z","author_association":"NONE","body":"If there could be any further insight, I also noticed the binding to Newtonsoft being version specific too."}}
{"actor":{"display_login":"justin-lovell"}}