I chased this bug for a while - more and more frustrated... This was what happened: I updated a WCF Service Reference and got this error (or actually warning) in the Error List of Visual Studio. Also I saw that the Reference.vb was totally empty.
OK - after some trying of my own (why do I do that over and over? Don't think - steal from others...) I though of searching the Net and of course found the answer in five seconds.
Here is a guy that solved it - but the header and description of the post is quite different so I'll try to give my own explanation here.
In the Configure Service Reference... dialog box there is an option "Reuse types in referenced assemblies". Exactly what that means is hard to grasp (just try for yourselves) - but I understand it as the tool tries to download the assemblies that the service is referencing.
The solution, however, don't have much to do with understanding that (if you don't want to) - simply clear that box and regenerate. It works!

9 comments:
Thank you, you are the man! This was driving me crazy! Such a simple fix too lol
At your service. My good! I was going crazy with this, I remember
Thanks a lot. It made me crazy as well.
Markus, you are my hero. I was this close to chuck my laptop out of the window!
Yours,
Britney
Awesome! I feel like I owe you lunch or something. Thanks!
You saved me hours!
Gogglade på "Custom tool warning: Cannot import wsdl:portType" från min warninglist i Visual Studio och fick din sida som första träff! Kul!!
Ännu roligare att det löste vårt problem!!
SUPER!!!!
Good, god. This fixed it. Had this bug bug in every instance of the bing maps services, this fixed all four. Thank you so much!!!!!!
Thanks Marcus.This really brought an end to a hard day.
Post a Comment