I installed the project according to the instructions, and when I restart nopcommerce project, I get the following error:
System.Collections.Generic.KeyNotFoundException: 'The given key 'Nop.Plugin.Api.Configuration.ApiConfiguration' was not present in the dictionary.'
After this, I added to appsettings.json file this:
"ApiConfiguration": {
"SecurityKey":"mykey",
"AllowedClockSkewInMinutes":5,
"EnableApi": true,
"TokenExpiryInDays": 1
}
After this I got another errors occured such as:
Unable to find the required services. Please add all the required services by calling 'IServiceCollection.AddAuthorization' in the application startup code site:stackoverflow.com
I think it's related to property Order in Plugin, but I couldn't resolve these problems.
Could you help me as soon as possible?
I installed the project according to the instructions, and when I restart nopcommerce project, I get the following error:
System.Collections.Generic.KeyNotFoundException: 'The given key 'Nop.Plugin.Api.Configuration.ApiConfiguration' was not present in the dictionary.'
After this, I added to appsettings.json file this:
"ApiConfiguration": {
"SecurityKey":"mykey",
"AllowedClockSkewInMinutes":5,
"EnableApi": true,
"TokenExpiryInDays": 1
}
After this I got another errors occured such as:
Unable to find the required services. Please add all the required services by calling 'IServiceCollection.AddAuthorization' in the application startup code site:stackoverflow.com
I think it's related to property Order in Plugin, but I couldn't resolve these problems.
Could you help me as soon as possible?