开发者

SqlDependency throwing Invalid Operation exception

开发者 https://www.devze.com 2023-01-08 14:19 出处:网络
In our project we are invalidating the cache based on the change in the query output. This is implemented using change notifications.

In our project we are invalidating the cache based on the change in the query output. This is implemented using change notifications.

In the Global.asax file in the Application Start block we have also added SqlDependency.Start(ConnectionStr). But still its throwing the following invalid operation exception:

Message "When using SqlDependency without providing an options value, SqlDependency.Start() must be called prior to execution of a co开发者_高级运维mmand added to the SqlDependency instance." string

What could be the possible reason for this issue?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号