Azure 刷新时的两种不同视图
不确定要搜索或查找哪些术语,但我有一个托管在 Azure 上的网站。每次刷新时我都会得到不同的值/视图。
可以从这个开始。
然后我刷新。我得到这个
然后,如果我从 Visual Studio 启动服务,连接到 azure 数据库。我明白了。正常视图看起来像
知道可能是什么问题吗?
Not sure what terms to search or look for but I have a website that is hosted on Azure. Everytime i Refresh i get different values/Views out.
Might Start with this.
Then i refresh. I get this
Then if i Start the service from visual studio, connecting to the azure database. I get. The normal view which looks like
Any Idea what could be the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在不了解有关您的应用程序的更多信息,也没有看到其中任何代码的情况下,我将进行大胆猜测并假设您正在显示来自 ASP.NET 应用程序的屏幕截图,并且您正在运行多个实例您的网络角色。
如果情况确实如此,您可能会遇到每个 Web 角色实例都使用进程内会话状态的情况,这意味着每个实例上都有不同的会话状态。 Windows Azure 中没有用于会话状态的状态服务器。
如果是这种情况,请查看 AppFabric Cache,它本质上是缓存即服务。缓存团队还构建了一个位于 AppFabric 缓存之上的 asp.net 会话状态提供程序,并在所有实例中提供一致的会话缓存。 Windows Azure 平台培训Kit 有一个名为使用缓存服务构建 Windows Azure 应用程序的实验室 - 这将引导您完成设置和使用会话状态缓存。
Without knowing more about your application, and without seeing any code from it, I'm going to take a wild guess and assume you're showing screen shots from an asp.net application, and that you're running more than one instance of your web role.
If that's indeed the case, you might be running into the case where each web role instance is using in-proc session state, meaning you'd have different session state on each instance. There's no State Server for session state in Windows Azure.
If this is the case, then take a look at AppFabric Cache, which is essentially caching-as-a-service. The caching team also built an asp.net session state provider that sits atop the AppFabric Cache, and provides a consistent session cache across all of your instances. the Windows Azure Platform Training Kit has a lab called Building Windows Azure Applications with the Caching Service - this will walk you through setting up and using the cache for session state.