asp.net - Can a WebForms class be used to call a wcf (within the same .net .sln) service function? -
we have .net v4.5.1 solution (.sln) contains webforms project , wcf project. set "prove" or "test" wcf service. wcf function work takes in parameter of list(of clsrec_taskparam). have declared of datacontract , datamembers in wcf code files. 'clsrec_taskparam' complex class contains number of other complex classes. wcf wsdl reflects these complex classes expected.
this wcf service intended non-public, used background task webforms application not hang page during long-process of wcf-service.
the same class code-file (containing of these classes) contained in each project.
the problem??? question???
when call service button-click follows:
dim bret boolean = false dim osrvc = new genpdfservice.genpdfserviceclient m_lsttaskparams = ctype(session("clstask01"), list(of clsrec_taskparam)) bret = osrvc.genpdfs(m_lsttaskparams)
the compiler indicates on last code line,
error 1 value of type '1-dimensional array of clsrec_taskparam' cannot converted '1-dimensional array of genpdfservice.clsrec_taskparam' because 'clsrec_taskparam' not derived 'genpdfservice.clsrec_taskparam'.
this confuses me, since thought webform class parameter (or wcf return-object) can serialized .net .net wcf service-call.
your comments , solutions welcome...thanks.
Comments
Post a Comment