Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net Windows Azure Web角色缓存(预览)";挂起;使仿真器卡在部署循环中_.net_Azure_Azure Web Roles_Azure Caching - Fatal编程技术网

.net Windows Azure Web角色缓存(预览)";挂起;使仿真器卡在部署循环中

.net Windows Azure Web角色缓存(预览)";挂起;使仿真器卡在部署循环中,.net,azure,azure-web-roles,azure-caching,.net,Azure,Azure Web Roles,Azure Caching,我正试图用新发布的基于角色的缓存替换Windows Azure AppFabric缓存,该缓存是在2012年6月的SDK版本中通过遵循Microsoft网站上的指南引入的 但是,在我的Web角色中选中“启用缓存(预览)”时,仿真器将无法成功实例化网站(仿真器日志:)。它似乎陷入了某种循环。禁用Web角色缓存将使其再次工作。在卸载所有以前的Azure SDK并重新安装1.7版本后,我得到了相同的结果 Visual Studio告诉我“角色实例的启动时间比预期的要长。是否继续等待?”[是][否]。按

我正试图用新发布的基于角色的缓存替换Windows Azure AppFabric缓存,该缓存是在2012年6月的SDK版本中通过遵循Microsoft网站上的指南引入的

但是,在我的Web角色中选中“启用缓存(预览)”时,仿真器将无法成功实例化网站(仿真器日志:)。它似乎陷入了某种循环。禁用Web角色缓存将使其再次工作。在卸载所有以前的Azure SDK并重新安装1.7版本后,我得到了相同的结果

Visual Studio告诉我“角色实例的启动时间比预期的要长。是否继续等待?”[是][否]。按Yes会让它等待,并一次又一次地出现

是否有人可能知道如何解决上述问题,或者可能已经尝试了新的web角色缓存功能并在azure emulator中运行了它

多谢各位

更新:

我创建了一个新的解决方案,只添加了一个简单的MVC站点,添加了web角色并启用了缓存,同样的事情也发生了。因此,我查看了事件查看器,发现了3条与该问题相关的条目:

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

Problem signature:
P1: cacheinstaller.exe
P2: 1.0.4655.0
P3: 4fb0f3f9
P4: CacheInstaller
P5: 1.0.4655.0
P6: 4fb0f3f9
P7: 11
P8: 47
P9: System.TypeLoadException
P10: 

Attached files:
C:\Users\anan\AppData\Local\Temp\WEREA8F.tmp.WERInternalMetadata.xml

These files may be available here:
C:\Users\anan\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_cacheinstaller.e_1fbc3b72afb6acf93335ca8611850d289906c25_2ddaf529

Analysis symbol: 
Rechecking for solution: 0
Report Id: 3138ba06-b344-11e1-a8d6-402cf41c1e07
Report Status: 0


Application: CacheInstaller.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.MissingMethodException
Stack:
   at Microsoft.ApplicationServer.Caching.AzureCommon.Package.InitializeExternalStoreIfRequired()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()
然后:

Application: CacheInstaller.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.MissingMethodException
Stack:
   at Microsoft.ApplicationServer.Caching.AzureCommon.Package.InitializeExternalStoreIfRequired()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()
以及:


仅供参考:这是一个使用Visual Studio 2012 RC的Windows 7 x64企业版。

您的意思是只要选中
复选框以启用缓存,就会发生此错误?这不应该发生。。。它在我的机器上运行得很好

您是在创建新项目还是在升级现有项目?尝试创建一个新项目

还要检查以下日志:

附件:

C:\Users\anan\AppData\Local\Temp\WEREA8F.tmp.WERInternalMetadata.xml 
这些文件可能在以下位置可用:

C:\Users\anan\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_cacheinstaller.e_1fbc3b72afb6acf93335ca8611850d289906c25_2ddaf529 

缺少方法可能意味着加载的程序集中没有该方法。能否确保已将正确的程序集添加到项目中


请确保您的计算机中没有安装Windows AppFabric Server,因为它会导致缓存dll失效,而缓存dll将在运行时被获取。要处理AppFabric服务器dll冲突,请检查是否已安装AppFabric服务器,并卸载缓存或从GAC中删除缓存程序集。我删除了,模拟缓存工作正常

我在我们的博客上有一些可能有用的信息:


对我来说,问题是我的项目是在UNC共享上运行的(实际上是在macbook上的VM上运行的)。当我在选中worker角色上的“启用缓存”框后启动调试器时,它会挂起。要知道,大约每2秒钟它就会在C:\Windows\System32\%LOCALAPPDATA%\CrashDumps中创建一个160MB的转储文件。调试其中一个之后,我可以看到第一个错误是当它试图在我的工作者角色的缓存上启动cmd.exe时,它说cmd不能在网络共享上运行,因此它将默认为windows/system32或其他


就在那时,我发现了这篇7岁的MS KB文章:当我在注册表路径下添加
disableuncheck REG\u DWORD
并将值设置为
0 x 1(十六进制)
时,一切都像冠军一样启动了。希望这对其他人有所帮助。

这里也一样:正如我所说的,我还试图创建一个全新的解决方案,也是一样的。不幸的是,这些文件找不到。当我注意到事件查看器中的日志时,我试图查找它们。感谢Richard在MSDN和此处发布您的链接,并指出我错过的详细信息。非常感谢!我没有安装AppFabric服务器。但大会在GAC举行。我通过运行
gacutil/u Microsoft.ApplicationServer.Caching.Client
gacutil/u Microsoft.ApplicationServer.Caching.Core
C:\Users\anan\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_cacheinstaller.e_1fbc3b72afb6acf93335ca8611850d289906c25_2ddaf529