我制作.net 3.5类库项目,其中包含对web servis的服务引用。并在我的.net 3.5应用程序中成功使用此xx.dll及其xx.dll.config。 但是,现在我想将它与我的.net 2.0应用程序一起使用,在我的.net 2.0应用程序的一个窗体中更精确。但我得到了这个错误: “..这个可能因为你的申请没有找到任何配置文件......” 我想我必须在我的.net 2.0应用程序中包含适当的dll.config文件。 这是我的配置文件的内容:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<customBinding>
<binding name="RzzoServicePortBinding">
<security defaultAlgorithmSuite="TripleDes" authenticationMode="UserNameOverTransport"
requireDerivedKeys="true" securityHeaderLayout="Lax" includeTimestamp="false">
<localClientSettings detectReplays="false" />
<localServiceSettings detectReplays="false" />
</security>
<textMessageEncoding messageVersion="Soap11" />
<httpsTransport />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="https://webapp2.rzzo.rs:443/rzzo/RzzoService"
binding="customBinding" bindingConfiguration="RzzoServicePortBinding"
contract="ServiceReference1.RzzoService" name="RzzoServicePort" />
</client>
</system.serviceModel>
</configuration>
我该怎么做? 提前谢谢!