You seem to be having issues with very basic OO and .NET syntax concepts here.
Your WebMethodA is returning a void. Not an object. ∞ Andy Badera ∞ +1 518-641-1280 ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Wed, Sep 23, 2009 at 2:03 PM, BlueVista <[email protected]> wrote: > > I did this in the Class Library > public class MyWebServiceWrapper > { > private MyWebService obj = new MyWebService(); > > public MyWebServiceWrapper() > { > obj.Url = ConfigurationManager.AppSettings["MyUrl"]; > } > > public void WebMethodA() > { > obj.WebMethodA(); > } > } > > > I did this in the client (test client is winform). > > clMoneyConv obj = new clMoneyConv(); > datagridview.datasource = obj.WebMethodA(); - GETTTING THIS ERROR > "cannot implicitly convert void to object > > What to do????????????????????????????????? >
