0

I'm trying to add new web reference in my project. When I enter url in window below it shows web service description (all methods with descrption). But in the right panel there is message "Operation is not valid due to the current state of the object" and I can't add my web-service. I tried to add some other services and program has added them. So it seems like I have a problem with wsdl. What should be in wsdl for Visual Studio?

Also I tested this web-service in soapUI and everything works fine.

Nimo
  • 3
  • 3

2 Answers2

0

Try this solution, add the following to your web.config

<appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="2000" />
 </appSettings>
robasta
  • 4,621
  • 5
  • 35
  • 53
  • I have a Console Application. Where this web.config is? I've found the same problem discussion [here](http://forums.asp.net/t/1331361.aspx/1) But I don't understand why then I see web-service description with methods? – Nimo Jan 16 '13 at 07:42
  • Oops.. my bad. I should add web-service URL to the safe list for my proxy. The solution is [in this question](http://stackoverflow.com/questions/42984/how-do-you-add-a-web-reference-through-a-proxy-firewall). Sorry ) – Nimo Jan 16 '13 at 07:56
0

I had similar issue however I came to know that the company proxy was not allowing to connect to external web-service.

Suzane
  • 193
  • 1
  • 3
  • 13