Compiler Error Message: CS0012: The type 'System.Data.Linq.Binary' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Linq, Version=4.0.0.0, Culture=ne

3 posts, 0 answers
  1. Pooran
    Pooran avatar
    1 posts
    Member since:
    Jun 2009

    Posted 22 Apr 2010 Link to this post

    I have VSTS 2010 RTM and Silverlight 4 RTM.

    I just installed TeamPulse and when I try adding user, I get this error.

    Description:
    An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0012: The type 'System.Data.Linq.Binary' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

    Source Error:

    Line 27:     <% using (Html.BeginForm("Create","Home", FormMethod.Post, new { enctype="multipart/form-data" })) {%>
    Line 28:         <%= Html.Hidden("id", -1) %>
    Line 29: <% if (Model.SelectedUser != null && Model.SelectedUser.Picture != null)Line 30: {%>
    Line 31:         <%= Html.Hidden("Picture", Model.SelectedUser.Picture)%>
  2. Sebastian Talamoni
    Sebastian Talamoni avatar
    32 posts
    Member since:
    Mar 2008

    Posted 22 Apr 2010 Link to this post

    Hi,
    I got the same problem and I was able to fix it by folowing these steps


    1) Find the .net 4 assembly ( System.Data.Linq.dll )
    I took it from the gac:
    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Data.Linq\v4.0_4.0.0.0__b77a5c561934e089

    2) Copy that assembly to the UserManagment folder:
    C:\Program Files\Telerik\TeamPulse\UserManagement\bin

    3) Refresh page --> now should work.


    Sebastian

  3. Joe
    Joe avatar
    51 posts
    Member since:
    Oct 2008

    Posted 22 Apr 2010 Link to this post

    If you don't want to mess with GAC, you can do this:

    Go to <your drive letter>:\Program Files\Telerik\TeamPulse\UserManagement
    Edit the web.config and add the following line to

    <assemblies>
    <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

    That will also fix your problem.

    Joe
Back to Top