c# - Retrieving return value from WCF application -


i trying select id of last row of data entered quote table , display of information related id in wpf application's datagrid.

here coding in wcf application hope id:

public quote getlastquote() {     using (truckdb db = new truckdb())     {         var quote = (from qdata in db.quotes                      orderby qdata.id descending                      select qdata).first();         return quote;     } } 

now after id wan't wpf application handle id's information , display in datagrid. here coding in wpf application:

private async void wlistofbills_loaded(object sender, routedeventargs e) {     using (truckserviceclient client = new truckserviceclient())     {         var quotelast = await client.getlastquoteasync(); // --> error         var bills = await client.getlistofbillsasync(quotelast.id);          dgfloor.itemssource = bills.select(x => new listofbillsview         {             code = x.stockcode,             group = x.groupname,             ...             section = x.section         }).tolist();     } } 

my application builds fine until access datagrid , wpf application crashes following error:

additional information: error occurred while receiving http response http://localhost:xxxxxx/xxx.svc. due service endpoint binding not using http protocol. due http request context being aborted server (possibly due service shutting down). see server logs more details.

i data binded columns of datagrid listofbillsview class, can't seem past error received above.

this datagrid's xaml binding:

        <datagridtextcolumn binding="{binding code}" header="code" minwidth="100" maxwidth="120" isreadonly="true"/>         <datagridtextcolumn binding="{binding group}" header="group" minwidth="200" maxwidth="360" isreadonly="true"/>         ...         <datagridtextcolumn binding="{binding section}" header="setion" minwidth="120" maxwidth="120" isreadonly="true"/> 

sorry coding, want give information possible. :) advice or appreciated.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -