将.dll添加到类库并服务 [英] adding .dll to a class library and to service

查看:77
本文介绍了将.dll添加到类库并服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们有BAL库和Web服务.我们需要将对象传递给服务,而不是传递参数.因此,我们为实体创建了一个类库,并将该类.dll添加到BAL和Web服务中.但是,当我们将对象从BAL传递到Web服务时,会遇到错误.

错误是方法的最佳重载匹配.


希望我能找到您的解决方案.

问候,
Sravani.

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.

推荐答案

你好,

在这种情况下,还必须将BAL的dll添加到服务项目中.

首先将BAL的DLL引用添加到您的Web服务中,然后尝试将BAL的对象传递给服务.
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.


这篇关于将.dll添加到类库并服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