Activités de "darutter"

Reproduction steps are listed in my last post. Here is a section of the log file.

2023-07-12 15:41:52.695 +00:00 [DBG] Request path /.well-known/openid-configuration matched to endpoint type Discovery 2023-07-12 15:41:52.785 +00:00 [DBG] Endpoint enabled: Discovery, successfully created handler: IdentityServer4.Endpoints.DiscoveryEndpoint 2023-07-12 15:41:52.785 +00:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration 2023-07-12 15:41:52.794 +00:00 [DBG] Endpoint enabled: Discovery, successfully created handler: IdentityServer4.Endpoints.DiscoveryEndpoint 2023-07-12 15:41:52.794 +00:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration 2023-07-12 15:41:52.802 +00:00 [DBG] Endpoint enabled: Discovery, successfully created handler: IdentityServer4.Endpoints.DiscoveryEndpoint 2023-07-12 15:41:52.802 +00:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration 2023-07-12 15:41:52.803 +00:00 [DBG] Start discovery request 2023-07-12 15:41:52.811 +00:00 [DBG] Start discovery request 2023-07-12 15:41:52.812 +00:00 [DBG] Start discovery request 2023-07-12 15:41:53.077 +00:00 [DBG] Endpoint enabled: Discovery, successfully created handler: IdentityServer4.Endpoints.DiscoveryEndpoint 2023-07-12 15:41:53.077 +00:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryEndpoint for /.well-known/openid-configuration 2023-07-12 15:41:53.077 +00:00 [DBG] Start discovery request 2023-07-12 15:41:53.125 +00:00 [INF] {"Details":"System.Threading.Tasks.TaskCanceledException: A task was canceled.\r\n at Volo.Abp.Threading.SemaphoreSlimExtensions.LockAsync(SemaphoreSlim semaphoreSlim, CancellationToken cancellationToken)\r\n at Volo.Abp.Caching.DistributedCache2.GetOrAddAsync(TCacheKey key, Func1 factory, Func1 optionsFactory, Nullable1 hideErrors, Boolean considerUow, CancellationToken token)\r\n at Volo.Abp.IdentityServer.ResourceStore.GetAllResourcesAsync()\r\n at IdentityServer4.Stores.IResourceStoreExtensions.GetAllEnabledResourcesAsync(IResourceStore store)\r\n at IdentityServer4.ResponseHandling.DiscoveryResponseGenerator.CreateDiscoveryDocumentAsync(String baseUrl, String issuerUri)\r\n at IdentityServer4.Endpoints.DiscoveryEndpoint.ProcessAsync(HttpContext context)\r\n at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)","Category":"Error","Name":"Unhandled Exception","EventType":"Error","Id":3000,"Message":"A task was canceled.","ActivityId":"800070ab-0000-e800-b63f-84710c7967bb","TimeStamp":"2023-07-12T15:41:53.0000000Z","ProcessId":3900,"LocalIpAddress":"10.10.0.190:443","RemoteIpAddress":"47.186.238.208","$type":"UnhandledExceptionEvent"} 2023-07-12 15:41:53.126 +00:00 [FTL] Unhandled exception: A task was canceled. System.Threading.Tasks.TaskCanceledException: A task was canceled. at Volo.Abp.Threading.SemaphoreSlimExtensions.LockAsync(SemaphoreSlim semaphoreSlim, CancellationToken cancellationToken) at Volo.Abp.Caching.DistributedCache2.GetOrAddAsync(TCacheKey key, Func1 factory, Func1 optionsFactory, Nullable1 hideErrors, Boolean considerUow, CancellationToken token) at Volo.Abp.IdentityServer.ResourceStore.GetAllResourcesAsync() at IdentityServer4.Stores.IResourceStoreExtensions.GetAllEnabledResourcesAsync(IResourceStore store) at IdentityServer4.ResponseHandling.DiscoveryResponseGenerator.CreateDiscoveryDocumentAsync(String baseUrl, String issuerUri) at IdentityServer4.Endpoints.DiscoveryEndpoint.ProcessAsync(HttpContext context) at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService) at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService) at IdentityServer4.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Uow.AbpUnitOfWorkMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Builder.ApplicationBuilderAbpJwtTokenMiddlewareExtension.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT1.ProcessRequestAsync() 2023-07-12 15:41:53.133 +00:00 [INF] {"Details":"System.Threading.Tasks.TaskCanceledException: A task was canceled.\r\n at Volo.Abp.Threading.SemaphoreSlimExtensions.LockAsync(SemaphoreSlim semaphoreSlim, CancellationToken cancellationToken)\r\n at Volo.Abp.Caching.DistributedCache2.GetOrAddAsync(TCacheKey key, Func1 factory, Func1 optionsFactory, Nullable1 hideErrors, Boolean considerUow, CancellationToken token)\r\n at Volo.Abp.IdentityServer.ResourceStore.GetAllResourcesAsync()\r\n at IdentityServer4.Stores.IResourceStoreExtensions.GetAllEnabledResourcesAsync(IResourceStore store)\r\n at IdentityServer4.ResponseHandling.DiscoveryResponseGenerator.CreateDiscoveryDocumentAsync(String baseUrl, String issuerUri)\r\n at IdentityServer4.Endpoints.DiscoveryEndpoint.ProcessAsync(HttpContext context)\r\n at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)","Category":"Error","Name":"Unhandled Exception","EventType":"Error","Id":3000,"Message":"A task was canceled.","ActivityId":"80004c83-0000-dd00-b63f-84710c7967bb","TimeStamp":"2023-07-12T15:41:53.0000000Z","ProcessId":3900,"LocalIpAddress":"10.10.0.190:443","RemoteIpAddress":"47.186.238.208","$type":"UnhandledExceptionEvent"} 2023-07-12 15:41:53.133 +00:00 [FTL] Unhandled exception: A task was canceled. System.Threading.Tasks.TaskCanceledException: A task was canceled. at Volo.Abp.Threading.SemaphoreSlimExtensions.LockAsync(SemaphoreSlim semaphoreSlim, CancellationToken cancellationToken) at Volo.Abp.Caching.DistributedCache2.GetOrAddAsync(TCacheKey key, Func1 factory, Func1 optionsFactory, Nullable1 hideErrors, Boolean considerUow, CancellationToken token) at Volo.Abp.IdentityServer.ResourceStore.GetAllResourcesAsync() at IdentityServer4.Stores.IResourceStoreExtensions.GetAllEnabledResourcesAsync(IResourceStore store) at IdentityServer4.ResponseHandling.DiscoveryResponseGenerator.CreateDiscoveryDocumentAsync(String baseUrl, String issuerUri) at IdentityServer4.Endpoints.DiscoveryEndpoint.ProcessAsync(HttpContext context) at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService) at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService) at IdentityServer4.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Uow.AbpUnitOfWorkMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Builder.ApplicationBuilderAbpJwtTokenMiddlewareExtension.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT1.ProcessRequestAsync()

