silverlight - Using Lightswitch with my own Domain object : missing reference -
silverlight - Using Lightswitch with my own Domain object : missing reference -
i'm working on asp.net application. have domain assembly (containing command , queries code), domain.contract assembly ( containing domain objets), repository (called domain) , web site.
for specific backoffice needs, want create lightswitch application. want utilize current domain datasource. added wcf ria service class library, , in riaservice.web project, added class based on domainservice, 1 query method. nil more (no entities, since in domain.contract assembly)
using help here (thanks michael w), able add together datasource, , domain object recognized entity in lite switch.
but, have compile error : 'the type or namespace name 'mydomain' not found in global namespace (are missing assembly reference?)' in project servergenerated.
the specific error on line : global::domain.contract.myobject result = new global::domain.contract.myobject(); on of domain objects (created in domain.contract assembly).
so, seems thing need add together reference domain.contract servergenerated project.
but not appear in visual studio. adding reference server project not prepare error.
thanks.
in solution explorer windows, select servergenerated assembly , click on "show files" button. show hidden folders - including generated client code wcf ria.
if there's no generated code means there's either wrong service implementation (typically you'd compilation error) or there's else wrong service - missing [enableclientaccess] attribute (i know fact service without attribute not generate client code).
other things check include server-side ria assembly in host project + have right configuration wcf ria in .config file (ask google).
silverlight silverlight-4.0 reference visual-studio-lightswitch
Comments
Post a Comment