Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alicankablan opened this issue Apr 21, 2019 · 1 comment
Labels

Comments

@alicankablan
Copy link

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)

@glav
Copy link
Owner

glav commented May 21, 2020

Thanks for reporting and apoligies for the delay. Feel free to open a PR for this.

@glav glav added the bug label May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants