Click here to Skip to main content
11,581,510 members (59,817 online)
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 OriginalGriff 340
1 Sergey Alexandrovich Kryukov 160
2 virusstorm 114
3 Frankie-C 105
4 RyanDev 84
0 OriginalGriff 1,273
1 Sergey Alexandrovich Kryukov 895
2 Abhinav S 597
3 F-ES Sitecore 500
4 Suvendu Shekhar Giri 433


Advertise | Privacy | Mobile
Web03 | 2.8.150603.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