-
We have updated our client and our server to use OpenRiaServices 5. All the references where changed and the old namespaces were updated, too. But when we try to create a DomainContext we get the following exception: Der Konstruktor für den Typ "OpenRiaServices.Client.WebDomainClient`1[[BCP.Neplan.Web.Services.AuthenticationContext+IAuthenticationServiceContract, BCP.Neplan.Client.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=43b969681c6a0cdc]]" wurde nicht gefunden. We have defined on or server project the following authentication service: with the abstract class: public abstract class FormsAuthenticationService : DomainService, IAuthentication where TUser : UserBase and the UserAuth: public class UserAuth : UserBase We have a client project which is linked to the server project to generate the shared classes, services and entities. In our WPF project we are referencing this project and we are trying to create an AuthenticationContext class. From the generated code:
The exception is comming calling the following constructor: The problem seems to come from the CreateDomainClient. Is there something we are missing? With the version 4.5 of the OpenRiaServices everything worked fine. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Setting the DomainContext.DomainClientFactory to SoapDomainClientFactory or WebDomainClientFactory seems to solve the problem. |
Beta Was this translation helpful? Give feedback.
Setting the DomainContext.DomainClientFactory to SoapDomainClientFactory or WebDomainClientFactory seems to solve the problem.