1

I have updated my project yesterday with IdentityModel 2.6, and I can't find why it does not compile anymore with this error.

error ASPRUNTIME : The pre-application start initialization method Start on type
Thinktecture.IdentityModel.Web.Configuration.AppStart threw an exception with the 
following error message: Value cannot be null.

I have just updated the package, no code change.

EDIT: The problem comes from missing web.config section described here http://brockallen.com/2013/05/28/configuration-for-wif-session-helper-apis-in-thinktecture-identitymodel/

This seems mandatory and all attributes must be filled otherwise it throws... sessionTokenCacheType for exemple must be filled...

It would be great to have more information on this.

TIA

JuChom
  • 5,717
  • 5
  • 45
  • 78
  • Sometimes packages come with a Powershell script that modify parts of your project, take a look at your project Assembly.cs, or better run a `git diff` or equivalent command if you have a source control. – Jahan Zinedine May 29 '13 at 10:38
  • only packages.config and csproj updated. – JuChom May 29 '13 at 10:41
  • So seems that they changed an API call or a configuration, take a look at `AssemblyInfo.cs` and look for `Thinktecture` usages, you may find a clue! – Jahan Zinedine May 29 '13 at 10:42

2 Answers2

2

That's a bug in 2.6. Please upgrade to 2.6.1

leastprivilege
  • 18,196
  • 1
  • 34
  • 50
2

This was a bug and has been fixed in 2.6.1. Update from NuGet again. Sorry for the inconvenience.

Brock Allen
  • 7,385
  • 19
  • 24