Attività di "selinkoykiran"

  • ABP Framework version: v4.2.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hello ,

We use multitenancy as db per customer approach. We have different db's for different tenants, so we don't want to add TenantId column into our tenant dependent database tables . When we remove IMultiTenant interface from our tenant spesific entities , the application couldn't get tenant connection string correctly , it gives us host connection string. But when we implement IMultiTenant interface it can give us correct tenant connection string. We add some of the screenshot below with IMultiTenant usage or without it. What could be the possible problem here ? Because we can get CurrentTenant informations correctly . But when getting tenant connection string it is all wrong without IMultiTenant implementation ? Could you help about issue.

Thank you.

Hello,

I think there are misunderstandings , could we arrange a desktop sharing session and I can show you from my computer the issue , It will be more understandable I think , Is it ok ?

Thank you.

1- We use multitenancy with db per tenant approach. 2- We store all tenants and connection strings inside host database naturally 3- We have a seperate application which created with suite and this application works with our platform 4- We gave this application inside editions , for example if tenant has standard edition than we don't show anything about this application but if edition is premium tenant and users can see this application and pages 5- This application has its own ef core context and own entities , also has identity and abp spesific tables , too 6 - When we login, we login with tenant and I think when we login with tenant , the abp backend changes our connection string depends on logged in tenant connection string ? 7- After login with tenant if this application spesific entities don't implement IMultiTenant interface than we got error because of wrong connection string but the interesting thing system knows my current tenant Id but the connection string is not correct . 8- When we add IMultitTenant to these entities it resolves correctly. 9- But all abp tables don't have TenantId right ? However they could work correctly ? 10 - So why we need to add IMultiTenant interface to our spesific entities which is stored in tenant depended database already ? When we login it should be getting correct connection string , right ?

I hope it is clear. Thank you.

Hello,

We deploy our api host application into IIS we reach it with virtual directory(subdirectory) inside a web project. When we reach https://localhost/apihost it should show swagger ui we did some changes like below. But everytime we got theme error ? Could you help , thank you.

app.UseSwagger();

        app.UseAbpSwaggerUI(options =>
        {
            options.SwaggerEndpoint("/apihost/swagger/v1/swagger.json", "NMM API");
            options.RoutePrefix = "apihost";
            var configuration = context.GetConfiguration();
            options.OAuthClientId(configuration["AuthServer:SwaggerClientId"]);
            options.OAuthClientSecret(configuration["AuthServer:SwaggerClientSecret"]);
        });
        
        
  • ABP Framework version: v4.2.2
  • UI type:MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:
  • 2021-04-22 09:26:29.351 +00:00 [ERR] Connection ID "16933534600523678116", Request ID "800001a5-0000-eb00-b63f-84710c7967bb": An unhandled exception was thrown by the application. Volo.Abp.AbpException: No theme registered! Use AbpThemingOptions to register themes. at Volo.Abp.AspNetCore.Mvc.UI.Theming.DefaultThemeSelector.GetCurrentThemeInfo() at Volo.Abp.AspNetCore.Mvc.UI.Theming.DefaultThemeManager.GetCurrentTheme() at Volo.Abp.AspNetCore.Mvc.UI.Theming.DefaultThemeManager.get_CurrentTheme() at AspNetCore.Views__ViewStart.ExecuteAsync() at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderViewStartsAsync(ViewContext context) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable`1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result) at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.

Hello, Yes it works in different ports without subdirectory. I read this link related with this issue but it doesn't solve . Maybe it could be a hint for you : https://github.com/abpframework/abp/issues/6627

Hello, Steps like this :

  • I use api host with swagger endpoint normally from template.
  • I publish to IIS
  • I use subdirectory so I naturally have a route prefix for swagger ui.
  • Normally swagger ui works with default settings but when we add route preffix and change swagger endpoint theme error came.
  • By the way api call can be done but just swagger ui not working because of interesting theme error ??

There is nothing really special. Thank you.

Hello, After zoom meeting now we can see the swagger endpoint and swagger json but still when we make get request to /api/abp/api-definition endpoint there is no answer and after a lot of time of waiting it gives same error ?

Could you help ? Thank you .

Hello, Okey I can try but we have already use Volo.Abp.Swashbuckle library so we didn't need to install or upgrade Swashbuckle.AspNetCore and here I'm sharing the versions which we are using So you are offering to use Swashbuckle.AspNetCore package itself not to use Volo.Abp.Swashbuckle package, right ?

  • ABP Framework version: v4.3.0
  • UI type:MVC
  • DB provider: EF Core
  • **Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hello, I want to implement datetimepicker in razor page. I use in cshtml like below with type: date

<abp-column size="_3"> <abp-input asp-for="CreationTimeFilterMin" label="@L["MinCreationTime"].Value" type="date" /> </abp-column>

and jquery like below :

 creationTimeMin: $("#CreationTimeFilterMin").data().datepicker.getFormattedDate('yyyy-mm-dd'),

But I want to use bootstrap's type="datetime-local" , because I also want to have selectable time range besides date.

I couldn't handle this issue ? Dou you have any offer or example with datetimepicker ?

Thank you.

  • ABP Framework version: v4.3.0
  • UI type: MVC
  • DB provider: EF Core
  • **Tiered (MVC) **: yes

Hello , I have an entity which implements AuditedEntity<Guid> abp class. When generated entity from this interface automatically CreatorId, CreationTime columns generated in the database with migration. But they are not linked to AbpUser table there aren't any relation or foreign key between this entity and abpUser table. So when I want to display creator name of the entity in screen I only can get Guid CreatorId and it is useless for end user. So when I want to access creatorName property , do I have to add manually below property into my entity for create relation between AbpUser table and can include User table ?

public IdentityUser Creator { get; protected set; }

Or Is there another way to solve this thing ?

Thank you.

11 - 20 di 75
Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11