c# - Could not load file or assembly 'System.Data.Linq, Version=4.0.0.0 -


the error :

could not load file or assembly 'system.data.linq, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089' or 1 of dependencies. system cannot find file specified.

i have tried many solutions find on google search , here without success.

i have tried :

<add assembly="system.data.linq, version=3.5.0.0,   culture=neutral, publickeytoken=b77a5c561934e089"/> 

but on page have error on line because linq not working :

string ns = string.join(",", (from co in colorlist select "?").tolist()); 

the .dll exists on server:

enter image description here

my web.config file

<?xml version="1.0"?> <configuration>   <system.web>     <customerrors mode="off"/>     <compilation>       <assemblies>         <add assembly="system.data.linq, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>         <add assembly="system.xml.linq, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>         <add assembly="system.core, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>         <add assembly="system.data.entity, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>       </assemblies>     </compilation>   </system.web> </configuration> 

#edit 01 enter image description here

#edit 02 enter image description here

have tried adding via add references dialog instead of manually adding dll?

you can expanding project/solution folder in visual studio, selecting references, right clickting , selecting add reference.

after that, select assemblies option in menu , search system.data.linq. select checkbox , press ok add system.data.linq project.

enter image description here


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -