Quantcast
Channel: Dynamics 365 Customer Engagement
Viewing all articles
Browse latest Browse all 286

System.InvalidCastException: Unable to cast object of type ‘Microsoft.Xrm.Sdk.Entity’ to type

$
0
0
Hi,
 
Today suddenly all our plugins where we are using early binding thrown exception saying the below message.
 
Unable to cast object of type ‘Microsoft.Xrm.Sdk.Entity’ to type
 
After sometime, fixed the issue by adding the below line in AssemblyInfo.cs of the plugin project.
 
[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute]

Hope this helps.
 
--
Happy CRM'ing

Gopinath

Viewing all articles
Browse latest Browse all 286

Trending Articles