Dependency injection 玻璃制图器“;无法识别的Guid格式“;MapPropertiesTobject上出错

Dependency injection 玻璃制图器“;无法识别的Guid格式“;MapPropertiesTobject上出错,dependency-injection,sitecore,guid,glass-mapper,Dependency Injection,Sitecore,Guid,Glass Mapper,在我的Sitecore解决方案的某些页面上,GlassMapper出现了一个错误 public override void Execute(ObjectConstructionArgs args) { // check that no other task has created an object and that this is a dynamic object if (args.Result != null || args.Configura

在我的Sitecore解决方案的某些页面上,GlassMapper出现了一个错误

    public override void Execute(ObjectConstructionArgs args)
    {
        // check that no other task has created an object and that this is a dynamic object
        if (args.Result != null || args.Configuration.Type.IsAssignableFrom(typeof(IDynamicMetaObjectProvider))) return;

        // create instance using your container
        var obj = ServiceLocator.ServiceProvider.GetService(args.Configuration.Type);

        // map properties from item to model
        args.Configuration.MapPropertiesToObject(obj, args.Service, args.AbstractTypeCreationContext);

        // set the new object as the returned result
        args.Result = obj;
    }

错误发生在
args.Configuration.MapPropertiesTobject(obj,args.Service,args.AbstractTypeCreationContext)上-
System.FormatException:无法识别的Guid格式。
。此错误仅发生在特定模板的页面上,而不是该模板的所有页面上,我不确定如何跟踪导致guid错误的字段

当常规链接字段不包含任何
id=“{xxx}”
属性或像
id=“
一样为空时,我遇到了相同的错误。因此,我建议检查失败页面上链接字段的原始值