Reputation: 9
Dim stream As FileStream = New FileStream("jsonFile.json", FileMode.Open)
Dim iconfig As IBoxConfig = BoxConfig.CreateFromJsonFile(stream)
Dim admintoken As String = boxJWT.AdminToken()
Dim adminClient As BoxClient = boxJWT.AdminClient(admintoken)
Dim boxJWT As BoxJWTAuth = New BoxJWTAuth(iconfig)
Dim userToken As String = boxJWT.UserToken(userId)
Dim userClient As BoxClient = boxJWT.UserClient(userToken, userId)
The code is succed in Visual Studio,but failed at Blue Prism. The error is occur at here --Dim admintoken As String = boxJWT.AdminToken()
Upvotes: 0
Views: 4723
Reputation: 452
I fixed this issue on mine by deleting the reference for "System.IdentityModel" and only having a reference to "System.IdentityModel.Tokens.Jwt". It seems like there is a conflict in versions that causes this issue.
Upvotes: 2