Home » Microsoft Technologies

How to stop linq to sql from caching my data?

I am totally lost with this behavior, please help...

I am using visual studio 2010 and while testing in the IDE, I noticed the data is being cached even after i ended the run, rebuild and run again.  I double checked the database and the data is updated, however the old data is still showing every time i run the app.  I tried setting objectTrakingEnabled = false but still i am seeing the old data.  I am using a stored procedure and returning a List of objects via a web service.   this is the code:

        public List<Employee> GetEmployees()
            DB.EmployeeDataContext employeeData = new DB.EmployeeDataContext();
            employeeData.ObjectTrackingEnabled = false;
            var employees = employeeData.getEmployee().ToList();
            return employees;

Any help is greatly appreciated.


9 Answers Found


Answer 1

ObjectTracking is the concept that if the object is from the database and changes it will be updated on submit changes

DataContext dc = new DataContext();
Item item = dc.GetTable<Item>().FirstOrDefault();
if(item != null
 item.Value = "New Value";
 dc.SubmitChanges(); //Updates Item

What you want is the latest version.  The only way to do that is to create a new DataContext.  DataContexts are light and disposable, so it isn't a big deal.  You can create a Singleton that notifies each thread on Submitted.  You probably would want to look into Optimistic Concurrency.

Having the data  Update auto magically update would be a management nightmare.  IE: Your iterating over a list and the list count changes.  Another issue is the speed in which the properties of the data is executed.  If everytime you accessed a property it had to go back to the database they shouldn't be properties but methods.  So, you might also want to look into member design also. The values of the properties are interally cached after their first get. Any changes to those properties will be stored, and subsequent queries will return the cached values.

If you go into the DBML and select your table's column and goto properties. There is a property called Auto-Sync. You can set that to Always. I have not used it therefore don't know what to expect.


Answer 2

Create a new datacontext or invalidate the current one to force it to update the cached info.

This is perhaps the simplest way to achieve what you want

Also you can update using the datacontext because of the object tracking (if you don't disable it), however this will work only when you need it because of the optimistic concurrency, that what the caching  is all about


PS: also please don't double post


Answer 3

Sorry for the double posting.  Dont know what happened, I thought I only posted once, but it showed up twice, thats weird!

I am a newbie so please bear with me.  I still cant wrap my head around this behavior.  Let me try to clarify, the data  is not being updated within the code.  Here are the steps:

1. I run my application (pressing F5) in visual  studio.

2. i retrieve a list of employee records by calling the web service and see wrong data.

3. i stop  the application in visual studio

4. in management studio, i updated one employee in the database manually, lets say i changed birthdate for employeeID 5 from 1/8/2000 to 7/25/2000

5. i run the application again, pulling up exactly the same records using the same web service, birthdate for employeeID 5 still shows 1/8/2000.

I should see 7/25/2000, no?


Answer 4

Did you actually commited the data  in the database? Did the program that runs the code you show was restarted?

If so then yes


Answer 5

Let me understand the architecture. You have VS2010, a web service and a database, right? Are you resetting the web service in between? It would be that which is caching  the data.

I would have thought that using a new context each time, would resolve your problem. A couple of extra thoughts; though I don't know if they really will help.

1) You don't dispose your context - you could use "using (DB.EmployeeDataContext employeeData = new DB.EmployeeDataContext();) { ... }"

2) Maybe you need to also use the Refresh method with RefreshMode.OverwriteCurrentValues




Answer 6

Yes the data  is committed, and yes the program restarted.  But still seeing the old data.  I am pulling my hair out I dont understand what is going on.

\The web service is an existing web service all i am doing is adding a new webMethod to use the linqToSQL datacontext to pull data.  Other web methods in the same web service do not have this behavior, but they are not using linqToSQL.

i understand the disposing part, but wouldnt restarting the program re-instantiate a new datacontext?  I tried looking for setting that may contribute to this behavior  but couldnt find any.  Did i miss something?

Thanks guys for trying to help, really appreciate it. 


Answer 7

Have you restarted your web service?  Are you sure your connecting to the right webserver?  Can you hit a debug point in your webserver that creates a new datacontext?

Answer 8

From the behavior  you are describing the webservice seems guilty

Try restarting the webservice to see if you get the new data

