This is a migrated thread and some comments may be shown as answers.

Executive Dashboard Using Local Webservice and DB with Entity Framework 6

1 Answer 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 20 Jan 2015, 05:18 PM
I am trying to setup the Executive Dashboard to run on a local machine as a starting point so I can move into developing it to work with our own DB. I've changed the app.config to look at the localhost/webservice (e.g. http://localhost:3931/AWDWDataService.svc/) and changed the web.config to point to a local Adventureworks labs DB.

I updated the model from the local database which required an upgrade to Entity Frame Work 6, but now it's giving the error:

The type 'ExecutiveDashboard.Web.AdventureWorksDWAZ2008R2XLabsEntities' cannot be used as type parameter 'TContext' in the generic type or method 'System.ServiceModel.DomainServices.EntityFramework.LinqToEntitiesDomainService<TContext>'. There is no implicit reference conversion from 'ExecutiveDashboard.Web.AdventureWorksDWAZ2008R2XLabsEntities' to 'System.Data.Objects.ObjectContext'

Has anyone got an idea of how to fix this or managed to get it running locally?

1 Answer, 1 is accepted

Sort by
0
Accepted
Peshito
Telerik team
answered on 23 Jan 2015, 01:53 PM
Hi Dan,

Could you try deleting the AWDWDomainService.svc from the Service References, clean, rebuild, and then readding it again.

Hope that helps.

Regards,
Peshito
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Dan
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or