aspnetboilerplate - Asp.Net Boilerplate Startup Template - Culture Issue -
i've downloaded startup template asp.net boilerplate.
having followed instructions create , seed database.
when come run application, i'm presented following error:
server error in '/' application. culture not supported. parameter name: name vn invalid culture identifier. description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code. exception details: system.globalization.culturenotfoundexception: culture not supported. parameter name: name vn invalid culture identifier. source error: unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below. stack trace: [culturenotfoundexception: culture not supported. parameter name: name vn invalid culture identifier.] system.globalization.cultureinfo..ctor(string name, boolean useuseroverride) +192 abp.localization.<>c.<get>b__3_0(string n) +29 system.collections.concurrent.concurrentdictionary`2.getoradd(tkey key, func`2 valuefactory) +62 abp.localization.cultureinfohelper.get(string name) +144 abp.localization.multitenantlocalizationdictionaryprovider.createlocalizationdictionary(languageinfo language) +61 abp.localization.<>c__displayclass11_0.<getdictionaries>b__0(string s) +18 system.collections.concurrent.concurrentdictionary`2.getoradd(tkey key, func`2 valuefactory) +62 abp.localization.multitenantlocalizationdictionaryprovider.getdictionaries() +161 abp.localization.multitenantlocalizationdictionaryprovider.get_dictionaries() +10 abp.localization.dictionaries.dictionarybasedlocalizationsource.getstringornull(string name, cultureinfo culture, boolean trydefaults) +42 abp.localization.dictionaries.dictionarybasedlocalizationsource.getstring(string name) +38 abp.authorization.<authorizeasync>d__19.movenext() +513 system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) +92 system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) +58 abp.authorization.<checkpermissions>d__22.movenext() +255 system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) +92 system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) +58 abp.authorization.<authorizeasync>d__20.movenext() +297 system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) +92 system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) +58 nito.asyncex.<>c__displayclass15_0.<run>b__0(task t) +80 system.threading.tasks.continuationtaskfromtask.innerinvoke() +52 system.threading.tasks.task.execute() +49 system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) +92 system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) +58 nito.asyncex.asynccontext.run(func`1 action) +201 abp.authorization.authorizationhelperextensions.authorize(iauthorizationhelper authorizationhelper, methodinfo methodinfo, type type) +82 abp.web.mvc.authorization.abpmvcauthorizefilter.onauthorization(authorizationcontext filtercontext) +197 system.web.mvc.controlleractioninvoker.invokeauthorizationfilters(controllercontext controllercontext, ilist`1 filters, actiondescriptor actiondescriptor) +97 system.web.mvc.async.<>c__displayclass21.<begininvokeaction>b__19(asynccallback asynccallback, object asyncstate) +743 system.web.mvc.async.wrappedasyncresult`1.callbegindelegate(asynccallback callback, object callbackstate) +14 system.web.mvc.async.wrappedasyncresultbase`1.begin(asynccallback callback, object state, int32 timeout) +128 system.web.mvc.async.asynccontrolleractioninvoker.begininvokeaction(controllercontext controllercontext, string actionname, asynccallback callback, object state) +343 system.web.mvc.controller.<beginexecutecore>b__1c(asynccallback asynccallback, object asyncstate, executecorestate innerstate) +25 system.web.mvc.async.wrappedasyncvoid`1.callbegindelegate(asynccallback callback, object callbackstate) +30 system.web.mvc.async.wrappedasyncresultbase`1.begin(asynccallback callback, object state, int32 timeout) +128 system.web.mvc.controller.beginexecutecore(asynccallback callback, object state) +465 system.web.mvc.controller.<beginexecute>b__14(asynccallback asynccallback, object callbackstate, controller controller) +18 system.web.mvc.async.wrappedasyncvoid`1.callbegindelegate(asynccallback callback, object callbackstate) +20 system.web.mvc.async.wrappedasyncresultbase`1.begin(asynccallback callback, object state, int32 timeout) +128 system.web.mvc.controller.beginexecute(requestcontext requestcontext, asynccallback callback, object state) +374 system.web.mvc.controller.system.web.mvc.async.iasynccontroller.beginexecute(requestcontext requestcontext, asynccallback callback, object state) +16 system.web.mvc.mvchandler.<beginprocessrequest>b__4(asynccallback asynccallback, object asyncstate, processrequeststate innerstate) +52 system.web.mvc.async.wrappedasyncvoid`1.callbegindelegate(asynccallback callback, object callbackstate) +30 system.web.mvc.async.wrappedasyncresultbase`1.begin(asynccallback callback, object state, int32 timeout) +128 system.web.mvc.mvchandler.beginprocessrequest(httpcontextbase httpcontext, asynccallback callback, object state) +384 system.web.mvc.mvchandler.beginprocessrequest(httpcontext httpcontext, asynccallback callback, object state) +48 system.web.mvc.mvchandler.system.web.ihttpasynchandler.beginprocessrequest(httpcontext context, asynccallback cb, object extradata) +16 system.web.callhandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute() +103 system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) +155
as far can detect, vn
culture identifier vietnamese i'm unable determine how error generated , can ensure en
culture used i'm based in uk.
any advice received.
open defaultlanguagescreator class , change constructor method below;
static defaultlanguagescreator() { initiallanguages = new list<applicationlanguage> { new applicationlanguage(null, "en", "english", "famfamfam-flags gb"), new applicationlanguage(null, "tr", "türkçe", "famfamfam-flags tr"), new applicationlanguage(null, "zh-cn", "简体中文", "famfamfam-flags cn"), new applicationlanguage(null, "pt-br", "português-br", "famfamfam-flags br"), new applicationlanguage(null, "es", "español", "famfamfam-flags es"), new applicationlanguage(null, "fr", "français", "famfamfam-flags fr"), new applicationlanguage(null, "it", "italiano", "famfamfam-flags it"), new applicationlanguage(null, "ja", "日本語", "famfamfam-flags jp"), new applicationlanguage(null, "nl-nl", "nederlands", "famfamfam-flags nl"), new applicationlanguage(null, "lt", "lietuvos", "famfamfam-flags lt"), new applicationlanguage(null, "vi", "vietnamese", "famfamfam-flags vi") }; }
plus, need update database because seed method not update existing languages. open abplanguages table , update row vietnamese; name=vi, icon=famfamfam-flags vi.
update abplanguages set name='vi', icon='famfamfam-flags' name='vn'
Comments
Post a Comment