Windows Server AppFabric Caching

I'm currently working on a ASP.NET MVC site where we have to run in partial trust. Now I'm facing a problem with connecting to AppFabric when in High Trust. No problems when running in full trust. What Permission do I need in my web_hightrust.config file.

The method failing looks like this:

    [PermissionSet(SecurityAction.Assert, Unrestricted = true)]
    private static DataCacheFactory InitializeFactory()
            DataCacheFactoryConfiguration configuration = GetDataCacheFactoryConfiguration();

            Logger.Debug("Initializing a DataCacheFactory");
            DataCacheFactory factory = new DataCacheFactory(configuration);

            return factory;

        catch (Exception ex)
            Logger.ErrorFormat("Construction of factory failed: {0}", ex.ToString());

As you can see I have annotated the method with what I think should be enough to make the connection, but it fails.

Any ideas appreciated.


The answer is:

AppFabric is using WCF with net.tcp which requires full trust.

I have been communicating with a principal development lead in the AppFabric Cache, and he told me that this is something that they will look into as part of a future release.

So as for now, please consider if AppFabric Caching can be utilized in your environment considering the security demands you have.


Need Your Help

Multibyte trim in PHP?

php regex unicode multibyte mbstring

Apparently there's no mb_trim in the mb_* family, so I'm trying to implement one for my own.

Should I include .sass-cache with the repo when versioning a web project?

git caching sass gitignore repository

When creating a new project or upgrading an older one, should I conclude the .sass-cache directory in the repo? Since that is always changing and depends on the preprocessor to run wouldn't it be e...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.