HangfireIO / HangfireIO/Hangfire
Redis Pro Exception: System.TypeInitializationException was unhandled After Azure Insights installation.
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
Today we enabled application insights into our azure websites application.
In doing so, to test locally, we had to install their Status Monitor as linked to from this page
https://docs.microsoft.com/en-us/azure/application-insights/app-insights-monitor-performance-live-website-now under the "Monitor a live IIS web app" section.
After getting everything all setup, we started getting this error:
```
System.TypeInitializationException was unhandled
Message: An unhandled exception of type 'System.TypeInitializationException' occurred in Hangfire.Pro.Redis.dll
Additional information: The type initializer for 'Hangfire.Pro.Redis.RedisStorage' threw an exception.
```
That was all the information we could get.
Do you have any idea what might cause this?
Contributor guide
Research direction
Start by reproducing the failure after installing the Azure Status Monitor described in the linked documentation, then capture the complete exception and inner exception from Hangfire.Pro.Redis.RedisStorage. Done means identifying the compatibility cause and documenting a confirmed fix or workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp, redis
- Domain
- backend, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100