Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

AbpApiAuthorizeFilter exception via Custom Domain call #1660


User avatar
0
ecairncross created

Hi There,

So I've got my site running fine on Microsoft Azure, but as soon as I try to access the site via a custom domain, I get errors on any Web Api calls made to methods with the [AbpAuthorize] attribute.

The error is: Abp.WebApi.ExceptionHandling.AbpApiExceptionFilterAttribute

Message: No Language Defined!

Exception: System.ApplicationException: No language defined! at Abp.Localization.MultiTenantLocalizationDictionaryProvider.GetDefaultDictionary() at Abp.Localization.MultiTenantLocalizationDictionaryProvider.get_DefaultDictionary() at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetStringOrNull(String name, CultureInfo culture, Boolean tryDefaults) at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetString(String name) at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Authorization.AuthorizationHelper.<CheckPermissions>d__21.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Nito.AsyncEx.AsyncContext.<>c__DisplayClass3.<Run>b__1(Task t) at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Nito.AsyncEx.AsyncContext.Run(Func`1 action) at Abp.Authoriz

Any Help would be great. This ONLY happens via my custom domain, if I run the site via the azure path it runs fine!

Thanks!


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    It is probably going to another application (have you deployed it twice?) or another database with the custom domain. Otherwise, this error can not be related to domain name. Be sure it's the same application and same database.