2

I am Trying to implement outputcaching in my website When I try to add

    <outputCacheSettings>
    <outputCacheProfiles>
        <add name="TwoDay" duration="43200" />
    </outputCacheProfiles>
</outputCacheSettings>

This to my webconfig file it throws an error

    The configuration section 'outputCacheSettings' cannot be read because it is missing a section declaration

I have added above code inside

<configuration>

section in webconfig. Can any one tell me what I am doing wrong?

Monika
  • 2,172
  • 15
  • 24
None
  • 5,582
  • 21
  • 85
  • 170

1 Answers1

7

Put it in the <caching> section in the <system.web> section as explained here on MSDN.

CodeCaster
  • 147,647
  • 23
  • 218
  • 272