I get to create a domain service step and in the OpenAccess RIA Wizard when I select the SofiaCarRentalDbContext from the dropdown I get a dialog error: Object reference not set to an instance of an object.....
Any ideas? I do have the Sales Dashboard project running in this same environment.
tks,
vhb
6 Answers, 1 is accepted
CustomerDALPicker - 4/8/2011 3:18:57 PM: Exception Message: 'Object reference not set to an instance of an object.', Type: 'Telerik.OpenAccess.OpenAccessException', Source: 'Telerik.OpenAccess.Runtime', StackTrace: ' at Telerik.OpenAccess.RT.ExceptionWrapper.Throw()
at Telerik.OpenAccess.RT.Helper.getPersistenceManagerFactory(PropertySet props)
at Telerik.OpenAccess.RT.DatabaseAdapter.AssertPersistenceManagerFactory(String usr, String password, Boolean open)
at Telerik.OpenAccess.RT.DatabaseAdapter.Telerik.OpenAccess.SPI.IDatabaseAdapter.GetMetaData()
at Telerik.OpenAccess.OpenAccessContextBase.get_Metadata()
at Telerik.OpenAccess.DSW.Core.Discoverer.DomainModel.DomainModelDiscoverer.GetMetadataContainer()
at Telerik.OpenAccess.DSW.Core.Discoverer.DiscovererBase.GetEntities()
at Telerik.OpenAccess.DSW.Core.DALDependency.ConcreteDal.ExtractEntities(IDomainModel domainModel)
at Telerik.OpenAccess.DSW.Presenter.Presenters.CustomerDALPickerPresenter.ValidateInputs(Action dalFilePathNotFoundAction, Action objectContextNotFoundAction, Action`1 modelChooserInitializationAction, Action`1 dataServicePickerInitializationAction, Action`1 exceptionHandling)'
Exception Message: 'Object reference not set to an instance of an object.', Type: 'System.NullReferenceException', Source: 'Telerik.OpenAccess.Runtime', StackTrace: ' at OpenAccessRuntime.Relational.RelationalStorageManagerFactory.CheckLicense()
at OpenAccessRuntime.storagemanager.logging.LoggingStorageManagerFactory.CheckLicense()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryBase.CheckLicense()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.CheckLicense()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.init()
at OpenAccessRuntime.DataObjects.BootstrapPMF.getPersistenceManagerFactory(PropertySet props)
at Telerik.OpenAccess.RT.Helper.getPersistenceManagerFactory(PropertySet props)'
Are you sure that you are using the correct wizard? The exception seems to be thrown from the Data Services Wizard, which is not the one used in the walkthrough. Please note that, as described in the Creating a Domain Service section of the article, you need to invoke the OpenAccess RIA Wizard from the Add New Item entry in the project's context menu. Then select the Telerik OpenAccess Domain Service item template at the end of the list and click Add.
Please let us know if this is not the case and the exception is indeed thrown by the OpenAccess RIA Wizard, we would need to investigate this further.
All the best,
Alexander
the Telerik team
I have uninstalled the trial and reinstalled the free version and am getting the same error. I have posted that in the proper forum.
tks,
vhb
Which approach are you using for generating your domain service? Are you generating from an rlinq file or are you generating from a context? Basically generating from an rlinq file would mean that your rlinq file will be read and the metadata will be obtained from there. If on the other hand you are using a context then reflection will be used to obtain the metadata.
Please share with us which approach is causing the null reference exception and perhaps use the other one for a temporary workaround.
Petar
the Telerik team
Is it possible that you have inheritance defined in your model? We used to have some problems in models that had inheritance defined and those problems caused the wizard not to show any entities. Can you never the less execute the wizard as it will generated you the basics that are required in order to use our implementation of the RIA services. After that you can manually create some end points for your classes.
We have completely rewritten the RIA wizard and it should be part of our next service pack. With the new and improved wizard those problems will not be present.
I am sorry for any inconvenience this might be causing you.
Petar
the Telerik team