简体   繁体   English

添加服务参考时出错

[英]Error adding service reference

So I'm trying to add a service reference in WebForms 4.5 project. 因此,我试图在WebForms 4.5项目中添加服务引用。

I keep getting a same error message: 我不断收到相同的错误消息:

The configuration for the service reference could not be added due to the following error: An error occurred creating the configuration section handler for system.ServiceModel/bindings: AssemblyResolveEvent handlers cannot return Assemblies loaded for reflexion only. 由于以下错误,无法添加服务参考的配置:在为system.ServiceModel / bindings创建配置节处理程序时发生错误:AssemblyResolveEvent处理程序无法返回仅为反射而加载的程序集。

You can test this service to add : http://beeyepoll.azurewebsites.net/apis/PollsService.asmx 您可以测试此服务以添加: http : //beeyepoll.azurewebsites.net/apis/PollsService.asmx

It works in every project, except this one :( 它适用于每个项目,但以下项目除外:(

Ended up creating separate DLL project and importing service reference there. 最终创建了单独的DLL项目,并在那里导入了服务引用。 Still don`t know why it did not work directly in the main project. 仍然不知道为什么它不能直接在主项目中工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM