简体   繁体   中英

Error adding service reference

So I'm trying to add a service reference in WebForms 4.5 project.

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.

You can test this service to add : 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. Still don`t know why it did not work directly in the main project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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