Executive Dashboard Using Local Webservice and DB with Entity Framework 6

2 posts, 1 answers
  1. Dan
    Dan avatar
    1 posts
    Member since:
    Jul 2012

    Posted 20 Jan 2015 Link to this post

    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?
  2. Answer
    Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 23 Jan 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top