New Posts New Posts RSS Feed: Simple Steps with ServerConsole
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Simple Steps with ServerConsole

 Post Reply Post Reply
Author
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Topic: Simple Steps with ServerConsole
    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">
    <logging logFile="DebugLog.xml"/>
   <objectServer remoteBaseURL="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">
    <logging logFile="DebugLog.xml"/>
   <objectServer remoteBaseURL="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
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: 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".
 
 
Back to Top
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down