Metadata contains a reference that cannot be resolved
Убил 4 часа на поиск причин, почему мой wcf сервис не работает на виртуальной машине.
Виртуальность тут собственно не при чем. Проблема была видимо с Framework 3.5.
Сам сервис не дергался. Я решил поставить студию. В сдудии не обновлялся референс на сервис. Падал с ошибкой:
There was an error downloading 'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary2/Service1/mex'.
The request failed with the error message:
--
http://www.w3.org/2005/08/addressing/fault s:Sender a:MessageAddressingHeaderRequired No Action header was found with namespace 'http://www.w3.org/2005/08/addressing' for the given message. a:Action
--.
Metadata contains a reference that cannot be resolved: 'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary2/Service1/mex'.
Metadata contains a reference that cannot be resolved: 'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary2/Service1/mex'.
If the service is defined in the current solution, try building the solution and adding the service reference again.
Если создать новый сервис - референс подключался. Методом тыка выяснил, что падать начинает, когда в дата-классе используются типы объявленные в соседнем проджекте. Собственно об этом сообщение и говорило (Metadata contains a reference that cannot be resolved). Короче видимо это баг, который был исправлен в Service Pack 1 для VS2008. Теперь все работает.
Виртуальность тут собственно не при чем. Проблема была видимо с Framework 3.5.
Сам сервис не дергался. Я решил поставить студию. В сдудии не обновлялся референс на сервис. Падал с ошибкой:
There was an error downloading 'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary2/Service1/mex'.
The request failed with the error message:
--
--.
Metadata contains a reference that cannot be resolved: 'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary2/Service1/mex'.
Metadata contains a reference that cannot be resolved: 'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary2/Service1/mex'.
If the service is defined in the current solution, try building the solution and adding the service reference again.
Если создать новый сервис - референс подключался. Методом тыка выяснил, что падать начинает, когда в дата-классе используются типы объявленные в соседнем проджекте. Собственно об этом сообщение и говорило (Metadata contains a reference that cannot be resolved). Короче видимо это баг, который был исправлен в Service Pack 1 для VS2008. Теперь все работает.
Labels: SP1, Visual Studio