Skip to content

System.Xml.XmlException, Xml_BadStartNameChar 0x3C can not start with char '<' for method name  #10

Description

@alicankablan

I get this exception when I try this :
return GlavCacheManagement.GetCache("cachekey",15, () => { var list= _repo.GetByLang(IsActiveOrAccepted.Active); return (currentLangId> 0 ? list.Where(x => x.LangId== currentLangId) : list).ToList(); });

My GlavCacheManagement class method
public static T GetCache<T>(string key, int h, Func<T> del) where T:class { if (FrSettings.Settings.IsGlavCacheActive) { return AppServices.Cache.Get<T>(key, DateTime.Now.AddMinutes(h),del); } return del.Invoke(); }

My delegate name is the problem here is the delegate info

FullName : Sport.DataAccess.Services.UserDestekHedefServices+<>c__DisplayClass9_0.<GetActiveHedefOfUser>b__0()

Name : <GetActiveHedefOfUser>b__0

Stacktrace: konum: System.Xml.XmlConvert.VerifyNCName(String name, ExceptionType exceptionType)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions