Starts in:
1 DAY
16 HRS
58 MIN
47 SEC
Starts in:
1 D
16 H
58 M
47 S

Activities of "niall"

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core ( MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I create a app-pro template project. now i need access the api at HttpApi.Host by other language (python,Golang etc ...), Could tell me how to do it? or where the documents?

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I use the LeptonX theme(MVC UI), Could tell me where to find the document for components like abp-input , abp-button,abp-card,etc ...?

@page
@using System.Globalization
@using Microsoft.AspNetCore.Mvc.Localization
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal
@using XTC.License.Localization
@using XTC.License.Web.Pages.License.Space
@using XTC.License.Space;
@inject IHtmlLocalizer<LicenseResource> L
@model EditModalModel
@{
    Layout = null;
}

<form data-ajaxForm="true" asp-page="/License/Space/EditModal" autocomplete="off">
    <abp-modal id="SpaceEditModal">
        <abp-modal-header title="@L["Update"].Value"></abp-modal-header>
        <abp-modal-body>
            <abp-input asp-for="Id" />
                    <abp-input asp-for="Space.ConcurrencyStamp" hidden="true" suppress-label="true"/>
            <abp-input asp-for="Space.Name"  readonly="true"  />
            <!-- Other properties
            <abp-input asp-for="Space.OtherProperty"    />
            -->
        </abp-modal-body>
        <abp-modal-footer buttons="@(AbpModalButtons.Cancel|AbpModalButtons.Save)">
        </abp-modal-footer>
    </abp-modal>
</form>

I saw the https://x.leptontheme.com/side-menu/components/bootstrap/card, https://abp.io/docs/latest/ui-themes/lepton-x/mvc, but nothing found about those components. I want to know how many components about abp-* and how to use them.

Question
  • ABP Framework version: v8.2.2
  • UI Type:MVC
  • Database System: EF Core ( MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I run the project first time need a long time like this:

[16:11:15 INF] Starting web host.
[16:13:13 INF] Loaded ABP modules:

It actually took over two minutes !!!

And i deploy the project to my product environment, it took over one minutes too when long time nobody access, Counld tell me how to resolve it?

Question

Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core ( MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I created a app-pro template project. I run the AuthServer at http://192.168.1.152:8000, run the HttpApi.Host at http://192.168.1.152:8001 ,run the Web at http://192.168.1.152:8002.

When i access the Web(http://192.168.1.152:8002), it redirect the Account/Login successfully. I enter the username and passwor, login success. but redirect back the Web(http://192.168.1.152:8002), got a internal error.

this is log:

[13:47:07 INF] Request finished HTTP/1.1 GET http://192.168.1.152:8002/ - 302 0 null 767.8895ms
[13:47:07 INF] Request starting HTTP/1.1 GET http://192.168.1.152:8002/Account/Login - null null
[13:47:07 INF] Executing endpoint 'XTC.BaaSo.Web.Controllers.AccountController.LoginAsync (XTC.BaaSo.Web)'
[13:47:07 INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] LoginAsync(System.String, System.String) on controller XTC.BaaSo.Web.Controllers.AccountController (XTC.BaaSo.Web).
[13:47:07 INF] Executing ChallengeResult with authentication schemes (["oidc"]).
[13:47:07 INF] AuthenticationScheme: oidc was challenged.
[13:47:07 INF] Executed action XTC.BaaSo.Web.Controllers.AccountController.LoginAsync (XTC.BaaSo.Web) in 179.7605ms
[13:47:07 INF] Executed endpoint 'XTC.BaaSo.Web.Controllers.AccountController.LoginAsync (XTC.BaaSo.Web)'
[13:47:07 INF] Request finished HTTP/1.1 GET http://192.168.1.152:8002/Account/Login - 302 0 null 193.8017ms
[13:47:08 INF] Request starting HTTP/1.1 POST http://192.168.1.152:8002/signin-oidc - application/x-www-form-urlencoded 1642
[13:47:08 WRN] '.AspNetCore.Correlation.IVW8OqkG0dA02UgkNaWBnV7tJweAWBYj_N8msRi4-8U' cookie not found.
[13:47:08 INF] Error from RemoteAuthentication: Correlation failed..
[13:47:08 ERR] An unhandled exception has occurred while executing the request.
Microsoft.AspNetCore.Authentication.AuthenticationFailureException: An error was encountered while handling the remote login.
 ---> Microsoft.AspNetCore.Authentication.AuthenticationFailureException: Correlation failed.
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
[13:47:08 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)'
[13:47:08 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).
[13:47:08 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
[13:47:08 INF] Start processing HTTP request GET http://192.168.1.152:8001/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0
[13:47:08 INF] Sending HTTP request GET http://192.168.1.152:8001/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0
[13:47:08 INF] Received HTTP response headers after 35.473ms - 200
[13:47:08 INF] End processing HTTP request after 35.7513ms - 200
[13:47:08 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
[13:47:08 INF] Start processing HTTP request GET http://192.168.1.152:8001/api/abp/application-localization?CultureName=zh-Hans&OnlyDynamics=True&api-version=1.0
[13:47:08 INF] Sending HTTP request GET http://192.168.1.152:8001/api/abp/application-localization?CultureName=zh-Hans&OnlyDynamics=True&api-version=1.0

By the way, if AuthServer binds to https://localhost:44300 , HttpApi.Hot binds to https://localhost:44301, and Web binds to the https://localhost:44302, everything is ok .

  • ABP Framework version: v8.2.2
  • UI Type: Angular / MVC / Blazor WASM / Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

There are a App.SelfUrl attribute at appsettings.json, This attribute does not affect the listening address of the service, so what is the function of this attribute?

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I created a app template project, build the HttpApi.Host to docker container.

I run the container. get a exception:

[07:11:21 INF] Saving external localizations...
[07:11:21 INF] Initialized all ABP modules.
[07:11:21 INF] Initializing UI Database
[07:11:21 INF] Saving healthchecks configuration to database
[07:11:21 INF] Now listening on: http://[::]:8080
[07:11:21 INF] Start processing HTTP request GET http://[::]:8080/health-status
[07:11:21 INF] Sending HTTP request GET http://[::]:8080/health-status
[07:11:21 INF] Application started. Press Ctrl+C to shut down.
[07:11:21 ERR] GetHealthReport threw an exception when trying to get report from /health-status configured with name BaaSo Health Status.
System.Net.Http.HttpRequestException: IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address. (Parameter 'hostName') ([::]:8080)
 ---> System.ArgumentException: IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address. (Parameter 'hostName')
   at System.Net.Dns.GetHostEntryOrAddressesCoreAsync(String hostName, Boolean justReturnParsedIp, Boolean throwOnIIPAny, Boolean justAddresses, AddressFamily family, CancellationToken cancellationToken)
   at System.Net.Dns.GetHostAddressesAsync(String hostNameOrAddress, AddressFamily family, CancellationToken cancellationToken)
   at System.Net.Sockets.SocketAsyncEventArgs.DnsConnectAsync(DnsEndPoint endPoint, SocketType socketType, ProtocolType protocolType)
   at System.Net.Sockets.Socket.ConnectAsync(SocketAsyncEventArgs e, Boolean userSocket, Boolean saeaCancelable)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ConnectAsync(Socket socket)
   at System.Net.Sockets.Socket.ConnectAsync(EndPoint remoteEP, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.&lt;SendCoreAsync&gt;g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.&lt;SendCoreAsync&gt;g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.&lt;SendAsync&gt;g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at HealthChecks.UI.Core.HostedService.HealthCheckReportCollector.GetHealthReportAsync(HealthCheckConfiguration configuration) in /_/src/HealthChecks.UI/Core/HostedService/HealthCheckReportCollector.cs:line 142

this is my appsettings.json:

{
    "App": {
        "SelfUrl": "http://192.168.11.121:8001",
        "MVCPublicUrl": "https://localhost:44303",
        "CorsOrigins": "://*.xxxx.cloud",
        "DisablePII": false,
        "HealthCheckUrl": "/health-status"
    },
    "ConnectionStrings": {
        "Default": "Server=172.27.21.1;Port=3306;Database=BaaSo;Uid=root;Pwd=mysql@XTC;"
    },
    "Redis": {
        "Configuration": "172.27.11.1"
    },
    "AuthServer": {
        "Authority": "http://192.168.11.121:8000",
        "RequireHttpsMetadata": false,
        "MetaAddress": "http://192.168.11.121:8000",
        "SwaggerClientId": "BaaSo_Swagger"
    },
    "StringEncryption": {
        "DefaultPassPhrase": "LbEc3rlM03dGiUvJ"
    },
    "BusinessUnits": {
        "Path": "/baaso/businessunits"
    }
}

this is my docker-compose:

 my.api:
    image: xtc/my.api:0.8.0
    container_name: my_platform_api
    restart: always
    ports:
      - 8001:8080
    networks:
      baaso:
        ipv4_address: 172.27.120.1

Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core (MySQL etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

How to change the background of this login page? I use the leptonX.

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server,MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I created a app-pro template project named as MyApp. then created a module template project named as MyModule.

The MyApp use SQLServer, but i need use MySQL at MyModule, how to implement it?

I added the Microsoft.EntityFrameworkCore.Design and Volo.Abp.EntityFrameworkCore.MySQL to the MyModule.EntityFrameworkCore.csproj, and added a DbContextFactory class.

using System.IO;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.Configuration;

namespace MyModule.EntityFrameworkCore;

public class MyModuleDbContextFactory : IDesignTimeDbContextFactory<MyModuleDbContext>
{
    public MyModuleDbContext CreateDbContext(string[] args)
    {
        var configuration = BuildConfiguration();

        var builder = new DbContextOptionsBuilder<MyModuleDbContext>()
            .UseMySql(configuration.GetConnectionString(MyModuleDbProperties.ConnectionStringName), MySqlServerVersion.LatestSupportedServerVersion);

        return new MyModuleDbContext(builder.Options);
    }

    private static IConfigurationRoot BuildConfiguration()
    {
        var builder = new ConfigurationBuilder()
            .SetBasePath(Directory.GetCurrentDirectory())
            .AddJsonFile("appsettings.json", optional: false);

        return builder.Build();
    }
}

Migrations files generated success by use dotnet ef migrations add Initial.

But how to configure the MyModule.EntityFrameworkCore to use MySQL?

Question
  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I Create a plugin with follow command:

abp new My.Plugin -t module

but i notice the .Web project use the Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared, and the .Web.Host, .Web.Unified, .AuthServer projects use the Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.

I try to update them to Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX, but nothing found at nuget.

So how to change the UI of module to Pro(LeptonX)? or abp cli has a parameter to create pro like as abp new My.Plugin -t module-pro?

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I created a plugin with follow command:

abo new My.Plugin -t module

when i run AuthServer or Web.Unified,throw a exception, tip need create dataset. So i need run 'Update-Database' to create it.

My question is how to auto create database when plugin is run?

I found some document at https://abp.io/docs/latest/framework/architecture/modularity/plugin-modules, like this:

The Plugin may check if the database tables does exists and create the tables on the application startup or migrate them if the plug-in has been updated and requires some schema changes. You can use EF Core's migration API to do that.

But how to implement it,Is there a example?

Thanks~

Showing 1 to 10 of 19 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06