Azure的缓存问题(在Azure帐户和会话web.config文件中设置一些) [英] Azure Caching issue(some setting on Azure account and web.config file for Sessions)

查看:94
本文介绍了Azure的缓存问题(在Azure帐户和会话web.config文件中设置一些)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于web.config文件问题,就是存在于MVC3云项目。

I have a problem about web.config file which is exist on MVC3 Cloud project.

正如你所知道使用云会话您需要创建在Azure帐户缓存端名称空间。而从蔚蓝得到的web.config数据的一些自定义设置,并在您的项目中复制它们。

As you know for using Sessions on Cloud you need to create name space on Azure account Caching side. And get some custom settings for web.config data from azure and copy them in your project.

到这里一切工作正常。但是,如果像这样我的web.config文件添加一些附加行。

Till here everything works fine. But if add some additional line in my web.config file like this.

 <appSettings>
    <add key="key1" value="value1" />
    <add key="key2" value="value2" />
 </appSettings>

比我的项目越来越崩溃。会议决定没有携带任何数据了。
如果我删除线再次一切工作正常。

than my project getting crash. Sessions has decided not carrying any data anymore. İf I remove that lines everything works fine again.

你有什么想法,什么是云是错的?

Do you have any idea what cloud be wrong?

这是我使用这些设置键和值对和读取cookie设置的方式。

By the way I am using these key and value pairs for set and read cookie settings.

在此先感谢....

推荐答案

让安装与Azure的会议最简单的方法是使用ASP.NET通用供应商
 使用的NuGet简单类型:

The easiest way to get setup with Azure Session is to use the ASP.NET Universal Providers using NuGet simply type:

PM>安装封装System.Web.Providers

PM> Install-Package System.Web.Providers

一旦它包括项目的youre你可以使用SQLAzure,AzureStorage表或在Azure AppFabric缓存。

Once it's include in youre project you can use SQLAzure, AzureStorage table or the Azure Appfabric caching.

您可以阅读更多关于该供应商在这里:的魔术供应商(也称通用提供商)

You can read more about the provider here: The Magic Provider (also call Universal Providers)

这篇关于Azure的缓存问题(在Azure帐户和会话web.config文件中设置一些)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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