New Posts New Posts RSS Feed: WinRT, Code First - RSMC does not work.
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

WinRT, Code First - RSMC does not work.

 Post Reply Post Reply
Author
zbig View Drop Down
Newbie
Newbie
Avatar

Joined: 13-Oct-2012
Posts: 28
Post Options Post Options   Quote zbig Quote  Post ReplyReply Direct Link To This Post Topic: WinRT, Code First - RSMC does not work.
    Posted: 27-Aug-2013 at 11:11am
Hi,

WinRT, Code First, DevForce 2012 7.2.

Following the documentation, I am testing Remote Server Method Calls (RSMC) and this functionality does not work properly.

During executing:
" ... InvokeServerMethodAsync(...);"

the error message appears:
"Constructor on type 'AppTest.AppTestEntityManager' not found."

Please find attached a very simple solution which exemplifies the problem (libraries removed).

Thansk in advance for any help.

AppTestRsmc.zip
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 27-Aug-2013 at 3:17pm
For somewhat obscure and not well-documented reasons, the EntityServer will try to construct your sub-typed EntityManager for the RSMC call.  It will only look for a constructor with a signature accepting EM and EntityManagerContext arguments, so you can add a constructor like the following to work around the problem:
 
public AppTestEntityManager(EntityManager entityManager, EntityManagerContext entityManagerContext = null) : base(entityManager, entityManagerContext) { }
 
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down