“the specified type is not a known entity type” error while using early bound entity classes in CRM 2013


We were writing a custom workflow activity that was using LINQ (early bound).

Here we had used ILMerge to merge the early bound assemblies with the workflow assembly.

The solution was to place the following attribute in the AssemblyInfo.cs of the workflow assembly (same goes for Plugin Assembly)

[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()]


The helpful thread


Hope it helps..



Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

One thought on ““the specified type is not a known entity type” error while using early bound entity classes in CRM 2013”

  1. Hi ,

    I am developing a Plugin Project “SamplePlugin” for CRM 2016 online.

    I have a different projects need to refer to the SamplePlugin Project.

    Also i have generated the Early bound class using CRM SVC Util and Enum Option set as well. These two files i have kept in another project called “CommonEntities”

    Now i have been trying to Merge the CommonEntities.dll with SamplePlugin.dll using IL Merge.
    When i build the project i am getting build error.

    As per your post i have added “[assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()]” in
    SamplePlugin AssemblyInfo.cs. Still i cant be able to build the project. CommonEntities project is not merging with SamplePlugin.dll.

    I am getting “exited code with 1” error in VS Studio.

    Please advice.



Please share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.