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

Error on walkthru

6 Answers 98 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vann
Top achievements
Rank 1
Vann asked on 08 Apr 2011, 11:12 PM
I have downloaded and installed the ORM trial software. I am trying to do the Waklthrough: Create a RIA Services Solution.

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

Sort by
0
Vann
Top achievements
Rank 1
answered on 08 Apr 2011, 11:23 PM
Here is the log.txt from Data Services Wizard:

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)'
0
Alexander
Telerik team
answered on 12 Apr 2011, 05:20 PM
Hi Vann,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vann
Top achievements
Rank 1
answered on 12 Apr 2011, 08:01 PM
I was trying the Data Wizard to see if it worked and posted the error as I thought it might be helpful in trouble shooting. I was using the correct wizard for the walkthru.

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
0
PetarP
Telerik team
answered on 14 Apr 2011, 05:16 PM
Hi Vann,

 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.

All the best,
Petar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vann
Top achievements
Rank 1
answered on 14 Apr 2011, 07:28 PM
When using the context I get the error. When I use the Rlinq file I do not get an error but no entities show up for me to select.
0
PetarP
Telerik team
answered on 15 Apr 2011, 04:43 PM
Hi Vann,

 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.

Kind regards,
Petar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Getting Started
Asked by
Vann
Top achievements
Rank 1
Answers by
Vann
Top achievements
Rank 1
Alexander
Telerik team
PetarP
Telerik team
Share this question
or