ASP.NET SessionState error: Provider must implement the class 'System.Web.SessionState.SessionStateStoreProviderBase'
After switching to the async SQL Session State Provider one of our projects failed to run. Instead we got a yellow-screen-of-death with the following message:
Provider must implement the class 'System.Web.SessionState.SessionStateStoreProviderBase'
I had to take one extra manual step to get the async provider up and running. I had to replace the default session state module by an async alternative:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.webServer> | |
<modules> | |
<remove name="Session" /> | |
<add name="Session" | |
type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
preCondition="integratedMode" /> | |
</modules> | |
</system.webServer> |