vb.net - DomainContext not being generated in RIA Service for Silverlight 4 -


I've added my domain service, but when I prepare my web project, the domain context is never generated. . I'm new to RIA services and I'm trying to learn, but I'm really stuck.

This is my domain service

  Select Option Binary Options Import System Import System. Colections. Generic Import Systems Comonant MODEL Importing System ComportModel.DataNotationImport System.Clinic Importing System. Servicemodel.domainServices Hosting import system ServiceModel.Dimain Services.All Import Welfare.BL Import System.Collection.AbjectModel 'TODO: Create methods with your application logic. & Lt; EnableClientAccess () & gt; _ PublicSet Event ScheduleService Inherits DomainService Folk Function GetDesignService (GetVal ScheduleYear as Integer) as IEnumerable (Models.EventSchedule) DataServices.EventSchedulesDataService.GetEventSchedule (ScheduleYear) Back Function Closing Range    

May be models. EventSchedule, the class, which is the basis for your IEnumerable, is in a library that you refer to in a web project but can not be referred to in the client because it is not a Silverlight Library?

I think this will prevent the EventScheduleDataContext client from being generated.

The basis of a simple test will be to change the IEnumerable for the client in the web project.

Comments