1
我已經創建了一個利用ADO.NET/Entity Framework的C#.NET WCF服務,我在控制檯應用程序中託管了此服務。使用ADO.NET /實體框架控制檯WCF服務主機C#/ .NET
using (var host = new ServiceHost(typeof(HyperionDataService.HyperionDataService)))
{
host.Open();
Console.WriteLine("Service Active");
Console.ReadLine();
host.Close();
}
當試圖消耗在應用這種服務,我發送到行的代碼我的WCF Service中:
public List<Extract> DumpExtracts()
{
using (var context = new HyperionSmokeEntities())
{
return context.Extracts.ToList(); //Error on this line
}
}
我收到錯誤:無法加載指定的元數據資源。
我App.Config中明確指出我的元數據資源:
我完全茫然,請大家幫忙!
This SO post should help http://stackoverflow.com/questions/689355/metadataexception-unable-to-load-the-specified-metadata-resource –