New Posts New Posts RSS Feed: Cannot connect to EntityService
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Cannot connect to EntityService

 Post Reply Post Reply
Author
Bert1234 View Drop Down
Newbie
Newbie


Joined: 02-Nov-2012
Posts: 4
Post Options Post Options   Quote Bert1234 Quote  Post ReplyReply Direct Link To This Post Topic: Cannot connect to EntityService
    Posted: 02-Nov-2012 at 6:31am

Hello,

I am trying to get the WPF Console demo application http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-wpf-console running in Visual Studio but ran out of luck.

When the client configuration includes isDistributed=”false” everything works as expected. When I set it to true, nothing is happening. I also cannot connect to the service using internet explorer. Neither there is any message logged to the logfile. The logfile is not even created.

In another WPF test application exactly the same happens. There I see a timeout exception which is thrown in the constructor of the EntityManager. This happens after about one minute.

I am using DevForce 2010 6.1.8.1 on a Windows7 64bit development station.

Any help would be highly appreciated.

Kind Regards,

Bert

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: 02-Nov-2012 at 8:22am
The WpfConsoleWeb project needs to be started to host the EntityService.  Right click on the project in the Solution Explorer and in the Properties window check that "Always Start When Debugging" is true.  Now when you hit F5 you should see the ASP.NET Development Web Server start up, along with the console application.
Back to Top
Bert1234 View Drop Down
Newbie
Newbie


Joined: 02-Nov-2012
Posts: 4
Post Options Post Options   Quote Bert1234 Quote  Post ReplyReply Direct Link To This Post Posted: 02-Nov-2012 at 8:42am
Hello,

that is not the problem, the dev server is started and running  and the Windows Firewall is turned off.
The only thing that i changed in the downloaded application is setting isDistributed="true". 
I do not think that the problem is related to the DevForce software, i guess that it has something to do with my development system. But what is going wrong here? 

Kind Regards,
Bert
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: 02-Nov-2012 at 8:53am
When the development server is running, you can right click its icon on the task bar and select "Open in Web Browser" from the context menu.  From that, if you navigate to http://localhost:9009/EntityService.svc what happens? 
Back to Top
Bert1234 View Drop Down
Newbie
Newbie


Joined: 02-Nov-2012
Posts: 4
Post Options Post Options   Quote Bert1234 Quote  Post ReplyReply Direct Link To This Post Posted: 02-Nov-2012 at 8:59am
Nothing, after a while the browser reports that the page cannot be opened.
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: 02-Nov-2012 at 9:37am
We haven't seen this before, and you're right that it probably has something to do with your development system.
 
One thing to look at - if you start a new project and choose WCF, do you see the WCF project templates (these are not DevForce templates, they're standard VS templates):
 
Back to Top
Bert1234 View Drop Down
Newbie
Newbie


Joined: 02-Nov-2012
Posts: 4
Post Options Post Options   Quote Bert1234 Quote  Post ReplyReply Direct Link To This Post Posted: 02-Nov-2012 at 10:55am
Hello,

yes, I can see and select one of the standard Visual Studio WCF templates.

Kind Regards,
Bert 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down