appreciate the diligence and the ticket refund. Deleting the .razor file before generating solved the issue. One more thing to note, the .extended.razor.cs file for the entity I am generating is also getting wiped on generation (even with content). Can I prevent this somehow, is this a bug? thanks
I am editing the same template as you-- if I put hook point 11 and 12 before and after %%child-entities-create-edit-modals%% neither hook point will show up, I get blank lines instead. Same result if I put the custom-code-blocks in the <modal> or in the <ModalContent> section right above. I have tested with a few different positions. All that appears in the generated .razor files is whitespace.
^^ another trial that did not work
Hi, to add more than 10 custom-code placeholders, you should edit templates and add the relevant placeholder for the related templates. Here are the documents that you can check to see how to do that:
- https://abp.io/docs/latest/suite/customizing-the-generated-code#adding-new-custom-hook-points-changing-their-places-1
- https://abp.io/docs/latest/suite/editing-templates
I quoted the documentation you linked me.... adding more hook points does nothing. They are ignored.
according to the documentation, "From ABP v8.0, up to 20 placeholders are allowed." I am using 8.3.3, but I cannot use more than 10-- the documentation also states up to 11 are allowed "currently." How do I make more than 10 placeholders (for custom code) work, in the abp suite templates? https://abp.io/docs/latest/suite/customizing-the-generated-code
Hi,
Could you check this ? https://support.abp.io/QA/Questions/7188/Unable-to-login-after-upgrade-to-811
They are similar problems
setting a production certificate fixed my issue, but it is troubling that the development certificate is not being loaded properly by my emulator. Regardless, I can debug now, so the fix is appreciated.
I sent you the error log with #7259 in the subject for the email
Hi,
this is only a portion of the call stack, I can post the rest if needed (character limit)
Yes, please share the full error logs
It is too large for the character limit. The stack trace alone is far too large. I have the output from blazor saved as a text file. How should I upload this information? Should I send it over email?
Building an app based on abp suite generated template. Login works properly in the webui, both on desktop and mobile emulator. The MAUI app login does not work. If I login using the default LoginService.cs
, I will log in successfully, but I will immediately redirect to a page which shows the following exception. I am using an android emulator, after this redirect I am logged in on the emulator's browser, but not on the mobile app.
running the blazor app using kestrel (development environment, debug config)
Provide us with the following info:
System.Security.Cryptography.CryptographicException: 'Keyset does not exist'
System.Security.Cryptography.dll!System.Security.Cryptography.CngKey.Open(string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions openOptions) Line 47 C#
System.Security.Cryptography.dll!System.Security.Cryptography.CngKey.Open(string keyName, System.Security.Cryptography.CngProvider provider) Line 31 C#
System.Security.Cryptography.dll!System.Security.Cryptography.X509Certificates.CertificatePal.GetPrivateKey<System.Security.Cryptography.RSA>(System.Func<System.Security.Cryptography.CspParameters, System.Security.Cryptography.RSA> createCsp, System.Func<System.Security.Cryptography.CngKey, System.Security.Cryptography.RSA> createCng) Line 225 C#
System.Security.Cryptography.dll!System.Security.Cryptography.X509Certificates.CertificatePal.GetRSAPrivateKey() Line 23 C#
System.Security.Cryptography.dll!System.Security.Cryptography.X509Certificates.CertificateExtensionsCommon.GetPrivateKey<System.Security.Cryptography.RSA>(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Predicate<System.Security.Cryptography.X509Certificates.X509Certificate2> matchesConstraints) Line 61 C#
System.Security.Cryptography.dll!System.Security.Cryptography.X509Certificates.RSACertificateExtensions.GetRSAPrivateKey(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) Line 27 C#
Microsoft.IdentityModel.Tokens.dll!Microsoft.IdentityModel.Tokens.X509SecurityKey.PrivateKey.get() Line 82 C#
Microsoft.IdentityModel.Tokens.dll!Microsoft.IdentityModel.Tokens.X509SecurityKey.PrivateKeyStatus.get() Line 144 C#
Microsoft.IdentityModel.Tokens.dll!Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider.FoundPrivateKey(Microsoft.IdentityModel.Tokens.SecurityKey key) Line 155 C#
Microsoft.IdentityModel.Tokens.dll!Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider.AsymmetricSignatureProvider(Microsoft.IdentityModel.Tokens.SecurityKey key, string algorithm, bool willCreateSignatures) Line 126 C#
Microsoft.IdentityModel.Tokens.dll!Microsoft.IdentityModel.Tokens.AsymmetricSignatureProvider.AsymmetricSignatureProvider(Microsoft.IdentityModel.Tokens.SecurityKey key, string algorithm, bool willCreateSignatures, Microsoft.IdentityModel.Tokens.CryptoProviderFactory cryptoProviderFactory) Line 81 C#
Microsoft.IdentityModel.Tokens.dll!Microsoft.IdentityModel.Tokens.CryptoProviderFactory.CreateSignatureProvider(Microsoft.IdentityModel.Tokens.SecurityKey key, string algorithm, bool willCreateSignatures, bool cacheProvider) Line 589 C#
Microsoft.IdentityModel.Tokens.dll!Microsoft.IdentityModel.Tokens.CryptoProviderFactory.CreateForSigning(Microsoft.IdentityModel.Tokens.SecurityKey key, string algorithm, bool cacheProvider) Line 273 C#
Microsoft.IdentityModel.Tokens.dll!Microsoft.IdentityModel.Tokens.CryptoProviderFactory.CreateForSigning(Microsoft.IdentityModel.Tokens.SecurityKey key, string algorithm) Line 248 C#
> Microsoft.IdentityModel.JsonWebTokens.dll!Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.CreateSignature(System.ReadOnlySpan<byte> data, System.Span<byte> destination, Microsoft.IdentityModel.Tokens.SigningCredentials signingCredentials, out int bytesWritten) Line 177 C#
Microsoft.IdentityModel.JsonWebTokens.dll!Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.CreateToken(Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor, bool setdefaultTimesOnTokenCreation, int tokenLifetimeInMinutes) Line 247 C#
Microsoft.IdentityModel.JsonWebTokens.dll!Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.CreateToken(Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor) Line 170 C#
OpenIddict.Server.dll!OpenIddict.Server.OpenIddictServerHandlers.Protection.GenerateIdentityModelToken.HandleAsync(OpenIddict.Server.OpenIddictServerEvents.GenerateTokenContext context) Line 1438 C#
OpenIddict.Server.dll!OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync<OpenIddict.Server.OpenIddictServerEvents.GenerateTokenContext>(OpenIddict.Server.OpenIddictServerEvents.GenerateTokenContext context) Line 49 C#
this is only a portion of the call stack, I can post the rest if needed (character limit)
run blazor application, open maui application, attempt to log in as a valid user to the host or tenants in the maui application.