.net - accessing a webservice through class library in .net3.5 vs2008 -
i had webservice directly accessing webform. used service reference in wesite , used serviceclient on webform worked fine.
now removed service reference website , created class library hich consumes webservice same way usinfg service reference , service client in class.
when try use class library gives me error no default endpoint found contract. had changed namespace of class library , changed in settings , assembly files. dll still has old name :( i've added reference of class library in website.
where going wrong.
if put wcf service reference class library, app.config binding information created in class library. unfortunately when reference library, config information isn't loaded.
you need copy portion of app.config in class library main application's config area. make available when service called.
Comments
Post a Comment