The construtor Void .ctor(System.Guid, Int32) is not supported.
this error occured with the following statements:
var Test = from r in db.UserRoles
join p in db.UserPermissions
on new { r.userId, r.roleId} equals new { p.userId, p.roleId }
select r;
userId is a guid roleId is an integer