Tuesday, August 13, 2013

The configuration section 'system.identityModel' cannot be read because it is missing a section declaration

If you see the following error message in your WIF enabled application:

The configuration section 'system.identityModel' cannot be read because it is missing a section declaration.

Don’t search the solution too far, the issue is exactly as the error message is saying. You probably forgot to add he configuration section and namespace declaration under the <configSections> element in your app.config or web.config:

Who is saying that error messages can’t be descriptive? Glimlach

6 comments:

Apoorva Dixit said...

Perfect, I did copy and paste the section but forgot the entry in configSections

Anonymous said...

Awesome thanks! :)

San Diego Guy said...

Thank you!!!!!!!

Anonymous said...

thanks!

Anonymous said...

works for me! thanks!

Anonymous said...

Wow, why didn't it add it automatically!!! Wow wow.