Hi
I was publishing via secure files on the azure pipeline and then referencing them in my build pipeline yml. that seemed to work and the file was visible in the deployment
- task: DownloadSecureFile@1
inputs:
secureFile: 'openiddict.pfx'
- script: |
mkdir -p $(Build.SourcesDirectory)/src/Pekkish.PekkishPOS.AuthServer
mv $(Agent.TempDirectory)/openiddict.pfx $(Build.SourcesDirectory)/src/Pekkish.PekkishPOS.AuthServer/
displayName: 'Move PFX File'
Using your example the openiddict.pfx is not deployed to the azure deployment and not showing in the build artefact
Any suggestions should i go back to the secure files option and then referencing it in the yml?
Hi thank you for your respose.
I have the oppeniddict.pfx file now deployed to c:\home\site\wwwroot along with the other build files:
However when i do a dotnet run on the project dll i get the following error which is different to previous errors:
C:\home\site\wwwroot>dotnet Pekkish.PekkishPOS.AuthServer.dll
[08:38:31 INF] Starting Pekkish.PekkishPOS.AuthServer.
[08:38:32 FTL] Pekkish.PekkishPOS.AuthServer terminated unexpectedly!
Volo.Abp.AbpInitializationException: An error occurred during ConfigureServicesAsync phase of the module Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule, Volo.Abp.OpenIddict.AspNetCore, Version=8.3.2.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details.
---> System.Security.Cryptography.CryptographicException: The system cannot find the file specified.
at System.Security.Cryptography.X509Certificates.CertificatePal.FilterPFXStore(ReadOnlySpan`1 rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
at System.Security.Cryptography.X509Certificates.CertificatePal.FromBlobOrFile(ReadOnlySpan`1 rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password)
at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilderExtensions.AddProductionEncryptionAndSigningCertificate(OpenIddictServerBuilder builder, String fileName, String passPhrase)
at Pekkish.PekkishPOS.PekkishPOSAuthServerModule.<>c.<PreConfigureServices>b__0_2(OpenIddictServerBuilder serverBuilder) in D:\a\1\s\src\Pekkish.PekkishPOS.AuthServer\PekkishPOSAuthServerModule.cs:line 100
at Volo.Abp.Options.PreConfigureActionList`1.Configure(TOptions options)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionPreConfigureExtensions.ExecutePreConfiguredActions[TOptions](IServiceCollection services, TOptions options)
at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.<>c__DisplayClass1_0.<AddOpenIddictServer>b__0(OpenIddictServerBuilder builder)
at Microsoft.Extensions.DependencyInjection.OpenIddictServerExtensions.AddServer(OpenIddictBuilder builder, Action`1 configuration)
at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.AddOpenIddictServer(IServiceCollection services)
at Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule.ConfigureServices(ServiceConfigurationContext context)
at Volo.Abp.Modularity.AbpModule.ConfigureServicesAsync(ServiceConfigurationContext context)
at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync()
--- End of inner exception stack trace ---
at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync()
at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action`1 optionsAction)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action`1 optionsAction)
at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action`1 optionsAction)
at Pekkish.PekkishPOS.Program.Main(String[] args) in D:\a\1\s\src\Pekkish.PekkishPOS.AuthServer\Program.cs:line 36
Hi
that was just a an example not to expose my the guid to public i used the guid that matches the one listed in the code
Hi. You can close this ticket. I have since decided not to use the MAUI app in the end.
Thank you very much that worked.
There was no Blazorise package installed so installed it to that version.
When clicking on Dashboard page i get the following as well:
[20:52:53 WRN] Unhandled exception rendering component: Method not found: 'Void Blazorise.Modules.BaseJSModule..ctor(Microsoft.JSInterop.IJSRuntime, Blazorise.IVersionProvider)'.
System.MissingMethodException: Method not found: 'Void Blazorise.Modules.BaseJSModule..ctor(Microsoft.JSInterop.IJSRuntime, Blazorise.IVersionProvider)'.
at Blazorise.Charts.JSChartModule..ctor(IJSRuntime jsRuntime, IVersionProvider versionProvider)
at Blazorise.Charts.BaseChart1.OnInitializedAsync() at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() [20:52:53 ERR] Unhandled exception in circuit 'ZlbUTE2ajjdYsa0j3Ffqaa6hTFjEyPcKSAjmSfjKF1U'. System.MissingMethodException: Method not found: 'Void Blazorise.Modules.BaseJSModule..ctor(Microsoft.JSInterop.IJSRuntime, Blazorise.IVersionProvider)'. at Blazorise.Charts.JSChartModule..ctor(IJSRuntime jsRuntime, IVersionProvider versionProvider) at Blazorise.Charts.BaseChart
1.OnInitializedAsync()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
[20:52:53 WRN] Unhandled exception rendering component: Method not found: 'Void Blazorise.Modules.BaseJSModule..ctor(Microsoft.JSInterop.IJSRuntime, Blazorise.IVersionProvider)'.
System.MissingMethodException: Method not found: 'Void Blazorise.Modules.BaseJSModule..ctor(Microsoft.JSInterop.IJSRuntime, Blazorise.IVersionProvider)'.
at Blazorise.Charts.JSChartModule..ctor(IJSRuntime jsRuntime, IVersionProvider versionProvider)
at Blazorise.Charts.BaseChart1.OnInitializedAsync() at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() [20:52:53 ERR] Unhandled exception in circuit 'ZlbUTE2ajjdYsa0j3Ffqaa6hTFjEyPcKSAjmSfjKF1U'. System.MissingMethodException: Method not found: 'Void Blazorise.Modules.BaseJSModule..ctor(Microsoft.JSInterop.IJSRuntime, Blazorise.IVersionProvider)'. at Blazorise.Charts.JSChartModule..ctor(IJSRuntime jsRuntime, IVersionProvider versionProvider) at Blazorise.Charts.BaseChart
1.OnInitializedAsync()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
[20:52:53 INF] Executed endpoint '/_blazor'
[20:52:53 INF] Request finished HTTP/2 CONNECT https://localhost:44370/_blazor?id=h7MU0ObCbMqcEC3lEX03bQ - 200 null null
6192.1729ms
[20:52:53 INF] Connection id "0HN7MN0SEUSIA", Request id "0HN7MN0SEUSIA:0000000D": the application completed without reading the entire request body.
Hi, Just another update.
Even though the homepage loads, none of the menu options are now available as they were before the upgrade to v8.3.0.
I am logged in as admin and even the tenant admin menu options are not loading.
Hi Just an update my side. I did some more debugging
The above code cannot find the session in questions ("3cb289a7-6c89-410f-bce1-884ea1641a49")
But in the new AbpSessions table (created by v8.3.0) there is a record for that session in the table:
I would like to sort this out today as I go on a 2 week holiday tomorrow