This is a migrated thread and some comments may be shown as answers.

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

2 Answers 434 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pooran
Top achievements
Rank 1
Pooran asked on 22 Apr 2010, 06:21 AM
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 Answers, 1 is accepted

Sort by
0
Sebastian Talamoni
Top achievements
Rank 1
answered on 22 Apr 2010, 01:22 PM
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

0
Joe
Top achievements
Rank 2
answered on 22 Apr 2010, 06:12 PM
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
Tags
General Discussions
Asked by
Pooran
Top achievements
Rank 1
Answers by
Sebastian Talamoni
Top achievements
Rank 1
Joe
Top achievements
Rank 2
Share this question
or