Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Analytics Startup logs an error after waking up from appPool time out #90

@Chiel75

Description

@Chiel75

We use the Analyics.CSharp in an ASP.Net project. After the appPool times out, the memory is cleared.
When the website is waking up again because of user activity, the Analytics StartUp() is called again (as it should because we registrered the Analytics as a singleton).
After waking up, in the StartUp() is tried to:
await Store.Provide(System.DefaultState(Configuration, Storage));
In the DefaultState method the cache is read from the storage (in this case the lost inmemorystream because of the appPool) and returns an empty string variable cache. After that, the empty cache string will generate an exception that is being logged.

Expected behavior
No uneccesary exception should be thrown. Maybe an info message the the state could not be found from the cache.

Platform (please complete the following information):

  • Library Version in use: 2.3.2
  • Platform being tested: ASP.Net
  • Integrations in use:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions