Ends in:
7 DAYS
13 HRS
0 MIN
13 SEC
Ends in:
7 D
13 H
0 M
13 S

Activities of "smansuri"

const param: ApplicationConfigurationRequestOptions = { includeLocalizationResources: false // ApplicationConfigurationRequestOptions is having only this flag which we can set true or false }; // this is parameter which we are passing in get method

we are trying to get settings data before login. after your suggested code also the below line of code some times return the sitekey and sometime does not. this.config.getSetting("Abp.Account.Captcha.SiteKey")

Request starting HTTP/2 GET https://xxxxx:44322/__bundles/moment.min.js.map; - -

This may be browser behavior you can ignore it now. z I can not ignore as this error im getting when i click on login and redirected to https://xxxxxx:44322/Error?httpStatusCode=400

Hi,

You should restore packages while developing, they will be included when you publish your application using dotnet publish

Everytime i should not check in libs and nodemodule folders. like for angular how we restore packages in docker there should be a way to achive this in authserver docker also. otherwise whats the use if package.json and checking in 18k files everytime also this is not the correct way of handling the lib files.

more over im getting below errors even after pushing libs and nodemodules to git repo. Request starting HTTP/2 GET https://xxxxx:44322/__bundles/moment.min.js.map; - - [07:38:12 INF] Request finished HTTP/2 GET https://xxxx:44322/__bundles/moment.min.js.map; - - - 302 0 - 8.1742ms [07:38:12 INF] Request starting HTTP/2 GET https://xxxxx:44322/Error?httpStatusCode=404 - - [07:38:12 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [07:38:12 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). [07:38:12 INF] Executing ViewResult, running view ~/Views/Error/404.cshtml. [07:38:12 INF] Executed ViewResult - view ~/Views/Error/404.cshtml executed in 41.5277ms.

Hi,

You should restore packages while developing, they will be included when you publish your application using dotnet publish

Everytime i should not check in libs and nodemodule folders. like for angular how we restore packages in docker there should be a way to achive this in authserver docker also. otherwise whats the use if package.json and checking in 18k files everytime

Hi,

The Auth server needs some NPM packages, you need to restore them before publishing the project.

How to install npm in docker for auth server then as asp.net core is already there in docker

This is a valid certificate only. im not using docker compose though. i was able to make it work with angular app and nginx server. But for .net app its not working. I have used similar docker command. its just that i have not used dev-certs command as im not using dev certificates for local host. my docker file looks like below:

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base


WORKDIR /app
EXPOSE 80
EXPOSE 443

# Copy the SSL pfx files into the image
COPY Deploy/sslcertificates /app/https
RUN true

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src

#** It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles****
**# to take advantage of Docker's build cache, to speed up local container builds**
COPY "G1.health.sln" "G1.health.sln"

**# Applications**
COPY "apps/auth-server/src/G1.health.AuthServer/G1.health.AuthServer.csproj" "apps/auth-server/src/G1.health.AuthServer/G1.health.AuthServer.csproj"
RUN true
COPY "apps/public-web/src/G1.health.PublicWeb/G1.health.PublicWeb.csproj" "apps/public-web/src/G1.health.PublicWeb/G1.health.PublicWeb.csproj"
RUN true
#COPY *"apps/blazor/src/G1.health.Blazor/G1.health.Blazor.csproj" "apps/blazor/src/G1.health.Blazor/G1.health.Blazor.csproj"
#RUN true
#COPY *"apps/blazor/src/G1.health.Blazor.Server/G1.health.Blazor.Server.csproj" "apps/blazor/src/G1.health.Blazor.Server/G1.health.Blazor.Server.csproj"

#COPY *"apps/web/src/G1.health.Web/G1.health.Web.csproj" "apps/web/src/G1.health.Web/G1.health.Web.csproj"


**# Shared Projects**
COPY "shared/G1.health.DbMigrator/G1.health.DbMigrator.csproj" "shared/G1.health.DbMigrator/G1.health.DbMigrator.csproj"
RUN true
COPY "shared/G1.health.Shared.Hosting/G1.health.Shared.Hosting.csproj" "shared/G1.health.Shared.Hosting/G1.health.Shared.Hosting.csproj"
RUN true
COPY "shared/G1.health.Shared.Hosting.Gateways/G1.health.Shared.Hosting.Gateways.csproj" "shared/G1.health.Shared.Hosting.Gateways/G1.health.Shared.Hosting.Gateways.csproj"
RUN true
COPY "shared/G1.health.Shared.Hosting.Microservices/G1.health.Shared.Hosting.Microservices.csproj" "shared/G1.health.Shared.Hosting.Microservices/G1.health.Shared.Hosting.Microservices.csproj"
RUN true
COPY "shared/G1.health.Shared.Hosting.AspNetCore/G1.health.Shared.Hosting.AspNetCore.csproj" "shared/G1.health.Shared.Hosting.AspNetCore/G1.health.Shared.Hosting.AspNetCore.csproj"
RUN true
COPY "shared/G1.health.Shared.Hosting/G1.health.Shared.Hosting.csproj" "shared/G1.health.Shared.Hosting/G1.health.Shared.Hosting.csproj"
RUN true
COPY "shared/G1.health.Shared.Localization/G1.health.Shared.Localization.csproj" "shared/G1.health.Shared.Localization/G1.health.Shared.Localization.csproj"
RUN true

**# Microservices**
COPY "services/administration/src/G1.health.AdministrationService.HttpApi.Host/G1.health.AdministrationService.HttpApi.Host.csproj" "services/administration/src/G1.health.AdministrationService.HttpApi.Host/G1.health.AdministrationService.HttpApi.Host.csproj"
RUN true
COPY "services/identity/src/G1.health.IdentityService.HttpApi.Host/G1.health.IdentityService.HttpApi.Host.csproj" "services/identity/src/G1.health.IdentityService.HttpApi.Host/G1.health.IdentityService.HttpApi.Host.csproj"
RUN true
COPY "services/saas/src/G1.health.SaasService.HttpApi.Host/G1.health.SaasService.HttpApi.Host.csproj" "services/saas/src/G1.health.SaasService.HttpApi.Host/G1.health.SaasService.HttpApi.Host.csproj"
RUN true
COPY "services/product/src/G1.health.ProductService.HttpApi.Host/G1.health.ProductService.HttpApi.Host.csproj" "services/product/src/G1.health.ProductService.HttpApi.Host/G1.health.ProductService.HttpApi.Host.csproj"
RUN true
COPY "services/clinic/src/G1.health.ClinicService.HttpApi.Host/G1.health.ClinicService.HttpApi.Host.csproj" "services/clinic/src/G1.health.ClinicService.HttpApi.Host/G1.health.ClinicService.HttpApi.Host.csproj"
RUN true
**# Gateways**
COPY "gateways/web/src/G1.health.WebGateway/G1.health.WebGateway.csproj" "gateways/web/src/G1.health.WebGateway/G1.health.WebGateway.csproj"
RUN true
COPY "gateways/web-public/src/G1.health.PublicWebGateway/G1.health.PublicWebGateway.csproj" "gateways/web-public/src/G1.health.PublicWebGateway/G1.health.PublicWebGateway.csproj"
RUN true
COPY "NuGet.Config" "NuGet.Config"
RUN true

RUN dotnet restore "G1.health.sln"
RUN true

COPY . .
WORKDIR "/src/apps/auth-server/src/G1.health.AuthServer"
RUN dotnet publish -c Release -o /app
RUN dotnet dev-certs https -v -ep /app/authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED
**# Should be used after .net6 is out of preview for better performance
**# RUN dotnet publish --no-restore -c Release -o /app ****

FROM build AS publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "G1.health.AuthServer.dll"]

