Print Page | Close Window

Simple Steps with ServerConsole

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2029
Printed Date: 28-Mar-2025 at 10:37am


Topic: Simple Steps with ServerConsole
Posted By: BillG
Subject: Simple Steps with ServerConsole
Date Posted: 28-Jul-2010 at 4:00pm
I can start up the EntityService in ServerConsole just find. I can see it waiting and the debuglog says that the EntityService was created.
 
I try to run my app and as soon as it tries to get the DefaultManager it crashes. Here my ServerConsole.exe.config
 
<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="ideablade.configuration" type="IdeaBlade.Core.Configuration.IdeaBladeSection, IdeaBlade.Core"/>
  </configSections>
  <ideablade.configuration version="6.00" xmlns=" http://schemas.ideablade.com/2010/IdeaBladeConfig - http://schemas.ideablade.com/2010/IdeaBladeConfig ">
    <logging logFile="DebugLog.xml"/>
   <objectServer remoteBaseURL=" http://192.168.1.101 - http://192.168.1.101 " serverPort="9009" serviceName="EntityService" >
      <clientSettings isDistributed="true" />
    </objectServer>
    <!-- Additional configuration can be added to override defaults.
         See the sample config files in the Learning Resources for more information.
    -->
   
 
  </ideablade.configuration>
  <connectionStrings>
    <add name="TicketWareEntities" connectionString="metadata=res://*/TicketWare.csdl|res://*/TicketWare.ssdl|res://*/TicketWare.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=192.168.1.103:1433;Initial Catalog=SEIU99;User ID=ususer;Password=thithanh;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>
 
</configuration>
 
and here is my app.config
 
<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="ideablade.configuration" type="IdeaBlade.Core.Configuration.IdeaBladeSection, IdeaBlade.Core"/>
  </configSections>
  <ideablade.configuration version="6.00" xmlns=" http://schemas.ideablade.com/2010/IdeaBladeConfig - http://schemas.ideablade.com/2010/IdeaBladeConfig ">
    <logging logFile="DebugLog.xml"/>
   <objectServer remoteBaseURL=" http://192.168.1.101 - http://192.168.1.101 " serverPort="9009" serviceName="EntityService.svc" >
      <clientSettings isDistributed="true" />
    </objectServer>
    <!-- Additional configuration can be added to override defaults.
         See the sample config files in the Learning Resources for more information.
    -->
   
 
  </ideablade.configuration>
  <!--<connectionStrings>
    <add name="TicketWareEntities" connectionString="metadata=res://*/TicketWare.csdl|res://*/TicketWare.ssdl|res://*/TicketWare.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=DBSERVER;Initial Catalog=SEIU99;User ID=ususer;Password=thithanh;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>-->
 
</configuration>
 
Am I missing something here?
 
Bill



Replies:
Posted By: kimj
Date Posted: 28-Jul-2010 at 6:49pm
Since you've moved the BOS out of IIS the URL of the EntityService has changed slightly.  The <objectServer> properties in the client's app.config should match those defined at the server, so it should read serviceName = "EntityService".
 
 


Posted By: BillG
Date Posted: 28-Jul-2010 at 10:19pm
It worked YEAH!!!! I connected to the EntityService and then connected to the database and I could see my query running. Now do I get the results of the async query into a datagrid
 
MemberListView.xaml  DataGrid = MembersGrid
 
MembersListView.xaml.cs this.DataContext = aMemberModel;
 
in FindMembers() of this class, I have a aModel.FetchMembers();
 
After my GoMembers() in my MemberViewModel is executed and the results are added to the members collection, how does that collection get back to the grid?
 
Bill
 



Print Page | Close Window