Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: genesys_kumar on October 26, 2021, 12:33:25 PM

Title: PSDK Web App - Custom App
Post by: genesys_kumar on October 26, 2021, 12:33:25 PM
Hi,
I'm developing a custom web app (Asp.Net Core WebAPI) to connect Config Server.  When creating protocol, i'm getting error like "The type initializer for 'Genesyslab.Platform.Configuration.Protocols.ConfServerProtocol' threw an exception..'

any idea?

Thanks,
Kumar
Title: Re: PSDK Web App - Custom App
Post by: cavagnaro on October 26, 2021, 02:54:03 PM
Would be nice to see what you are trying to do exactly
Title: Re: PSDK Web App - Custom App
Post by: hsujdik on October 27, 2021, 05:08:38 PM
I remember that when working with psdk+dotnet core, you need to install a couple of Nuget packages. Did you install any?


Edit:
I reviewed some codes, and those are the packages that I had to install for psdk to work along with .net core:

System.Configuration.ConfigurationManager
System.Diagnostics.PerformanceCounter
Title: Re: PSDK Web App - Custom App
Post by: genesys_kumar on November 04, 2021, 02:11:46 PM
I apologize for the delay response.

I've developed PSDK code in .Net framework 4.8 but web API in Asp.Net Core, i understand PSDK code also developed in .Net Core to work in Asp.Net Core

So i'm modifying web api code in Asp.Net so i'm good with this issue.

Thanks for the response.

Kumar