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:
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>
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.
Comments
Post a Comment