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

Error when using DSW

1 Answer 87 Views
Web Services
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gonzalo
Top achievements
Rank 2
Gonzalo asked on 29 Jul 2011, 09:09 PM
Greetings,
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,

Gonzalo

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=1.0.0.0, 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()'

1 Answer, 1 is accepted

Sort by
0
Gonzalo
Top achievements
Rank 2
answered on 01 Aug 2011, 09:37 PM
Update

I had a conflict with VS Command 2010. All is great now :-)
Tags
Web Services
Asked by
Gonzalo
Top achievements
Rank 2
Answers by
Gonzalo
Top achievements
Rank 2
Share this question
or