Check how the webservice is pulling the data, read this, it might help  you (specially the end part)




Answer 9

I feel like a total retard...

Apologies to all of you the data  i was pulling IS updating.  I updated the wrong field, well they have the same name but in different tables.

Anyways, again sorry, and i must say, i trully appreciate all the help!!!





I am totally lost with this behavior, please help...

I am using visual studio 2010 and while testing in the IDE, I noticed the data is being cached even after i ended the run, rebuild and run again.  I double checked the database and the data is updated, however the old data is still showing every time i run the app.  I tried setting objectTrakingEnabled = false but still i am seeing the old data.  I am using a stored procedure and returning a List of objects via a web service.   this is the code:

        public List<Employee> GetEmployees()
            DB.EmployeeDataContext employeeData = new DB.EmployeeDataContext();
            employeeData.ObjectTrackingEnabled = false;
            var employees = employeeData.getEmployee().ToList();
            return employees;

Any help is greatly appreciated.



This question relates to compiled queries in LINQ to SQL as well as general performance observations / considerations. Also, I pose a few questions regarding patterns related to entity caching.


I am looking at replacing a data tier with LINQ to SQL and would like to get the best performance from LINQ to SQL. Implementing an O/R mapper obviously relieves me from keeping the data tier synchronized with the relational structure, but I am concerned that the query performance of LINQ to SQL may degrade performance.

Currently, my data tier implements the following pattern:

Query central cache for an entity (representing an ID).Entity was not cached.Query the data store using a SqlCommand / SqlDataReader.Hydrate an entity from the SqlDataReader and add the entity to the central cache.Return entity (or null).

The performance of this pattern is great. I can query for ~1024 unique entities / second (edit: query the database, not the cache). It's the hydration part of the pattern I'm afraid of.

The above pattern is distributed across many segments in my data tier. Changes to the relational model is a pain as it's currently a manual process to synchronize the entity hydration from the SqlDataReader results.

I was hoping that LINQ to SQL could allow me to focus on other parts of the application by replacing the entities (and hydration process) with LINQ to SQL entities (having that infrastructure hydrate the entities for me automatically).

With the March 2007 CTP installed, I decided to do some performance measurements in order to determine, whether LINQ to SQL (in the current version) would seriously degrade performance. Please note that this is a simple performance test and should only be used as a guide on the performance on the final version. LINQ to SQL (and LINQ in general) is the best thing since sliced bread - I'm hoping my findings may be of some help.

The first performance test uses LINQ to SQL to query for a CmsUser entity. 

Code Snippet

Stopwatch watch = newStopwatch();


using (CmsDataContext db = newCmsDataContext())


for (int i = 0; i < 4096; i++)


CmsUser u1 = (from c in db.CmsUsers where c.UserID == Guid.NewGuid() select c).FirstOrDefault();




The second performance test uses the SqlCommand / SqlDataReader pattern to hydrate a CmsUser entity. 

Code Snippet

Stopwatch watch = newStopwatch();


using (SqlConnection connection = newSqlConnection("connection string"))


for (int i = 0; i < 4096; i++)


SqlCommand command = newSqlCommand(string.Format("SELECT * FROM CmsUsers WHERE UserID = '{0}'", Guid.NewGuid()), connection);

command.CommandType = CommandType.Text;


using (SqlDataReader reader = command.ExecuteReader())


CmsUser result = newCmsUser();

while (reader.Read())


result.UserName = (string) reader["UserName"];

// Start hydrating the entity from the reader

// .. property assignments ommitted for clarity







Please note that the performance tests were run in a loop of 64 iterations (meaning that the code should be fully optimized by the CLR).

The first test completed in ~10 seconds.The second test completed in ~2 seconds.

I was a bit surprised to see the results - although the manual entity hydration runs without overhead, I was surprised to see that the LINQ to SQL pattern was more than 5 times slower. I ran the tests several times - same result each time. SQL generated DataContext was spot on.

I'm looking for answers to the performance differences and have come up with some suggestions.