docker run --rm -d -p 44322:443 -v ${HOME}/https:/https -e ASPNETCORE_URLS="https://+;http://+" -e ASPNETCORE_HTTPS_PORT=44344 -e ASPNETCORE_Kestrel__Certificates__Default__Password="passsss" -e ASPNETCORE_Kestrel__Certificates__Default__Path=/https/certificate.pfx --name AuthServer --network g1-health imagepath

After implementing the above solution getting blow abp error. .AuthServer terminated unexpectedly! System.Security.Cryptography.CryptographicException: ASN1 corrupted data. ---> System.Formats.Asn1.AsnContentException: The encoded length exceeds the number of bytes remaining in the input buffer. at System.Formats.Asn1.AsnDecoder.ReadEncodedValue(ReadOnlySpan1 source, AsnEncodingRules ruleSet, Int32& contentOffset, Int32& contentLength, Int32& bytesConsumed) at System.Security.Cryptography.X509Certificates.UnixPkcs12Reader.ParsePkcs12(ReadOnlySpan1 data) --- End of inner exception stack trace --- at System.Security.Cryptography.X509Certificates.OpenSslX509CertificateReader.FromFile(String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Certificates.CertificateConfigLoader.LoadCertificate(CertificateConfig certInfo, String endpointName) at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadDefaultCert() at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Reload() at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Load() at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at G1.health.AuthServer.Program.Main(String[] args) in /src/apps/auth-server/src/G1.health.AuthServer/Program.cs:line 30

this is in Auth server where asp.net core application hosting is achieved. In docker only asp.net and .net sdk we install not npm in docker file.

any update on this?

getting below after hosting the angular app on docker ubuntu

Showing 91 to 100 of 123 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06