Click here to Skip to main content
11,709,120 members (64,537 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: library

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.

Posted 11-Sep-12 18:47pm
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
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.
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 580
1 Maciej Los 235
2 Peter Leow 219
3 OriginalGriff 214
4 Mika Wendelius 170
0 OriginalGriff 9,348
1 Sergey Alexandrovich Kryukov 8,727
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2015
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