When the user selects to log out of the mobile app they are sent to this web page. The user is logged out of the session in the API backend but because the redirect never happens the mobile app still thinks the user is logged in and thing go weird in the app. I need to know how to get the redirect to happen and complete the logout process in the mobile app.

The Pro packages all indicate that the versions listed are the latest stable versions and there are no upgrades to them. Please advise.

Yes I can successfully run the modified program you sent me in debug mode. However, when I compile it in release mode and deploy it to my iPhone it crashes like before.

What version of Xcode are you running? Are you building on a Mac?

I looked at the changes you made and the only significant one was to comment out one line in the RadixDealerPortalMauiClientModule.cs file. I did the same and still get the following error.

Yes, running the app on my iPhone in debug mode is when it happens.

More information on the situation:

By default the solution includes the xxx.Application.Contracts, xxx.Domain.Shared and xxx.HttpApi.Client projects as part of the solution. The only way I can even get the project to successfully compile is to not include these projects in the compilation process and instead include their .dll's. By including the .dll's it appears that all of the references to the Volo.Abp HttpApi related elements are not compiled into the executable.

If I begin including references to the Volo.Abp dll's, I get a cascading affect of needing more and more of the Volo .dll's and including some of them results in other errors like ambiguous calls to various methods.

Do you have any suggestions for how to configure the MAUI app to build either with or without including the required projects as part of the build process? This has been going on for 9 months.

Thank you for the links. I am finally able to get my real project to compile. I can create an .ipa to deploy to the Apple store, however the app crashes immediately after the splash screen. This is happening in both the release and debug versions. In the debug version it is failing when it tries to instantiate the webauthenticatorbrowser because it can't load the Volo.Abp.Identity.Pro.HttpCient

There were a couple other Volo packages that it said it couldn't load before this one and I was able to include those packages into the MAUI project. However, the Volo.Abp.Identity.Pro modules don't show up as options to load in the MAUI project. Any help is appreciated.

I just created a new solution using ABP.IO version 7.1.1 that includes a MAUI project and tried to build the iOS version using Visual Studio Mac 17.5.4. I did not make any changes to the solution after creating it with SUITE 7.1.1. When I attempt build the app to run the new solution on my iPhone I get the same error as I get on my old app, except that the error says :

