Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CRM Service not being called on page refresh [CRM SDK]

0 views
Skip to first unread message

Hsaka

unread,
Aug 27, 2010, 12:38:06 PM8/27/10
to
Hi, I have a web page created using ASP.NET MVC and the CRM SDK. The code
that is to be executed on this page is:

DataContext ctx = //...
var acc = from a in ctx.accounts
select a;

currentAccountsList = acc.ToList<account>();

When the page first loads, the CRM service is called normally and the
current accounts are displayed. (I used fiddler to check whether the service
is called). If i delete an account manually in CRM and then refresh the page,
the code is still executed, but the CRM service is not called (verified by
fiddler) and the account that was deleted is still displayed in the list.
Caching is turned off. I would like to know why the service is not being
called.

Hsaka

unread,
Sep 3, 2010, 3:27:03 PM9/3/10
to
For those having this problem, it is due to a LINQ to CRM caching issue. A
solution can be found here:
http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/3d4a2501-3d02-4f39-bae7-790db0c0e633
0 new messages