Azure的数据高速缓存的问题使用Windows Azure模拟器,但没有错误产生。应用程序只是挂 [英] Azure DataCache Problems with Windows Azure Emulator but no error generated. Application just hangs

查看:218
本文介绍了Azure的数据高速缓存的问题使用Windows Azure模拟器,但没有错误产生。应用程序只是挂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很新的蔚蓝,因此请与我裸露。

我有我想要部署到云服务,并开始使用蔚蓝的数据缓存现有mvc4 web项目。

我已经加入了Windows Azure的缓存的NuGet包两个项目中的解决方案,网络项目和一个类库项目这两者都需要这些。

我再添加对Web项目Web角色,我已经更新了的web.config 的数据高速缓存的标识符引用指向它是启用了Web角色共同位于缓存。

我可以在本地模拟器上没有任何问题,而我没有任何数据高速缓存code运行此。但我把code来访问数据高速缓存的时刻是,当我有问题。就在这个code导致Web项目挂起:

  VAR缓存=新的数据高速缓存(默认);

有没有我所知道的错误,无论是在VS从Web应用程序生成的输出或错误,它只是挂起。

什么是开始诊断的最佳途径在哪里这个问题所在?

更新

我刚才注意到,在应用程序事件日志中生成以下错误:

 应用:CacheServiceEmulator.exe
Framework版本:v4.0.30319
说明:该过程由于未处理的异常终止。
异常信息:Microsoft.ApplicationServer.Caching.DataCacheException
堆栈:
   在Microsoft.ApplicationServer.Caching.AzureCommon.AzureUtility.ProcessException(System.Exception的)
   在Microsoft.ApplicationServer.Caching.CacheServiceEmulator.CacheServiceEmulator.Main(System.String [])错误的应用程序名称:CacheServiceEmulator.exe,版本:1.0.4797.0,时间戳:0x506f41ec
错误模块名称:KERNELBASE.dll,版本:6.2.9200.16451,时间戳:0x50988aa6
异常code:0xe0434352
故障偏移:0x000000000003811c
出错进程ID:0x13cc
错误的应用程序启动时间:0x01ce1b74c41f996d
错误的应用程序路径:D:\\用户\\托尼\\我的文档\\ Visual Studio 2012中\\项目\\ Seqential \\ Didbook_ws \\ Didbook.net \\ Didbook.net 1.0 \\ didbook.net Web.Azure \\ CSX \\调试\\角色\\ didbook。净网站\\插件\\缓存\\ CacheServiceEmulator.exe
错误模块路径:C:\\ WINDOWS \\ SYSTEM32 \\ KERNELBASE.dll
报告编号:03114030-8768-11e2-BEAF-68942335e1fe
断裂封装的全名:
断层包相关的应用ID:故障存储-936878625,5型
活动名称:CLR20r3
回应:不适用
驾驶室ID:0问题签名:
P1:cacheserviceemulator.exe
P2:1.0.4797.0
P3:506f41ec
P4:Microsoft.ApplicationServer.Caching.AzureServerCommon
P5:1.0.4797.0
P6:506f41df
P7:3D
P8:18
P9:SWOUM0PNYW4I1S3EYHEY4VNB5OWO0LJ1
P10:附加的文件:
C:\\用户\\托尼\\应用程序数据\\本地的\\ Temp \\ WER90C9.tmp.WERInternalMetadata.xml这些文件可能是可在这里:
C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportArchive\\AppCrash_cacheserviceemul_667e21a2e47da59aad2c601844d8dcfd3d291a_28d494fe分析符号:
重新检查为解决方案:0
报告编号:03114030-8768-11e2-BEAF-68942335e1fe
报告状态:0
散列桶:700c7356d6308372410cf1d2baaf5d77

这是否有助于追查发生了什么?

另外一个一块信息,可以帮助的是,如果我创建了一个全新的解决方案,添加一个Web角色,使合作位于缓存我可以让它很好地工作 - 它只是似乎特定于该解决方案的东西

解决方案

Azure的缓存模拟器启动的Logman.exe传递CNF参数作为30:00,但是logman可能会拒绝它,如果格式与您的区域设置不兼容。

所有你所要做的,就是改变长的时间设置为HH:MM:SS,它会作品

I'm very new to azure and so please bare with me.

I have an existing mvc4 web project which I wanted to deploy to a cloud service and to start using the azure data caching.

I have added the windows azure caching nuget packages to two projects in the solution, the web project and a class library project both of which will need these.

I then add a web role for the web project, and I have updated the datacache identifier reference in the web.config to point to the web role which is enabled for co located caching.

I can run this locally on the emulator without any problems while I don't have any datacache code. But the moment I put in code to access the datacache is when I have problems. Just this code caused the web project to hang:

var cache = new DataCache("default");

There are not errors that I am aware of, either in the vs output or errors generated from the web application, it just hangs.

What is the best way to start diagnosing where this problem lies?

UPDATE

I have just noticed the following errors generated in the application event log:

Application: CacheServiceEmulator.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.ApplicationServer.Caching.DataCacheException
Stack:
   at Microsoft.ApplicationServer.Caching.AzureCommon.AzureUtility.ProcessException(System.Exception)
   at Microsoft.ApplicationServer.Caching.CacheServiceEmulator.CacheServiceEmulator.Main(System.String[])

Faulting application name: CacheServiceEmulator.exe, version: 1.0.4797.0, time stamp: 0x506f41ec
Faulting module name: KERNELBASE.dll, version: 6.2.9200.16451, time stamp: 0x50988aa6
Exception code: 0xe0434352
Fault offset: 0x000000000003811c
Faulting process ID: 0x13cc
Faulting application start time: 0x01ce1b74c41f996d
Faulting application path: D:\Users\Tony\My Documents\Visual Studio 2012\Projects\Seqential\Didbook_ws\Didbook.net\Didbook.net v1.0\didbook.net Web.Azure\csx\Debug\roles\didbook.net Web\plugins\Caching\CacheServiceEmulator.exe
Faulting module path: C:\WINDOWS\system32\KERNELBASE.dll
Report ID: 03114030-8768-11e2-beaf-68942335e1fe
Faulting package full name: 
Faulting package-relative application ID: 

Fault bucket -936878625, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: cacheserviceemulator.exe
P2: 1.0.4797.0
P3: 506f41ec
P4: Microsoft.ApplicationServer.Caching.AzureServerCommon
P5: 1.0.4797.0
P6: 506f41df
P7: 3d
P8: 18
P9: SWOUM0PNYW4I1S3EYHEY4VNB5OWO0LJ1
P10: 

Attached files:
C:\Users\Tony\AppData\Local\Temp\WER90C9.tmp.WERInternalMetadata.xml

These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_cacheserviceemul_667e21a2e47da59aad2c601844d8dcfd3d291a_28d494fe

Analysis symbol: 
Rechecking for solution: 0
Report ID: 03114030-8768-11e2-beaf-68942335e1fe
Report Status: 0
Hashed bucket: 700c7356d6308372410cf1d2baaf5d77

Does that help track down what is happening?

One other piece of info that may help is that if I create a brand new solution, add a web role and enable co located caching I can get it to work fine -- it just appears something specific to this solution.

解决方案

The Azure Caching emulator starts logman.exe passing the cnf parameter as 30:00, but logman may reject it if the format is not compatible with your regional settings.

All you have to do, is to change the Long time setting to "HH:mm:ss" and it'll works.

这篇关于Azure的数据高速缓存的问题使用Windows Azure模拟器,但没有错误产生。应用程序只是挂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