{"action":"created","issue":{"url":"https://api.github.com/repos/okta/okta-sdk-dotnet/issues/296","repository_url":"https://api.github.com/repos/okta/okta-sdk-dotnet","labels_url":"https://api.github.com/repos/okta/okta-sdk-dotnet/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/okta/okta-sdk-dotnet/issues/296/comments","events_url":"https://api.github.com/repos/okta/okta-sdk-dotnet/issues/296/events","html_url":"https://github.com/okta/okta-sdk-dotnet/issues/296","id":394668046,"node_id":"MDU6SXNzdWUzOTQ2NjgwNDY=","number":296,"title":"AmbiguousMatchException: Multiple custom attributes of the same type found","user":{"login":"justinhelgerson","id":1317190,"node_id":"MDQ6VXNlcjEzMTcxOTA=","avatar_url":"https://avatars2.githubusercontent.com/u/1317190?v=4","gravatar_id":"","url":"https://api.github.com/users/justinhelgerson","html_url":"https://github.com/justinhelgerson","followers_url":"https://api.github.com/users/justinhelgerson/followers","following_url":"https://api.github.com/users/justinhelgerson/following{/other_user}","gists_url":"https://api.github.com/users/justinhelgerson/gists{/gist_id}","starred_url":"https://api.github.com/users/justinhelgerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinhelgerson/subscriptions","organizations_url":"https://api.github.com/users/justinhelgerson/orgs","repos_url":"https://api.github.com/users/justinhelgerson/repos","events_url":"https://api.github.com/users/justinhelgerson/events{/privacy}","received_events_url":"https://api.github.com/users/justinhelgerson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-28T16:06:00Z","updated_at":"2018-12-28T18:55:26Z","closed_at":null,"author_association":"NONE","body":"I'm experiencing a runtime issue with this library and I was hoping someone might be able to provide some guidance.  It looks to be caused by [this line](https://github.com/okta/okta-sdk-dotnet/blob/e155419fe2097b0bc490e366e182d173526b58ac/src/Okta.Sdk/Internal/UserAgentBuilder.cs#L44) in the `UserAgentBuilder` class.  I'm running an ASP.NET (not Core) application on .NET Framework.  The runtime exception isn't an issue when running on .NET Core.\r\n\r\nI'm not able to reproduce the issue on my Windows 10 machine, but in our test & production environments (Windows Server 2012) we do experience the runtime exception.  I tried bumping up the version of .NET Framework on our test server (to match my development environment), but no dice.\r\n\r\nI realize this isn't exactly an issue with the Okta library and it's likely a netstandard vs netframework topic, but I suspect someone else may run into this issue as well.  I've already downgraded one application to the older `Okta.Core.Client` library to address this issue.  I'd like to keep using this library, and unfortunately the issue is caused by the user agent telemetry data being collected which isn't relevant to what I'm trying to do. \r\n\r\n```\r\nSystem.Reflection.AmbiguousMatchException: Multiple custom attributes of the same type found.\r\n   at System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, Boolean inherit)\r\n   at System.Runtime.InteropServices.RuntimeInformation.get_FrameworkDescription()\r\n   at Okta.Sdk.Internal.UserAgentBuilder.Generate()\r\n   at System.Lazy`1.CreateValue()\r\n   at System.Lazy`1.LazyInitValue()\r\n```"},"comment":{"url":"https://api.github.com/repos/okta/okta-sdk-dotnet/issues/comments/450409458","html_url":"https://github.com/okta/okta-sdk-dotnet/issues/296#issuecomment-450409458","issue_url":"https://api.github.com/repos/okta/okta-sdk-dotnet/issues/296","id":450409458,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDQwOTQ1OA==","user":{"login":"justinhelgerson","id":1317190,"node_id":"MDQ6VXNlcjEzMTcxOTA=","avatar_url":"https://avatars2.githubusercontent.com/u/1317190?v=4","gravatar_id":"","url":"https://api.github.com/users/justinhelgerson","html_url":"https://github.com/justinhelgerson","followers_url":"https://api.github.com/users/justinhelgerson/followers","following_url":"https://api.github.com/users/justinhelgerson/following{/other_user}","gists_url":"https://api.github.com/users/justinhelgerson/gists{/gist_id}","starred_url":"https://api.github.com/users/justinhelgerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinhelgerson/subscriptions","organizations_url":"https://api.github.com/users/justinhelgerson/orgs","repos_url":"https://api.github.com/users/justinhelgerson/repos","events_url":"https://api.github.com/users/justinhelgerson/events{/privacy}","received_events_url":"https://api.github.com/users/justinhelgerson/received_events","type":"User","site_admin":false},"created_at":"2018-12-28T18:55:26Z","updated_at":"2018-12-28T18:55:26Z","author_association":"NONE","body":"@nbarbettini That would be a welcome change.  I definitely understand the desire for that type of data, but I think foregoing it and letting the Okta operation succeed could be a good change.\r\n\r\nI read through that thread as well.  We're not using Azure or Application Insights.  I've been stumped trying to track down the issue since early this morning, unfortunately no progress."}}
{"actor":{"display_login":"justinhelgerson"}}