Print Page | Close Window

Argument Types Do Not Match

Printed From: IdeaBlade
Category: Cocktail
Forum Name: Community Forum
Forum Discription: A professional application framework using Caliburn.Micro and DevForce
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4590
Printed Date: 25-Apr-2024 at 7:31am


Topic: Argument Types Do Not Match
Posted By: gregweb
Subject: Argument Types Do Not Match
Date 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



Replies:
Posted By: gregweb
Date 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.



Posted By: kimj
Date 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.




Print Page | Close Window