c# - 角色实例的启动时间比预期要长

标签 c# asp.net-mvc azure azure-storage

当我尝试在本地计算机上的 Windows Azure 模拟器上运行 ASP.net MVC 应用程序时,出现以下错误。如何摆脱此错误?

enter image description here

输出窗口出错

Windows Azure Tools: Warning: Remapping public port 80 to 81 to avoid conflict during emulation.
Windows Azure Tools: Warning: Remapping private port 80 to 82 in role 'PawLoyalty.Web' to avoid conflict during emulation.
Windows Azure Tools: Warning: Certificate identification setting 'Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption' for role 'PawLoyalty.Web' specified in the service configuration file is not declared in the service definition file in the Certificate or as part of an SSL endpont

最佳答案

我们有时也会遇到这个问题。经过反复试验,我们发现这是由缓存引起的。

我们所做的是禁用缓存,运行应用程序(然后它运行良好)并再次启用缓存(并且它再次运行良好)。

这是一个非常蹩脚的解决方案,可能不适合您,但请尝试一下。您可以做的其他事情是删除本地存储模拟器中的cacheclusterconfigs blob 容器。结合使用这两者通常可以解决问题。

enter image description here

关于c# - 角色实例的启动时间比预期要长,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22929837/

相关文章:

jquery - 如何在 Visual Studio 2010 MVC 2 Web 元素中添加 jQuery?

asp.net-mvc - MVC 逻辑应该放在 Controller 还是 View 模型中

ASP.NET Identity + Windows 身份验证(混合模式 - 表单 + Windows)

git - 将 Github Git 存储库迁移到 Azure DevOps TFVC

azure - Azure WAF 中的自定义 IP 范围

c# - 正确使用 Async/Await

C# 通过 http 传输序列化 Protobuf 数据的最佳方式

javascript - 从 ASP 传输数据 :NET MVC Controller to view

powershell - Windows Azure 中的 'the current update to this deployment has been preempted' 错误意味着什么?

c# - postman C# 代码片段在 postman 上工作而不是在应用程序中