Query Compilation is not implemented (or activated). The Expression Tree is compiled to SQL for each request (even though the signature of the LINQ query is the same for repeated reads). I suspect LINQ to SQL for using SqlDataReaders under the covers for hydrating business entities (indicating that it's the Expression Tree compilation thats causing the lag).The LINQ to SQL API is compiled in debug mode or haven't been fully optimized yet.

Please provide your comments on this topic (and the tests). I'm more than happy to change the tests and provide updated results.

Entity Caching:

I currently use hand crafted entities (as demonstrated in the pattern above) that resides within a central cache. The entities are disconnected from the data store and provides core properties such as byte[] timestamps that are used during the transactional persistence process (i.e. calling SPROCs that update an entity by validating the timestamp).

When a business object is requested, the corresponding entity is requested from the cache (or hydrated from the data store) and passed as a clone to the inside data island for the business object. The business object in turn refers to the internal entity data island whenever somebody asks a property (i.e. CmsUserBusinessObject.UserName forwards the get accessor to the internal CmsUser entity).

Whenever changes are commited to the data store, the internal entities are used during the transaction. This pattern works very well and provides a very high performance.

As mentioned previously, keeping the hydration process (as well as entity definition) synchronized with the relational model is a real pain. I am looking at replacing my handcrafted entities with LINQ to SQL entities.

Because the creation of I was thinking about keeping a static DataContext inside the data tier and re-use my current caching pattern.

Is it recommended practice to keep a reference to the DataContext in a central static class (i.e. a data manager)?If "no" - what is the recommended practice for caching entities?If "yes" - considering that retrieving cached entities within the DataContext is quite slow (because the Expression Tree evaluation is slow), should the developer go with a custom lookup table or simply wait for the enabling of compiled queries (or better performance)?Are there any drawbacks at using the LINQ to SQL generated entities as data islands within business objects (provided entities are cloned in order to prevent dangling references to the central DataContext)?

Thanks for reading this far. I've been wondering about these questions for some days now and finally decided to voice them in the central LINQ forum. Hopefully somebody can provide some feedback.

Thanks in advance

Anders Borum / SphereWorks


It's been a while since I've used LINQ to SQL. I'm sure somebody will be able to answer this.

"In LINQ to SQL, the DataContext manages object identity. Whenever you retrieve a new row from the database, the row is logged in an identity table by its primary key, and a new object is created. Whenever you retrieve that same row, the original object instance is handed back to the application. In this manner the DataContext translates the concept of identity as seen by the database (that is, primary keys) into the concept of identity seen by the language (that is, instances). The application only sees the object in the state that it was first retrieved. The new data, if different, is discarded. For more information, see Retrieving Objects from the Identity Cache (LINQ to SQL)."

If this is the case, why does the following code result in 3 queries being executed on the database? Will it merge any changes into the cached objects?

var cxString = @"Data Source=...";
var trace = new ConsoleTraceListener();
using (var data = new MyDataContext(cxString) { Log = trace.Writer })



I am trying without success to transfer records from a simple SQL 2005 data table to a SQL Compact datatable.

I have a LINQ query which holds all the records of a SQL 2005 DB.

The following SQLRecords holds the SQL 2005 records

Dim SQLRecords = From sqlr In db1.Stocks


I have a datacontext for the Compact DB called "DB"

I have been trying to code the "Insertallonsubmit", not sure how to do this.

Please can someone provide a simple example on how I can add the records contained in SQLRecords to the Compact database using LINQ








hello friends,

Hey guys i am working on n level product Catelog, I retriving my record at client end by complicated SQL Queries in stored procedure.

for better performance of the Application, i want to implement data caching and view states.

No my problem is that, how would i use the data caching, thugh i have the N level categories for the product and the categories ourselves treated as seprate product.

Any further suggestion would be appriciable.

Thanks and Regards

Inderjeet Singh Khalsa


Forgive me if this had already been answered elsewhere,  just point me in the right direction.

I have an existing client server application that populates a hierarchcial grid with sometimes several thousand records, each having potentially 40+ columns.  Since the backend database is fairly well normalized,  I would like to reduce the the data movement by passing only the FK's of lookup data with the grid data, and rely on a local cache connected to a dataset to provide the actual read only lookup values.   Because the navigation and drill down capability,  it would also be beneficial to have the lookup data available in the entity model without actually duplicating the data in memory.

I am new to EF,  but think the answer may be in attaching the lookup tables from the local cache database or populated Dataset, and maintaining a long running context.   The way I see it though,  this will essentially duplicate the items in memory.  Both in the EF and Dataset.





I have a WCF-SQL adapter which polls database every couple of seconds. "PollWhileDataFound" property set to "True" because I have a requirement to process 200 messages per minute and min polling interval 1 second obviously not enough for me. Without a small pressure server seems to works fine but when I try to test it with large amount of messages server works just a first few minutes. There are no suspended instances, no error event logs, adapter still enabled, BizTalk instance still running - just nothing happens with a messages in Database, they're not get polled.


Do you have any thoughts why adapter stuck?


UPD: I've noticed that few messages get processed but very very slow. Initially polling speed was around few hundreds messages per minutes but after few minutes it's just 2-3 messages per minute.


Immediately after doing Start-CacheCluster, my cache service has already stopped. My application log shows the following pairs of errors:


Application: DistributedCacheService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Fabric.Common.ReleaseAssertException
   at Microsoft.Fabric.Common.IOCompletionPortWorkQueue.Invoke(System.Threading.WaitCallback, System.Object)
   at Microsoft.Fabric.Common.IOCompletionPortWorkQueue.WorkerThreadStart()
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()


Faulting application name: DistributedCacheService.exe, version: 1.0.2912.0, time stamp: 0x4bea6d7b
Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdfe0
Exception code: 0xe0434352
Fault offset: 0x000000000000aa7d
Faulting process id: 0x2aa4
Faulting application start time: 0x01cb0808ce054c15
Faulting application path: C:\Windows\System32\AppFabric\DistributedCacheService.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 13c5102f-73fc-11df-90f5-463500000031

I think everything is configured correctly. Any ideas?



I use in my project a WCF Data Service with Linq To SQL. There are to tables UserGroups and Users, when I insert a User and set a usergroup as a foreing key, in the SaveChanges() show this exception: "An error occurred while processing this request".

I set the foreing key through the Users' association "UserGroups". I tried to set just the UserGroupID(FK) in the table Users and work, But there are some way to set FK through the association, because when i not used a WCF Data Service this way works, and i used the association to show the UserGroup's Name or some information about this UserGroup.


Thank you.


this is my query


var Product = from p in salon.Products


where p.Product_ID== 12

selectnew { Cost = p.Agent_Price, SellingPrice = p.EXF_Price };

i want to display Cost and SellingPrice in a textBox, TextBox1 and TextBox2

Plz Help me



I am working on a project in VS2008, Windows7, using IE8. I recently discovered the IE8 Developer Tools which are very helpful. I am currently making a lot of display changes in my css and testing my changes. Initially, the clear browser cache was clearing my css each time so I could assure that I was testing with my latest css each time. Somewhere along the way, the clear browser cache has stopped clearing my css. I found a post that suggested that I rebuild my indexes, tried this, and it worked. But rebuilding indexes on my test system takes 40 minutes.

Here's what I am doing:

1. Change my css in VS2008 and save the updated css.
2. In IE8, hit F12 to bring up the Developer Tools, then perform clear browser cache.
3. In VS2008, hit F5 to build project and test.
4. When I run the test, the display does not reflect my updated css.
5. While in the browser display which reflects older css, I hit F12 again to bring up the Developer Tools, select css, and display the currently loaded css. This css does not have my most recent changes which tells me that the clear browser cache in step #2 is not longer clearing out the old css (otherwise why does the css display in developer tools show a much older version of my css).
6. I have tried starting / stopping IIS - same problem.
7. I have tried to also use the IE8 tools to delete temporary files - same problem.

Can anyone suggest why my clear browser cache has stopped clearing CSS? The MSDN site simply says clear browser cache, but that does not work on my development system. Also, in a development environment, has anyone figured out an easy to implement method to make sure you are always testing with the most up to date css in a VS2008 environment (using debug mode - F5) as having to go through these extra steps before every test seems like such an inefficient process.

Thanks, Dan




            I have a Table, Docs that has 3 Fields: DocID, DocName, DocContent. The DocContent is rather large i.e. 10K to 20K. I am loading the Documents from a Stored Procedure and using the Visual Studio LINQ to SQL Designer  to map it to an existing DataModel Class: Doc.


            My Stored Procedure looks like:






      SELECT DocID, DocName, DocContent

      FROM Docs





As mentioned by ScottGu in his Blog at

LINQ to SQL (Part 6 - Retrieving Data Using Stored Procedures)


in Section named “Mapping the Return Type of SPROC Methods to Data Model Classes” I drag the DocsSelectAll SP into the Doc Class/Table in the LINQ to SQL Designer (ORM Designer) to automatically return instances of the Doc class with DocID, DocName, DocContent as properties. This so far works fine.


            Since DocContent is a bit large (i.e. 10K to 20K) I am wondering if there is a way to return it as an empty String. For example I attempted another Stored Procedure:







      SELECT DocID, DocName

      FROM Docs





If I attempt to drag this Stored Procedure into the Doc Class, I get “One or more selected database objects return a schema that does not match the schema of the target or data class.” This is true. This does not have the DocContent, while the Doc Class has a DocContent property. I can however drag the Stored Procedure to the Methods Pane, but this would create a new class DocsSelectAllNoContent – which I want to avoid.


            Is there anyway of solving this problem?  If my above explanation is not clear please let me know.


Thanks in advance for your help,


Hi i have a simple question i was wondering how to display the existing data in C# objects like Textbox, combobox or labels. At the moment a sql database file, one of the tables data is currently displayed in the datagridview control just fine.
But what i would like to get is each row, for example column1, column2,column3 of row1 to be displayed in textbox1,textbox2,textbox3 respectively. and then when i press the next button i would like to go the next entry which means column1, column2,column3 of row2 still in textbox1,textbox2,textbox3
This is something similar http://msdn.microsoft.com/en-us/library/aa984467%28VS.71%29.aspx to what i want to do but i am using LINQ so the article above is old and i am using LINQ and i am new to LINQ please help me out, i attached a file of my code as there is no point attaching the whole code here, and i am using the northwind database, the default Microsoft database as my default database, so it is easier for us to communicate...
thanks in advance

I've been programming asp.net for, oh, a couple of days now. Here's a question I can't even begin to figure out for myself.

I hope it's obvious from the code what I want to accomplish, and I have, but it's not pretty. Furthermore I'd like to use it on whatever table, whatever field, i.e. check the uniqueness of a value against a table and field I specify, passing it all into the attribute constructor.


publicoverrideBooleanIsValid(Object value)
//not pretty. todo: do away with this.
var db =newCoinDataContext();
int c = db.Emails.Count(e => e.Email1== value.ToString());
return(Boolean)(c ==0);


Hello. First, I don't know if this is the right forum section to post this in, but I couldn't fine a more suitable one. Feel free to move this if it's totally worng.

I have a weird problem when using LINQ to SQL and Store Procedures with a return value...

The problem is that when I drag my SP's onto the "Methods Pane" the property field "Return Type" is set to (None) and greyed out. And here's the most weird thing... I created a test SP yesterday wich returned SCOPE_IDENTITY() and it worked flawlessly. Dragged it onto the "Methods Pane", could play with the return type property (hence it was not greyed out) and everything was working out nice. I used a ISingleResult<T> and could fetch the .ReturnValue...

Today I was going to contiune to create the rest of the SP's i needed with a return type but today when I drag my Store Procedures to my Methods Pane, I couldn't access the Return Type property... I even dragged the SAME procedure I used yesterday (wich then worked great) and now I can't get the dbml-layer to notice that there is a return value...

I've tried to create new solutions, new Data Layers, used different databases/servers, but still the same problem... Don't really know if it's LINQ or something else that's causing this...

This is how part of my SP wich I used yesterday to test looks like (this worked yesterday, but not if I add it again to the DBML)


INSERT INTO SidSektion (SidID, Rubrik, Bild, [Text], SortOrder) 
VALUES (@SidID, @Rubrik, @Bild, @Text, @NewSort)

Hi guys,

I need your help.  I am having some issues updating sql table with Linq to Sql dataContext objects.  When I call SubmitChanges with modifications to the data, the simple types (int, varchar) get updated, but I also have an XML data type and this does not get updated.  Below is a sample of my code to update an existing record.


                Dim db As New EnrollmentDataClassesDataContext(True)
                Dim orderIdGuid As New Guid("9EA26E39-07F1-4C1F-B7CD-B6D323DF9D70")

                Dim orderDetailEntity As OrderDetail

                orderDetailEntity = (From checkout In db.OrderDetails Where checkout.OrderId = orderIdGuid Select checkout).SingleOrDefault

                If Not orderDetailEntity Is Nothing Then
                'update the order status
                    orderDetailEntity.OrderStatus = OrderStatus.Cancelled

                  'retrieve the MyOrderId node from the XML and update it
                    Dim MyOrderIdNode = From os In orderDetailEntity.CheckoutXML...<OrderSpecifics> _
                                    Select os.<MyOrderID>.Single

                    If Not MyOrderIdNode Is Nothing Then
                        'update the value of the node
                        MyOrderIdNode.Value = txtJDE.Text.Trim.ToString
                    End If

                End If


The Submitchanges updated just the orderDetailEntity.OrderStatus field but the XML part MyOrderIdNode did not get updated.  I am just updating one xelement in my CheckoutXML. 

Am I missing something here?  How would I update an XML field in SQL using Linq?

Any input on this is much appreciated.




my query is



my data is

HR    HR    Rec    Records    Leave    Leave Records    HRL.0001    Policy and Process for leave record.    27.06.2010    30.06.2010    WIP    Edlink
HR    HR    Rec    Records    Leave    Leave Records    HRL.0002    Quarterly Review    01.07.2010    04.07.2010    Planned    Edlink
HR    HR    DB    Database    SAL    Salary    DDS.0001    Calculation of Monthly salary    08.08.2010    09.08.2010    WIP    Edlink
HR    HR    Rec    Records    Ind    Induction Records    HRI.0001    Completion of dossiers.    08.07.2010    10.07.2010    WIP    Edlink
HR    HR    DB    Database    Emp    Employee    HDE.0001    Offer letter    06.07.2010    09.07.2010    WIP    Edlink


my outout is









Hi all!

I have a DataService that is backed by a LINQ to SQL model. In the model, I created a custom object that does not directly correlate to any tables in the database. I created this object manually in the designer. It is a aggregation of various columns across multiple tables. This schema is reused across different queries and sprocs so I thought it would be convenient to have a single type to work with across all of them. The L2S works great. I can query it all night and it always returns the proper types.

The problem that I get arises when I try to use the ADO.NET Data Service I built on top of that L2S. The data service will throw an error whenever it is requested and the custom type is present in the L2S. It happens across the board - via browser, C#, AJAX. If I remove the custom object, the service works again. The error I get from the service is:
The server encountered an error processing the request. The exception message is 'On data context type 'LogDBDataContext', there is a top IQueryable property 'FilterResults' whose element type is not an entity type. Make sure that the IQueryable property is of entity type or specify the IgnoreProperties attribute on the data context type to ignore this property.'. See server logs for more details.
where FilterResults is the custom object. All of the other discussions I have seen on this error suggest manually adding a primary key to the code. I tried that briefly but since this object isnt backed by a data source, it 1) doesnt actually have a primary key, 2) causes even more errors when the primary key is null.

Is there a solution to this that doesnt involve adding a primary key in (or, I guess, adding it in a smarter way than I attempted)?

i have problems in using linqdatasource & LINQ to SQL class please help me out how to insert, update n delete data from 3 textboxes and showing those in gridview.

thanks in advance

I have set up a cluster with 2 hosts. Both of them are running Windows 7 (this is a developer environment).

I am using SQL Server as the configuration provider. SQL Server is running on host 1.

I have set up some test websites. The dataCacheClient config is configured to use both host 1 and 2.

When I initially start up the cluster, everyone works fine. The only weird thing is that if I do a Get-CacheHost, Version Info for host 1 says "1 [1,1][1,1]" but host 2 says "0 [0,0][0,0]".

If I do a Stop-CacheHost on host 1 and leave host 2 running, caching continues to work.

However, if I leave host 1 running and do a Stop-CacheHost on host 2 instead, caching stops working. I can see the cache size getting set to 0 if I do a Get-CacheStatistics. No errors occur when I put data into the cache but if I do a get, no data is returned. The cache size remains at 0.

If I do a Start-CacheHost on host 2, caching still does not work. I have to do a Restart-CacheCluster to get the cluster to work again.

Is this normal behaviour or have I configured something incorrectly?


<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure