Activities of "kerem.kalemci"

  • ABP Framework version: v6.0.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): No

Hello everyone.

We have a micro service project that created by abp suite. We was added three different service project to this microservice project. And this service projects are feeding only one ui. Our goal is this service projects are convert a module template project with abp suite with easily. Our goal is separate their ui and after at all, we want make this uis to npm package and add to main ui. How can we do that, thanks from now.

Hello,

The ocelot's respective config:

{
  "ServiceKey": "Saas Service",
  "DownstreamPathTemplate": "/swagger/v1/swagger.json",
  "DownstreamScheme": "https",
  "DownstreamHostAndPorts": [
    {
      "Host": "testsaas.hitsoft.com.tr",
      "Port": 443
    }
  ],
  "UpstreamPathTemplate": "/testsaas.hitsoft.com.tr/{everything}",
  "UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ]
},

When I choose SAAS from the swagger's dropdown, it complains 502 bad gateway. Auth, admin, identity works like a charm.

Question

Access to the path 'C:\Windows\system32\LogFiles\WMI\RtBackup' is denied.

This is the error message.

Hello,

Abp can't find the pfx file. It is at the root directory at the production.

The code is:

private X509Certificate2 GetSigningCertificate(IWebHostEnvironment hostingEnv, IConfiguration configuration)
{
    var fileName = "authserver.pfx";
    var passPhrase = "";
    var file = Path.Combine(hostingEnv.ContentRootPath, fileName);

    if (!File.Exists(file))
    {//
        throw new FileNotFoundException($"Signing Certificate couldn't found: {file}");
    }

    return new X509Certificate2(file, passPhrase);
}

Of course passPhrase is not empty.

Hi there.

Normally the command;

New-SelfSignedCertificate -subject *.hitsoft.com.tr -DNsName testsaas.hitsoft.com.tr -CertStoreLocation Cert:\LocalMachine\My -NotAfter (Get-Date).AddYears(10)

makes this work for the url testsaas.hitsoft.com.tr.

What is missing? We don't want let's encrypyt.

It complains : ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

Is there a code block where we setup the pfx file in abp already?

Hello,

I imported the certificate with the command:

New-SelfSignedCertificate -subject *.hitsoft.com.tr -DNsName testsaas.hitsoft.com.tr -CertStoreLocation Cert:\LocalMachine\My -NotAfter (Get-Date).AddYears(10)

It is in the trusted root

System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatchSystem.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

The url is testsaas.hitsoft.com.tr

DNS_PROBE_FINISHED_NXDOMAIN error occured now. There no logs although there is stdoutlog open in the web.config.

There is another problem in the copying of appsettings.json but I might take this into account after we solve this issue.

Hello, I have a problem.

Volo.Abp.AbpInitializationException: An error occurred during ConfigureServicesAsync phase of the module HitFrame.SaasService.SaasServiceHttpApiHostModule, HitFrame.SaasService.HttpApi.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details.
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Extensions.DependencyInjection.AbpSwaggerGenServiceCollectionExtensions.AddAbpSwaggerGenWithOAuth(IServiceCollection services, String authority, Dictionary`2 scopes, Action`1 setupAction, String authorizationEndpoint, String tokenEndpoint)
   at HitFrame.Shared.Hosting.AspNetCore.SwaggerConfigurationHelper.ConfigureWithAuth(ServiceConfigurationContext context, String authority, Dictionary`2 scopes, String apiTitle, String apiVersion, String apiName) in C:\Users\hitsoftdevadm18\Desktop\atlassian-bitbucket-pipelines-runner\temp\79132501-1037-5832-acea-3435bd03b6a5\1715608337513\build\shared\HitFrame.Shared.Hosting.AspNetCore\SwaggerConfigurationHelper.cs:line 40
   at HitFrame.SaasService.SaasServiceHttpApiHostModule.ConfigureServices(ServiceConfigurationContext context) in C:\Users\hitsoftdevadm18\Desktop\atlassian-bitbucket-pipelines-runner\temp\79132501-1037-5832-acea-3435bd03b6a5\1715608337513\build\services\saas\src\HitFrame.SaasService.HttpApi.Host\SaasServiceHttpApiHostModule.cs:line 39
   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)

The code block:

  public override void ConfigureServices(ServiceConfigurationContext context)
  {
      // Enable if you need these
      // var hostingEnvironment = context.Services.GetHostingEnvironment();
      var configuration = context.Services.GetConfiguration();

      context.Services.AddAbpDbContext<SaasServiceDbContext>();
      JwtBearerConfigurationHelper.Configure(context, "SaasService");
      SwaggerConfigurationHelper.ConfigureWithAuth(
          context: context,
          authority: configuration["AuthServer:Authority"],
          scopes: new
              Dictionary<string, string> /* Requested scopes for authorization code request and descriptions for swagger UI only */ {
                  { "SaasService", "Saas Service API" }
              },
          apiTitle: "Saas Service API"
      );
      context.Services.AddCors(options =>
      {
          options.AddDefaultPolicy(builder =>
          {
              builder
                  .WithOrigins(
                      configuration["App:CorsOrigins"]
                          .Split(",", StringSplitOptions.RemoveEmptyEntries)
                          .Select(o => o.Trim().RemovePostFix("/"))
                          .ToArray()
                  )
                  .WithAbpExposedHeaders()
                  .SetIsOriginAllowedToAllowWildcardSubdomains()
                  .AllowAnyHeader()
                  .AllowAnyMethod()
                  .AllowCredentials();
          });
      });
      ConfigureHealthChecks(context);
  }

And;

public static void ConfigureWithAuth(
    ServiceConfigurationContext context,
    string authority,
    Dictionary<string, string> scopes,
    string apiTitle,
    string apiVersion = "v1",
    string apiName = "v1"
)
{
    context.Services.AddAbpSwaggerGenWithOAuth(
        authority: authority,
        scopes: scopes,
        options =>
        {
            options.SwaggerDoc(apiName, new OpenApiInfo { Title = apiTitle, Version = apiVersion });
            options.DocInclusionPredicate((docName, description) => true);
            options.CustomSchemaIds(type => type.FullName);
            options.ResolveConflictingActions(apiDesc => apiDesc.First());
        });
}
顯示 9 個紀錄的 1 到 9 個.
Made with ❤️ on ABP v8.2.0-preview Updated on 3月 25, 2024, 15:11