ConsoleApp can not authenticate in 10.2.9

lock
push_pin
done
Beantwoord
1

Hi!

I wonder if something has happened between 10.2.1 and 10.2.9
In 10.2.1 we needed to do the stuf with register services to the NetServer

My build up of the NetServer registration 

Above was enough for 10.2.1 , I get Authentication Failed. Fetching userName and password from appSettngs section in configuration. (SO system user and pwd fetches ok but it is when doing : 

The exception happens. (username and pwd is correctly fetched from the config file)

What caught my Interest was the inner exception:
"No service for type 'SuperOffice.CRM.Services.ISoPrincipalService' has been registered."

That points me to that someThing more needs to be added to the NetServer registration? But I can not find out what.
There is no .AddSingelton for: <ISoPrincipalService > that the exception spits out.

Did same test with .AddSingleton<ISoIdentity , xxx>();

//Best regards
Anders

27 feb. 2024 | 05:22 p.m.

Alles Antwoorden (1)

Hi,
It seems to hav happened a lot since 10.1.6/10.2.1
It would be nice with complet working console application with correct app.settings file and how to authenticate with username/password for Onsite 10.2.9 and onwards like this:.
GitHub - SuperOffice/v10.1.x-examples: Contains breaking change examples for the SuperOffice 10.1.x releases.

i am struggling to get a working 10.1.6 consoleapp to work with 10.2.9 onPrem.
Any help is welcome 
//Anders

29 feb. 2024 | 09:30 a.m.

Reply toevoegen