Page 1 of 1

LINQ Insight error on query execution

Posted: Tue 11 Dec 2012 11:51
by stephen.Cognito
Hi,

We're evaluating LINQ Insight and are getting the following error when trying to execute a query through Insight.

[] Strong-name signed assemblies must specify a public key in their InternalsVisibleTo declarations.

Our connection string as set within Insight is as follows...

metadata=res://*/Model.CSLModelUndeb.csdl|res://*/Model.CSLModelUndeb.ssdl|res://*/Model.CSLModelUndeb.msl;provider=Devart.Data.PostgreSql;provider connection string="Host=127.0.0.1;Database=MyDatabase;Schema=public"

The query we are running is as follows...
using (var entity = new MyEntities(ConnectionString))
{
var query = from search in entity.TblSearchHistory
where search.TblUser.OIDUser == oidUser && search.ObjectType == objectType
orderby search.StampSearch descending
select new
{
OID = search.OIDObject,
search.Reference,
search.Description
};
}


Any ideas?
Many thanks in advance

Stephen

Re: LINQ Insight error on query execution

Posted: Wed 12 Dec 2012 11:22
by MariiaI
Please try to sign all of the assemblies in your solution (open Project Properties -> the Signing tab -> specify the *.snk file), rebuild your project and run the query again.
If it doesn't help, please send us a sample project, with which this error could be reproduced.