Posted on: 9/23/2015 7:52:26 PM | Views : 769

Hi, 
i have this entity framework code snippet that work perfectly in local
CONNECTIONS_STATS cs = new CONNECTIONS_STATS(); cs.CS_ID_USER = 5211; cs.CS_DATE = DateTime.Now; using (var dbCtx = new ModelEntities()) { dbCtx.CONNECTIONS_STATS.Add(cs); dbCtx.SaveChanges(); } but when i deploy it to my web host, i have this error at line
dbCtx.CONNECTIONS_STATS.Add(cs); CS1502: The best overloaded method match for 'System.Data.Entity.DbSet<MyAPP.CONNECTIONS_STATS>.Add(MyAPP.CONNECTIONS_STATS)' has some invalid arguments in the detailed compiler output
error CS1503: Argument 1: cannot convert from 'CONNECTIONS_STATS' to 'MyApp.CONNECTIONS_STATS' i have checked that all the classes are in the same namespace .

any idea on this please ?

Go to the complete details ...