I\'m initializing Entity Framework Object context, and this gives me the keyword not supported error:
metadata=res://*/MainDB.csdl|res://*/MainDB.ssdl|res://*/
This appears to be missing the providerName="System.Data.EntityClient" bit. Sure you got the whole thing?
providerName="System.Data.EntityClient"