Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: library
Hi,
 
We have BAL library and a web service. we need to pass object to service instead of passing paramaeters. So, we have created a class library for entities and added that class .dll to BAL and web service. But we are getting error, when we are passing object from BAL to webservice.
 
The error is best overload match of method.
 

Hope I will find solution from you.

Regards,
Sravani.
Posted 11-Sep-12 18:47pm
Comments
Zoltán Zörgő at 12-Sep-12 1:20am
   
Would yo be so nice, to post some relevant code also?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

hello ,
 
in this case , you have to add the dll of BAL to your service project also..
 

first add the reference of BAL's DLL to your web service and then try to pass object of BAL to service.
  Permalink  
Comments
Member 9191375 at 12-Sep-12 1:36am
   
But we are adding reference of webservice to BAL.
Is it right adding the webservice reference to BAL?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 6,745
1 OriginalGriff 6,696
2 CPallini 5,315
3 George Jonsson 3,599
4 Gihan Liyanage 2,650


Advertise | Privacy | Mobile
Web02 | 2.8.140922.1 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100