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

AbpUserConfiguration/GetAll Error from MAC #4943


User avatar
0
shimulcse created

Hi,

Created a project on v5.3.0 using ASP.Net Core & Angular.

Application both frontend & backend running on the windows machine correctly but not showing login page on the MAC machine. Showing Internal Error. Backend swagger running on 5000 port also login using Authorize option in swagger. From network found that >http://localhost:5000/AbpUserConfiguration/GetAll returning error having "message":"An internal error occurred during your request!"

`http://localhost:5000/AbpUserConfiguration/GetAll`

{"result":null,"targetUrl":null,"success":false,"error":{"code":0,"message":"An internal error occurred during your request!","details":null,"validationErrors":null},"unAuthorizedRequest":false,"__abp":true}

Need your urgent help.


5 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    hi,

    Check if your host correctly runs on port 5000. To check it navigate to <a class="postlink" href="http://localhost:5000/swagger">http://localhost:5000/swagger</a> in your browser. If you don't see the swagger page then it might be running on different port. And If it's running, check host logs. It's in *.Web.Host\App_Data\Logs\

  • User Avatar
    0
    shimulcse created

    Host correctly running on port 5000. Checked through <a class="postlink" href="http://localhost:5000/swagger">http://localhost:5000/swagger</a> in my browser also able to login by Authorize button within swagger. But not showing frontend initial page in the browser within MAC PC (But in WINDOWS showing correctly).

    [http://localhost:5000/api/TokenAuth/Authenticate]) In MAC This URL returns valid access token.

    Getting error on MAC when accessing URL [http://localhost:5000/AbpUserConfiguration/GetAll])

    Checked LOG and found below error for MAC.

    DEBUG 2018-04-04 11:46:05,488 [1    ] Abp.Modules.AbpModuleManager             - Loading Abp modules...
    DEBUG 2018-04-04 11:46:05,627 [1    ] Abp.Modules.AbpModuleManager             - Found 22 ABP modules in total.
    DEBUG 2018-04-04 11:46:05,669 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: AHL.SPMS.Web.Startup.SPMSWebHostModule, AHL.SPMS.Web.Host, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,675 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: AHL.SPMS.Web.SPMSWebCoreModule, AHL.SPMS.Web.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,676 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: AHL.SPMS.SPMSApplicationModule, AHL.SPMS.Application, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,676 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: AHL.SPMS.SPMSCoreModule, AHL.SPMS.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,677 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.ZeroCore, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,677 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.AbpZeroCommonModule, Abp.Zero.Common, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,678 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AbpKernelModule, Abp, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,679 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.Ldap.AbpZeroLdapModule, Abp.Zero.Ldap, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,680 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,681 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AspNetZeroCore.AbpAspNetZeroCoreModule, Abp.AspNetZeroCore, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,682 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.MailKit.AbpMailKitModule, Abp.MailKit, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,683 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: AHL.SPMS.EntityFrameworkCore.SPMSEntityFrameworkCoreModule, AHL.SPMS.EntityFrameworkCore, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,684 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.EntityFrameworkCore.AbpZeroCoreEntityFrameworkCoreModule, Abp.ZeroCore.EntityFrameworkCore, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,684 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule, Abp.EntityFrameworkCore, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,685 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.EntityFramework.AbpEntityFrameworkCommonModule, Abp.EntityFramework.Common, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,685 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.IdentityServer4.AbpZeroCoreIdentityServerEntityFrameworkCoreModule, Abp.ZeroCore.IdentityServer4.EntityFrameworkCore, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,686 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.IdentityServer4.AbpZeroCoreIdentityServerModule, Abp.ZeroCore.IdentityServer4, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,686 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AspNetZeroCore.Web.AbpAspNetZeroCoreWebModule, Abp.AspNetZeroCore.Web, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,686 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AspNetCore.AbpAspNetCoreModule, Abp.AspNetCore, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,687 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,687 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Runtime.Caching.Redis.AbpRedisCacheModule, Abp.RedisCache, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,688 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Hangfire.AbpHangfireAspNetCoreModule, Abp.HangFire.AspNetCore, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:05,695 [1    ] Abp.Modules.AbpModuleManager             - 22 modules loaded.
    DEBUG 2018-04-04 11:46:05,863 [1    ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
    DEBUG 2018-04-04 11:46:05,863 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
    DEBUG 2018-04-04 11:46:05,863 [1    ] o.Configuration.LanguageManagementConfig - Converted SPMS (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
    DEBUG 2018-04-04 11:46:05,863 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
    DEBUG 2018-04-04 11:46:07,083 [1    ] ameworkCore.AbpEntityFrameworkCoreModule - Registering DbContext: AHL.SPMS.EntityFrameworkCore.SPMSDbContext, AHL.SPMS.EntityFrameworkCore, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null
    DEBUG 2018-04-04 11:46:08,450 [1    ] Abp.Localization.LocalizationManager     - Initializing 4 localization sources.
    DEBUG 2018-04-04 11:46:08,833 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: Abp
    DEBUG 2018-04-04 11:46:09,531 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpZero
    DEBUG 2018-04-04 11:46:09,797 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: SPMS
    DEBUG 2018-04-04 11:46:10,240 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpWeb
    DEBUG 2018-04-04 11:46:10,304 [1    ] Abp.BackgroundJobs.BackgroundJobManager  - Start background worker: Abp.BackgroundJobs.BackgroundJobManager
    DEBUG 2018-04-04 11:46:10,392 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - Found 2 classes define auto mapping attributes
    DEBUG 2018-04-04 11:46:10,392 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - AHL.SPMS.Web.Models.TokenAuth.ExternalLoginProviderInfoModel
    DEBUG 2018-04-04 11:46:10,400 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - AHL.SPMS.Friendships.Cache.FriendCacheItem
    DEBUG 2018-04-04 11:46:18,991 [1    ] enancy.SubscriptionExpirationCheckWorker - Start background worker: AHL.SPMS.MultiTenancy.SubscriptionExpirationCheckWorker
    DEBUG 2018-04-04 11:46:18,997 [1    ] cy.SubscriptionExpireEmailNotifierWorker - Start background worker: AHL.SPMS.MultiTenancy.SubscriptionExpireEmailNotifierWorker
    INFO  2018-04-04 11:46:40,103 [8    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:5000/AbpUserConfiguration/GetAll  
    INFO  2018-04-04 11:46:41,372 [8    ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) with arguments ((null)) - ModelState is Valid
    ERROR 2018-04-04 11:46:42,834 [4    ] Mvc.ExceptionHandling.AbpExceptionFilter - Exception of type 'System.TimeZoneNotFoundException' was thrown.
    System.TimeZoneNotFoundException: Exception of type 'System.TimeZoneNotFoundException' was thrown.
       at TimeZoneConverter.TZConvert.GetTimeZoneInfo(String windowsOrIanaTimeZoneId)
       at Abp.Web.Configuration.AbpUserConfigurationBuilder.<GetUserTimingConfig>d__46.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.Web.Common\Web\Configuration\AbpUserConfigurationBuilder.cs:line 238
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Abp.Web.Configuration.AbpUserConfigurationBuilder.<GetAll>d__37.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.Web.Common\Web\Configuration\AbpUserConfigurationBuilder.cs:line 66
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.<GetAll>d__2.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.AspNetCore\AspNetCore\Mvc\Controllers\AbpUserConfigurationController.cs:line 18
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at lambda_method(Closure , Object )
       at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
       at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__14.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__23.MoveNext()
    INFO  2018-04-04 11:46:42,902 [4    ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext.
    INFO  2018-04-04 11:46:43,102 [4    ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) in 1890.721ms
    INFO  2018-04-04 11:46:43,122 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 3049.221ms 500 application/json; charset=utf-8
    
  • User Avatar
    0
    shimulcse created

    [/api/services/app/Timing/GetTimezones])

    http://localhost:22742/api/services/app/Timing/GetTimezones?DefaultTimezoneScope=1"
    

    In WINDOWS Return response TimeZone data correctly.

    <span style="color:#FF0000">In MAC Throw exception. Return message "Internal Server Error"</span>

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Here is the related issue <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3223">https://github.com/aspnetboilerplate/as ... ssues/3223</a>. You need to upgrade "TimeZoneConverter" nuget package to 2.3.2.

  • User Avatar
    0
    shimulcse created

    Thanks