Azure Data Cache からデータをプルする新しい MVC アプリを作成しています。ただし、DataCache
オブジェクトをインスタンス化しようとするとすぐに、コードが無期限にハングします。エラーやタイムアウトは発生しません。新しいオブジェクトを作成しようとしているだけです。
現時点では、私のコードは文字通り以下のものです。
public ActionResult Index()
{
DataCache cache = new DataCache();
Debugger.break;
}
new DataCache()
しかし、ステートメントを通過することはありません。Visual Studio でデバッガーを一時停止すると、デバッガーがライン上で一時停止していることがわかるnew DataCache()
ので、間違いなく実行が停止しています。
私の web.config には、次のように新しい Azure キャッシュ パッケージをインポートしたときに NuGet によって追加されたセクションがあります。
<dataCacheClients>
<dataCacheClient name="default">
<!--To use the in-role flavor of Windows Azure Caching, set identifier to be the cache cluster role name -->
<!--To use the Windows Azure Caching Service, set identifier to be the endpoint of the cache cluster -->
<autoDiscover isEnabled="true" identifier="{{REMOVED}}" />
<!--<localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" />-->
<!--Use this section to specify security settings for connecting to your cache. This section is not required if your cache is hosted on a role that is a part of your cloud service. -->
<securityProperties mode="Message" sslEnabled="false">
<messageSecurity authorizationInfo="{{REMOVED}}" />
</securityProperties>
</dataCacheClient>
</dataCacheClients>
web.config の値が Azure portal の値と一致することを再確認しましたが、問題ありません。
誰かがこれの原因を知っていますか? それがどれほど新しいかを考えると、それは非常に基本的なものだと思います。