调用使用wcf数据服务的DLL时出错 [英] getting an error when calling a dll that use wcf data services
问题描述
您好,
我有一个名为LibraryA的类库,使用.NET framework版本4.6.1构建。 此库与WCF数据服务连接。 WCF数据服务使用实体框架来处理数据库。 我有另一个类库,LibraryB引用
LibraryA来获取数据。 当我从LibraryB,LibraryA.GetPatientData(...)中调用此方法时,我收到此错误。 我在这里缺少什么想法?
I have a class library called LibraryA built with .NET framework version 4.6.1. This library connects with WCF Data Service. WCF Data Service uses entity framework to work with a database. I have another class library, LibraryB which reference LibraryA to get data. When I call for example this method from LibraryB, LibraryA.GetPatientData(...), I am getting this error. Any ideas what I am missing here?
谢谢
找不到方法: 'System.Data.Services.Client.QueryOperationResponse System.Data.Services.Client.DataServiceContext.LoadProperty(System.Object,System.String)'。
推荐答案
没关系,我得到了解决方案。 我必须执行以下操作才能使其正常工作。
Nevermind, I got the solution. I had to do the following to make it work.
从以下目录中删除所有文件:
Remove all files from the following directory:
C:\ Windows \ Microsoft.NET \ Framework \v4.0.30319 \Temporary ASP.NET Files \
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\
这篇关于调用使用wcf数据服务的DLL时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!