Что делает эту среднюю ошибку WCF: “Инструмент пользователя, предупреждающий: не Может импортировать wsdl:portType”

При использовании константы строго Вы были бы удивлены, как немного реальных переменных там находятся в большинстве функций. Часто не больше, чем счетчик цикла. Если Ваш код достигает той точки, Вы получаете теплое чувство внутри... проверка компиляцией..., область функционального программирования является соседней..., можно почти коснуться его теперь...

83
задан stiank81 9 December 2009 в 10:05
поделиться

2 ответа

When you add a service reference, there are two ways the types that are used by the service can be handled:

  • The types are stored in a dll, and that dll is referenced from both the client and the server application.
  • The types are not in a dll referenced by the client. In that case the tool that creates the service reference, will create the types in the references.cs file.

There are many things that can go wrong. We have found that if the tool crashes, it is sometimes faster to delete the service reference and start again.

We have stopped using service reference. For projects where we have control of the client and the service, we use the method described in this screencast.

36
ответ дан 24 November 2019 в 08:45
поделиться

Перейдите в Дополнительные свойства при добавлении ссылки и удалите "System.Window.Browser" из контрольного списка. Это решает проблему.

8
ответ дан 24 November 2019 в 08:45
поделиться
Другие вопросы по тегам:

Похожие вопросы: