You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are on dotnet8. Something in Okta.Sdk relies on Microsoft.Bcl.AsyncInterfaces v7.0.0 or greater but is not specifically requiring this package. Building the project is fine. However, if we run our project and call any Okta.Sdk apis, it will crash until we add a reference to Microsoft.Bcl.AsyncInterfaces v7.0.0 or greater.
What is expected to happen?
Should not receive a runtime error.
What is the actual behavior?
Runtime error when using any Okta.Sdk apis.
Reproduction Steps?
create new dotnet8 console project
dotnet new console --name yourprojname
add reference
add Okta.Sdk 7.0.6 reference
add the following code to program.cs - replacing yourtoken and yourdomain with the correct parameters using Okta.Sdk.Api; using Okta.Sdk.Client;
var userApi = new UserApi(new Configuration { Token = "yourtoken", OktaDomain = "yourdomain" }); var users = userApi.ListUsers();
run the project error received: Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces,Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified. File name: 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' at Program.<Main>$(String[] args)
Additional Information?
No response
.NET Version
8.0.204
SDK Version
7.0.6
OS version
No comment
The text was updated successfully, but these errors were encountered:
@bryanapellanes-okta I am running into the same issue and in addition, I have a console app that that works but in AspNetCore the same code returns (0) and no error.
Describe the bug?
We are on dotnet8. Something in
Okta.Sdk
relies onMicrosoft.Bcl.AsyncInterfaces v7.0.0
or greater but is not specifically requiring this package. Building the project is fine. However, if we run our project and call anyOkta.Sdk
apis, it will crash until we add a reference toMicrosoft.Bcl.AsyncInterfaces v7.0.0
or greater.What is expected to happen?
Should not receive a runtime error.
What is the actual behavior?
Runtime error when using any Okta.Sdk apis.
Reproduction Steps?
create new dotnet8 console project
dotnet new console --name yourprojname
add reference
add
Okta.Sdk 7.0.6
referenceadd the following code to program.cs - replacing
yourtoken
andyourdomain
with the correct parametersusing Okta.Sdk.Api;
using Okta.Sdk.Client;
var userApi = new UserApi(new Configuration { Token = "yourtoken", OktaDomain = "yourdomain" });
var users = userApi.ListUsers();
run the project
error received:
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces,
Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Program.<Main>$(String[] args)
Additional Information?
No response
.NET Version
8.0.204
SDK Version
7.0.6
OS version
No comment
The text was updated successfully, but these errors were encountered: