OutputCache 问题,大家帮忙看看啊!
页面中用(index.aspx)
<%@ OutputCache Duration=60 VaryByParam=none SqlDependency=aqwnj:Article %>
用aspnet_regsql 也注册过了!出现下面问题,请大家赐教!
OutputCache 指令的“aqwnj:Article”SqlDependency 属性无效。
详细错误信息: 无法在配置中找到“aqwnj”数据库。
------解决方案-------------------- <caching>
<sqlCacheDependency enabled= "true " pollTime= "600 ">
<databases>
<add name= " " connectionStringName= " "/>
</databases>
</sqlCacheDependency>
</caching>
在System.Web里加上这个试试
------解决方案-------------------- <caching>
<sqlCacheDependency enabled = "true " pollTime = "1000 " >
<databases>
<add name= "aqwnj "
connectionStringName= "connectionstring "
pollTime = "1000 "
/>
</databases>
</sqlCacheDependency>
</caching>