New Posts New Posts RSS Feed: Argument Types Do Not Match
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Argument Types Do Not Match

 Post Reply Post Reply
Author
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Topic: Argument Types Do Not Match
    Posted: 05-Nov-2013 at 11:29am
I am getting an error:

private async Task<List<WorkspaceEntity>> GetWorkspaces(String key) {
            var provider = new EntityManagerProvider<ShellEntityManager>();
            var uow = new UnitOfWork<WorkspaceEntity>(provider);
            var query = await uow.Entities.FindAsync(a=> a.ToolbarKey == key);
            return new List<WorkspaceEntity>(query);
        }

If I hard code a value for the "key" then it works fine. (It's just a simple string.)

This is the error that the BOS writes to the log:

Error System.ArgumentException: Argument types do not match at System.Linq.Expressions.Expression.Constant(Object value, Type type) at ....

This makes no sense to me. This project is using 7.1.0
Back to Top
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Posted: 05-Nov-2013 at 12:51pm
I think it has to do with versioning as I am now getting this same error regularly in other parts of the app with no changes made.

Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 06-Nov-2013 at 10:49am

Greg, if you've verified that your client and server are both using the same DevForce and Cocktail versions yet you're still seeing the error, please let us know.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down