Activities of "cleverplatform"

  • ABP Framework version: v3.0.5
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace:

AbpException: Could not find the bundle file '/libs/uppy/uppy.min.css' from IWebContentFileProvider Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelperContext context, TagHelperOutput output, List bundleItems, string bundleName)


Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelperContext context, TagHelperOutput output, List bundleItems, string bundleName)

Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleTagHelperService<TTagHelper, TService>.ProcessAsync(TagHelperContext context, TagHelperOutput output) Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, int i, int count)

AspNetCore.Pages_FileManagement_Index.b__37_0()

Microsoft.AspNetCore.Mvc.Razor.RazorPage.RenderSectionAsyncCore(string sectionName, bool required) AspNetCore.Themes_Lepton_Layouts_Application_Default+<>c__DisplayClass28_0+<b__0>d.MoveNext() ...

Steps to reproduce the issue: <br>

  • creating a new project using abp suite
  • build solution in VS
  • install FileManagement module in abp.suite
  • build, run migration and run solution
  • after start go to Menu->Administration->FileManagement
  • issue occured

Hi thanks for a response,

  1. I think when I used abp.suite and I selected 'File Management' module on Modules page, expecting that this action will add all necessary for my project. even registration npm packages. Otherwise It doen't make sense to install only Nuget package for File management module when you are expecting user manual interaction. - I think from that point of view it is bug
  2. Also I don't get meaning Modules page in abp.suite in case that I don't know which moduies were already included in my project - correct me - but it is quite confusing when im using suite generator which created a new project using project template with already installed modules but i need to dig them from documentation/project which one there were included

Hi, I implemented as you suggested, UI of File Management has been displayed, but nothing was working on fronend and there was js errors loged in browsers console. Did I missed anything? I read whole documentation to this, no other setting I found

Is here anybody for who this module is working? I expected that this simple module should be pretty straight forward to test your framework,

Could you pls. navigate me to right direction? could you pls. prepare sample for this module? It will be really helpull even for another commercial modules which aren't included in startup template and we can avoid situation that something is necessary to execute manually or set diferently

thanks

Hi could you navigate me how to get logs ? - did you mean logs from abp suite or another specific detailed logs related to error?

As I said I added missing files manually, UI displayed content but when I clicked on any action on component errors are occured. Im not able to validate source code.

