[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/pabloperalta] May 2012 - Posts - Pablo Peralta's Blog

May 2012 - Posts

3
Comments

EntityState must be set to null, Created (for Create message) or Changed (for Update message) by pablop

Hi, When trying to update an Entity by using LINQ query provider in Dynamics CRM 201 this way:   regardingOpportunity.PriceLevelId = new EntityReference(PriceLevel.EntityLogicalName, rateCard.Id); MyXrmServiceContext.Update(regardingOpportunity);...
5
Comments

TIP: How to easily workaround “The method 'Count' is not supported” by pablop

Hi, I came across this problem when running a LINQ query through Dynamics CRM LINQ provider for getting the count of records returned by my query. My query looked like this:   var lineItems = from lineItem in MyXrmServiceContext.OpportunityProductSet...
4
Comments

"An error occurred when verifying security for the message." when executing .SaveChanges() by pablop

Hi, I have just came across this exception when trying to execute the SaveChanges () method of my ServiceContext object in CRM 2011 (on-premise).   Exception: "An unsecured or incorrectly secured fault was received from the other party. See...
3
Comments

A configuration element with the name 'MSCRM' under the 'contexts' collection does not exist. by pablop

Hi, I was developing a ConsoleApp to connect to my Dynamics CRM 2011 deployment and when tried to instantiate the ServiceContext of my Xrm model this way:   var crm = new MyXrm.MyXrmServiceContext( "MSCRM" );   I got the Exception...
More Posts