Xperience_13 .Net Core when project running get "Object Reference Error"

Şevket Kismetli asked on September 17, 2021 09:24

Hi everybody,

I am Şevket. I installed new project(.Net Core, Windows10) by using "Xperience_13_Refresh3_trial" application. When i run the project i get "Object Reference not to set instance" error. I write out the exception below.

Thanks for your help.

-------- The Exception ---------------

An unhandled exception occurred while processing the request. NullReferenceException: Object reference not set to an instance of an object.

CMS.Membership.Internal.VirtualContextAuthenticationConfiguration.get_Audience()

NullReferenceException: Object reference not set to an instance of an object. CMS.Membership.Internal.VirtualContextAuthenticationConfiguration.get_Audience() CMS.Membership.Internal.SecurityTokenManager

Recent Answers


David te Kloese answered on September 17, 2021 09:42

Hi,

This seems quite the generic error, so could be a lot of things.

Did you walk through the docs when installing? https://docs.xperience.io/installation

0 votesVote for this answer Mark as a Correct answer

Sean Wright answered on September 18, 2021 07:24

  1. Do you have the CMSHashStringSalt value in both applications settings?

  2. Do you have a valid license added in the administration application for whatever domain you are running the ASPNET Core app under?

  3. Have you made any custom code changes to the sample app project?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on September 20, 2021 07:16

I would check the license key for given domain name and also make sure the Presentation URL is set correctly in Kentico admin app. Then, make sure the Core app is up and running - IIS Express, Visual studio or, in some cases this approach could work too to have the front end site up and running without publishing the Core app all the time.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.