|
|||||
|
Simple Steps with ServerConsole |
Post Reply
|
| Author | |
BillG
Groupie
Joined: Dec-05-2007 Location: United States Posts: 87 |
Post Options
Quote Reply
Topic: Simple Steps with ServerConsolePosted: Jul-28-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="Data Source=192.168.1.103:1433;Initial Catalog=SEIU99;User ID=ususer;Password=thithanh;MultipleActiveResultSets=True"" 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="Data Source=DBSERVER;Initial Catalog=SEIU99;User ID=ususer;Password=thithanh;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" /> </connectionStrings>--> </configuration> Am I missing something here?
Bill
|
|
![]() |
|
kimj
IdeaBlade Joined: May-09-2007 Posts: 654 |
Post Options
Quote Reply
Posted: Jul-28-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".
|
|
![]() |
|
BillG
Groupie
Joined: Dec-05-2007 Location: United States Posts: 87 |
Post Options
Quote Reply
Posted: Jul-28-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
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |