小编use*_*109的帖子

更新服务引用后,Project不会生成

更新服务引用后,我收到以下错误构建我的项目:

不包含'DefaultResolveType'的定义

在自动生成的Reference.cs上抛出错误,但DefaultResolveType方法应该在生成的类中,因为它是从'this'关键字调用的.自上次成功构建以来,数据服务没有更改,客户端代码也没有更改.

[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]

protected global::System.Type ResolveTypeFromName(string typeName)
{
    global::System.Type resolvedType = this.DefaultResolveType(typeName, "Microsoft.Crm.Sdk.Data.Services", "ITF.DataAccessLayer.CRM.CrmAccessService");
    if ((resolvedType != null))
    {
        return resolvedType;
    }

    return null;
 }
Run Code Online (Sandbox Code Playgroud)

.net c# wcf service-reference

2
推荐指数
1
解决办法
2755
查看次数

标签 统计

.net ×1

c# ×1

service-reference ×1

wcf ×1