It will be really nice for these commercial modules (specially when you didn't activate them in some default template) to prepare separated samples specially when there can be specific issues and specific step. That save time on both sides.Otherwise I don't think any additional value why I bough commercial licence when I need to re-write whole existing module (FileManagement in that case)

Let me know

Hallo,

I know where the documentation is located (even your link doesn't working). I have read it few times. there is no information about issues I got.

This support doesn't solve my problem! Are you sure that link above solve situation in FIleManagement module? there are no sections about 'errors', etc.

Where I could see a functional example using this module ?

I solved using this module by myself.

Correct instructions should be in your documentation:

  1. if you want to use FileManagement you MUST install Blob Storing per documentation
  2. if you are using VS2019 you can install npm modules by right clicking on package.json file and choose 'Restore Packages'

Core of problem was that Blob Storing system has not been activated for solution.

Hello, I want to ask you how create records in Filemagement Module in FmDirectoryDescriptors table by accepting Multi-tenancy from application code.

from application code Im calling: _directoryDescriptorAppService.CreateAsync(new CreateDirectoryInput() { Name = project.Name, ParentId = rootId })

,but im not sure how to define/populate tenant id even that this attribure already exists in FmDirectoryDescriptors table.

in database this property is not populate when I created folder under tenant, like on picture below

also when im trying to create a new filemanagement directory from UI on FileManagement UI - folder is created but TenantID is not populated.

did I miss anything in confguration of this module?

thanks

  • ABP Framework version: v3.0.5
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v4.2.1

  • UI type: MVC

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): no

  • Exception message and stack trace:

  • System.InvalidOperationException: 'The entity type 'TenantConnectionString' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.'

  • This exception was originally thrown at this call stack: [External Code] XXX.XXXSeed.SeedAsync(Volo.Abp.Data.DataSeedContext) in XXXSeed.cs [External Code] XXX.Data.ShopSplitterDbMigrationService.SeedDataAsync(Volo.Saas.Tenants.Tenant) in XXXDbMigrationService.cs [External Code] XXXData.XXXDbMigrationService.MigrateAsync() in XXXDbMigrationService.cs [External Code] XXX.DbMigrator.DbMigratorHostedService.StartAsync(System.Threading.CancellationToken) in DbMigratorHostedService.cs [External Code] ShopSplitter.DbMigrator.Program.Main(string[]) in Program.cs ... [Call Stack Truncated]

  • Steps to reproduce the issue:

  • create project with "abp new XXX"

  • build solution in VS and execute XXX.DBMigration - initial migration were created

  • run solution / login / logout /close app

  • in solution create a new entity "Book" and create add-migration and update-database - new entity was added into Migration and into database

  • create seed for a new entity "Book" in Domain project and have only this code public async Task SeedAsync(DataSeedContext context) { using (_currentTenant.Change(context?.TenantId)) { if (await _bookRepository.GetCountAsync() > 0) { return; } } }

  • run XXX.DBMigration and on method _bookRepository.GetCountAsync is logged error: System.InvalidOperationException: 'The entity type 'TenantConnectionString' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.'

Could you investigate that - I simulated that 3 times in separated project from scratch thanks Erik

Hi, here are details - also i simulated it again today with a new version CLI 4.2.2, putting again detailed steps:

  1. CMD: abp new BookStore

  2. open solution BookStore.sln in VS -> rebuild -> run BookStore.DbMigrator - all ok - initial migration has been created + database created in SQL server (SQL Server 2014)

  3. created Book entity in domain + add into db.context + add additional information into BookStoreDbContextModelCreatingExtensions about book entity + created BookSeed (all changes in code i put below) :

    • Book Class: public class Book : FullAuditedAggregateRoot<Guid>, IMultiTenant { public Guid? TenantId { get; set; } [CanBeNull] public Tenant Tenant { get; set; } public string StoreName { get; set; } [Column(TypeName = "nvarchar(4000)")] public string Description { get; set; } [Column(TypeName = "nvarchar(MAX)")] public string Html { get; set; } protected Book() { } public Book(string storeName, Guid? tenantId) { StoreName = storeName; TenantId = tenantId; } }

    • added in BookStoreDbContext.cs: public DbSet<Book> Books { get; set; }

    • BookStoreConsts: public static class BookStoreConsts { public const string DbTablePrefix = "App"; public const string DbSchema = "bookstore"; }

    • added in BookStoreDbContextModelCreatingExtensions.cs builder.Entity<Book>(b => { b.ToTable(BookStoreConsts.DbTablePrefix + "Books", BookStoreConsts.DbSchema); b.ConfigureByConvention(); });

    • BooksSeed in Domain: public class BooksSeed : IDataSeedContributor,ITransientDependency { private readonly IRepository<Book, Guid> _bookRepository; public BooksSeed(IRepository<Book, Guid> bookRepository) { _bookRepository = bookRepository; } public async Task SeedAsync(DataSeedContext context) { if (await _bookRepository.GetCountAsync() <= 0) { //await _bookRepository.InsertAsync(new Book("book_name", null), autoSave: true); } } } )

  4. add migration using -> Add-Migration "books" + Update-Database - migration applied succesfully in migration folder and also into database

  5. run BookStore.DbMigrator - for applying a new BookSeed -> error occured:

System.InvalidOperationException: 'The entity type 'TenantConnectionString' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.'

Hi not sure if you have any progress with this issue but i found possible solution by using this fragment in "XXXDbContextModelCreatingExtensions.cs"

    builder.Entity<TenantConnectionString>().HasKey(lc => new { lc.TenantId, lc.Name});
    

could you pls. confirm if that is posible solution? or it is an issue on framework side, or should I set something differently.

thanks, let me know Erik

Showing 1 to 10 of 32 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11