无法在WebConfig文件中设置outputCacheSettings

Ath*_*hul 2 asp.net web-config output-caching

我试图在我的网站中实现输出缓存当我尝试添加时

    <outputCacheSettings>
    <outputCacheProfiles>
        <add name="TwoDay" duration="43200" />
    </outputCacheProfiles>
</outputCacheSettings>
Run Code Online (Sandbox Code Playgroud)

这对我的webconfig文件引发了错误

    The configuration section 'outputCacheSettings' cannot be read because it is missing a section declaration
Run Code Online (Sandbox Code Playgroud)

我在里面添加了上面的代码

<configuration>
Run Code Online (Sandbox Code Playgroud)

webconfig中的部分.谁能告诉我我做错了什么?

Cod*_*ter 6

将它放在MSDN上解释的<caching>部分中.<system.web>