System.InvalidOperationException occurred
HResult=0x80131509
Message=An error occurred while loading attribute 'ServiceContractAttribute' on type 'IMyContract'. Please see InnerException for more details.
Inner Exception 1:
FileNotFoundException: Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.
Он работает с проектом Framework 4.7 с тем же пакетом Nuget System.ServiceModel.Http.4.3.0.
У меня есть проект .NET Core xUnit. Я пытаюсь вызвать из него службу WCF, но получаю следующее исключение:
[code]System.InvalidOperationException occurred HResult=0x80131509 Message=An error occurred while loading attribute 'ServiceContractAttribute' on type 'IMyContract'. Please see InnerException for more details.
Inner Exception 1: FileNotFoundException: Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified. [/code]
Он работает с проектом Framework 4.7 с тем же пакетом Nuget System.ServiceModel.Http.4.3.0.