PeterM | 2021-05-18 04:20:10 UTC | #1
Hi
For a working app that uses a Client Credentials Grant, I've just updated the .NET SDK's PlatformAPI from version 71.0.0 to 121.0.0. It's been a while since this app has had some maintenance. Had to fix up a few enum differences but after that the app compiles OK.
However, on startup I'm getting the following exception when I try to instantiate a new PureCloudPlatform.Client.V2.Client.Configuration class:
System.TypeInitializationException: The type initializer for 'PureCloudPlatform.Client.V2.Client.Configuration' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'INIFileParser, Version=2.4.0.0, Culture=neutral, PublicKeyToken=79af7b307b65cf3c' or one of its dependencies. The system cannot find the file specified. at PureCloudPlatform.Client.V2.Client.Configuration.ConfigurationParser.Read() at PureCloudPlatform.Client.V2.Client.Configuration.applyConfigFromFile() at PureCloudPlatform.Client.V2.Client.Configuration..ctor(ApiClient apiClient, Dictionary2 defaultHeader, String username, String password, String accessToken, Dictionary2 apiKey, Dictionary`2 apiKeyPrefix, String tempFolderPath, String dateTimeFormat, Int32 timeout, Boolean shouldRefreshAccessToken, Int32 refreshTokenWaitTime, String userAgent, String configFilePath, Boolean autoReloadConfig) at PureCloudPlatform.Client.V2.Client.Configuration..cctor()
End of inner exception stack trace --- at PureCloudPlatform.Client.V2.Client.Configuration.setApiClientUsingDefault(ApiClient apiClient) at PureCloudPlatform.Client.V2.Client.Configuration..ctor(ApiClient apiClient, Dictionary2 defaultHeader, String username, String password, String accessToken, Dictionary2 apiKey, Dictionary`2 apiKeyPrefix, String tempFolderPath, String dateTimeFormat, Int32 timeout, Boolean shouldRefreshAccessToken, Int32 refreshTokenWaitTime, String userAgent, String configFilePath, Boolean autoReloadConfig) at Circle.Purecloud.Connect() in D:\Trunks\Piriti 1\Classes\Purecloud.vb:line 158
Can anyone tell me what this INIFileParser is and where I get it from? I've browsed all the release notes between version 71.0.0 and 121.0.0 and there's nothing obvious that I can see about any changes to the PureCloud connection logic.
I'd be grateful for any and all ideas to resolve. Thanks
Peter,
anon11147534 | 2021-05-18 07:57:42 UTC | #2
Hi Peter,
The INIFileParser dependency was added as part of a new feature to allow the SDK to be configured dynamically using a configuration file. You can see more about it here on the developer center.
I developed this feature on a mac so validating it on Windows wasn't a possibility for me. I'll take another look into this and push out a fix for it. In the meantime, if you use version 120.0.0 you should have no issues.
Ronan
PeterM | 2021-05-18 22:13:19 UTC | #3
Ronan
Thanks for your reply. I've downgraded to v120.0.0 as you suggested and things are back working again.
Could you update this thread when you've developed a fix and I'll test it for you.
Cheers
Peter,
anon11147534 | 2021-05-19 09:24:12 UTC | #4
Hi Peter,
Yeah sure. I'll let you know as soon as it's released.
Thanks, Ronan
anon11147534 | 2021-05-20 16:37:11 UTC | #5
Hi Peter,
Version 122.0.2 has been released with the fix.
PeterM | 2021-05-20 21:39:52 UTC | #6
Thanks Ronan. I'll download 122.0.2 next week and let you know how I get on.
Peter,
PeterM | 2021-05-24 03:54:04 UTC | #7
Ronan
I've applied 122.0.2 to our project and it overcomes the problem I had with 121.0.0 and works great thanks.
Peter,
system | 2021-06-24 03:54:08 UTC | #8
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 10940