Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8125647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:53:10+00:00 2026-06-06T06:53:10+00:00

Trying to create a new Dedicated Cache Role in Windows Azure but get the

  • 0

Trying to create a new Dedicated Cache Role in Windows Azure but get the NotSupportedException: This operation is not supported by the cache exception every time I run this code. As a summary, here is what I’ve done…

I construct the cache using the following code, and the exception occures as soon as I call GetCache(string):

_dataCacheFactory = new DataCacheFactory();
_cache = _dataCacheFactory.GetCache(cacheName);

Additionally, I’ve added the appropriate <dataCacheClients> configuration section and references to the following assemblies (All reference the assemblies in Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-06\ref):

  • Microsoft.ApplicationServer.Caching.AzureClientHelper
  • Microsoft.ApplicationServer.Caching.AzureCommon
  • Microsoft.ApplicationServer.Caching.Client
  • Microsoft.ApplicationServer.Caching.Core
  • Microsoft.Web.DistributedCache

I have also setup the Cache Worker Role in the Azure project.

As far as I can tell I’ve followed all the MSDN documentation, can anyone suggest what may be wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:53:12+00:00Added an answer on June 6, 2026 at 6:53 am

    I’m guessing you’re trying to get a named cache, which is not supported in Azure Shared Caching. Instead of _dataCacheFactory.GetCache(cacheName), try using _dataCacheFactory.GetDefaultCache().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to create a new Windows Azure Project in Visual Studio 2010, I
Im trying to create new file on D: drive with c/c++ I found this
I am now trying to create new database manager under Fragment class. But unfortunately,
I'm trying create a new file with a Java Applet, but I don't know
Hi I am trying to create new workitems via the TFS API and this
I've been trying to create new local user accounts on windows 7 machine. I
I am trying create a new css for shaping my detailsview. But i couldn't
I'm trying to create new application using BLToolkit but i can't compile the code,
When TestPage.php is run in browser, 'trying to create new obj...' is echo'd, but
I am trying to create new Event objects to be persisted in the database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.