missing a using directive or an assembly reference? ASP.NET WCF -


i have 3 project in 1 project 1 database layer , second 1 wcf , third 1 main site consuming these 2 projects getting error while debugging

error   203 'ciservice.ciserviceclient' not contain definition 'getinventoryprojectdetailcompleted' , no extension method 'getinventoryprojectdetailcompleted' accepting first argument of type 'ciservice.ciserviceclient' found (are missing using directive or assembly reference?) g:\design scoring\inspectionevaluation\projectdetails.aspx.cs   30  27  g:\design scoring\inspectionevaluation\ 

on following line of code,

ciservice.ciserviceclient svcclient = new ciservice.ciserviceclient();                 svcclient.getinventoryprojectdetailcompleted += new eventhandler<ciservice.getinventoryprojectdetailcompletedeventargs>(svcclient_getinventoryprojectdetailcompleted);                 svcclient.getinventoryprojectdetailasync(consultantid, projectid); 

this code main site using wcf service method "getinventoryprojectdetailcompleted" have added wcf refrence in main site on checking on net got solution add reference in web.config file shown,

<add assembly="system.data.entity, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/> 

hopes suggestion

thanks

from code:

 svcclient.getinventoryprojectdetailcompleted += new eventhandler<ciservice.getinventoryprojectdetailcompletedeventargs>(svcclient_getinventoryprojectdetailcompleted); 

it seems getinventoryprojectdetailcompleted not method event, isn't it?

may you'll find example of async call usefull:

http://www.codeproject.com/articles/91528/how-to-call-wcf-services-synchronously-and-asynchr


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -