Error when using DSW

Thread is closed for posting
2 posts, 0 answers
  1. Gonzalo
    Gonzalo avatar
    76 posts
    Member since:
    Oct 2012

    Posted 29 Jul 2011 Link to this post

    I am very interested on incorporating/Open Access in all my projects and to this end I have going over the walkthroughs. I am going over the Creating a WCF Data Services and when I used the data services wizard I get the following error after selecting the web project and clicking next. Any light you can shed is very much appreciated. I am attaching the error detailed from log.txt

    Thanks and best regards,


    CustomerDALPicker - 7/29/2011 2:43:09 PM: Exception Message: 'Can't load the model configuration, Please ensure the correct configuration for the existing model. Please review the log for more information', Type: 'Telerik.OpenAccess.DSW.Core.CustomExceptions.DomainModelException', Source: 'Telerik.OpenAccess.DSW.Core', StackTrace: '   at Telerik.OpenAccess.DSW.Core.DALDependency.ConcreteDal.GetDomainModels()
       at Telerik.OpenAccess.DSW.Presenter.Presenters.CustomerDALPickerPresenter.ValidateInputs(Action dalFilePathNotFoundAction, Action objectContextNotFoundAction, Action`1 modelChooserInitializationAction, Action`1 dataServicePickerInitializationAction, Action`1 exceptionHandling)'
        Exception Message: 'Exception has been thrown by the target of an invocation.', Type: 'System.Reflection.TargetInvocationException', Source: 'mscorlib', StackTrace: '   at System.RuntimeFieldHandle.GetValue(RtFieldInfo field, Object instance, RuntimeType fieldType, RuntimeType declaringType, Boolean& domainInitialized)
       at System.Reflection.RtFieldInfo.InternalGetValue(Object obj, Boolean doVisibilityCheck, Boolean doCheckConsistency)
       at System.Reflection.RtFieldInfo.GetValue(Object obj)
       at Telerik.OpenAccess.DSW.Core.DALDependency.DomainModel.ExtractSettingFromConfig(Type domainModelType, String configFilePath)'
            Exception Message: 'The type initializer for 'OA.SL4.WcfData.Demo01.Web.SofiaCarRentalDbContext' threw an exception.', Type: 'System.TypeInitializationException', Source: '', StackTrace: ''
                Exception Message: 'Cannot find resource SofiaCarRentalDomainModel.rlinq embedded in assembly OA.SL4.WcfData.Demo01.Web, Version=, Culture=neutral, PublicKeyToken=null', Type: 'System.ArgumentException', Source: 'Telerik.OpenAccess', StackTrace: '   at Telerik.OpenAccess.Metadata.XmlMetadataSource.FromAssemblyResource(Assembly assembly, String xmlFileName)
       at Telerik.OpenAccess.Metadata.XmlMetadataSource.FromAssemblyResource(String xmlFileName)
       at OA.SL4.WcfData.Demo01.Web.SofiaCarRentalDbContext..cctor()'
  2. Gonzalo
    Gonzalo avatar
    76 posts
    Member since:
    Oct 2012

    Posted 01 Aug 2011 Link to this post


    I had a conflict with VS Command 2010. All is great now :-)
Back to Top