entity framework - Invalid assembly error when calling WCF service with EF -
i have written simple wcf service using entity framework 4.1. in references have entityframework.dll 4.1.0.0 , system.data.entity 4.0.0.0. have copy local set true on both. when publish service both of mentioned dll's in bin folder when call service following error:
the given assembly name or codebase, 'c:\windows\microsoft.net\assembly\gac_msil\system.data.entity\v4.0_4.0.0.0__b77a5c561934e089\system.data.entity.dll', invalid.
system.data.entity.dll not bin deployable. if have .net framework 4 installed on target machine should have assembly. should in gac. when loading assemblies clr first looks in gac , ignores whatever have in bin directory. if don't have .net framework 4 on target machine program not work - system.data.entity.dll part of .net framework , depends on .net framework (in case .net framework 4). try removing , readding reference system.data.entity.dll clear changes made in project copy , deploy program target machine.
Comments
Post a Comment