/usr/local/share/dotnet/sdk/7.0.203/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(5,5): Error NETSDK1047: Assets file '/Users/davidrutter/Projects/BaseSolution/aspnet-core/src/BaseSolution.Maui/obj/project.assets.json' doesn't have a target for 'net7.0-ios/ios-arm64'. Ensure that restore has run and that you have included 'net7.0-ios' in the TargetFrameworks for your project. You may also need to include 'ios-arm64' in your project's RuntimeIdentifiers. (NETSDK1047) (BaseSolution.Maui)

This is the pertinent section from the .csproj file:

&lt;PropertyGroup&gt;
	&lt;TargetFrameworks&gt;net7.0-android;net7.0-ios;net7.0-maccatalyst&lt;/TargetFrameworks&gt;
	&lt;TargetFrameworks Condition=&quot;$([MSBuild]::IsOSPlatform(&#39;windows&#39;))&quot;&gt;$(TargetFrameworks);net7.0-windows10.0.19041.0&lt;/TargetFrameworks&gt;
	&lt;!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET --&gt;
	&lt;!-- &lt;TargetFrameworks&gt;$(TargetFrameworks);net7.0-tizen&lt;/TargetFrameworks&gt; -->
	&lt;Nullable&gt;enable&lt;/Nullable&gt;
	&lt;OutputType&gt;Exe&lt;/OutputType&gt;
	&lt;RootNamespace&gt;BaseSolution.Maui&lt;/RootNamespace&gt;
	&lt;UseMaui&gt;true&lt;/UseMaui&gt;
	&lt;SingleProject&gt;true&lt;/SingleProject&gt;
	&lt;ImplicitUsings&gt;enable&lt;/ImplicitUsings&gt;

	&lt;!-- Display name --&gt;
	&lt;ApplicationTitle&gt;BaseSolution.Maui&lt;/ApplicationTitle&gt;

	&lt;!-- App Identifier --&gt;
	&lt;ApplicationId&gt;com.companyname.basesolution.maui&lt;/ApplicationId&gt;
	&lt;ApplicationIdGuid&gt;e5c5d420-6b4b-4a4b-9ee5-cc98e5ea2e97&lt;/ApplicationIdGuid&gt;

	&lt;!-- Versions --&gt;
	&lt;ApplicationDisplayVersion&gt;1.0&lt;/ApplicationDisplayVersion&gt;
	&lt;ApplicationVersion&gt;1&lt;/ApplicationVersion&gt;

	&lt;SupportedOSPlatformVersion Condition=&quot;$([MSBuild]::GetTargetPlatformIdentifier(&#39;$(TargetFramework)&#39;)) == &#39;ios&#39;&quot;&gt;11.0&lt;/SupportedOSPlatformVersion&gt;
	&lt;SupportedOSPlatformVersion Condition=&quot;$([MSBuild]::GetTargetPlatformIdentifier(&#39;$(TargetFramework)&#39;)) == &#39;maccatalyst&#39;&quot;&gt;13.1&lt;/SupportedOSPlatformVersion&gt;
	&lt;SupportedOSPlatformVersion Condition=&quot;$([MSBuild]::GetTargetPlatformIdentifier(&#39;$(TargetFramework)&#39;)) == &#39;android&#39;&quot;&gt;21.0&lt;/SupportedOSPlatformVersion&gt;
	&lt;SupportedOSPlatformVersion Condition=&quot;$([MSBuild]::GetTargetPlatformIdentifier(&#39;$(TargetFramework)&#39;)) == &#39;windows&#39;&quot;&gt;10.0.17763.0&lt;/SupportedOSPlatformVersion&gt;
	&lt;TargetPlatformMinVersion Condition=&quot;$([MSBuild]::GetTargetPlatformIdentifier(&#39;$(TargetFramework)&#39;)) == &#39;windows&#39;&quot;&gt;10.0.17763.0&lt;/TargetPlatformMinVersion&gt;
	&lt;SupportedOSPlatformVersion Condition=&quot;$([MSBuild]::GetTargetPlatformIdentifier(&#39;$(TargetFramework)&#39;)) == &#39;tizen&#39;&quot;&gt;6.5&lt;/SupportedOSPlatformVersion&gt;
&lt;/PropertyGroup&gt;

I have to be able to build a MAUI project for iOS.

I've tried several times with the same result. I have 6 solutions that were created months ago and 2 of them fail to load. Both are projects that include a MAUI project in them and these two projects are the ones that are failing to build the iOS versions that I mentioned in a separate post.

Affichage de 41 à 50 sur 62 entrées
Made with ❤️ on ABP v8.2.0-preview Updated on mars 25, 2024, 15:11