开发者

SqlDependency throwing Invalid Operation exception

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