Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "deltavision"

Hi,

Version: 9.0.1, ASP NET CORE, MVC

With reference to #7666

Started using VS2022.

  • and the "old" Web Compiler from Mads Kristensen (less -> css) is no longer supported. https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebCompiler

But is continued by Jason Moore at: https://marketplace.visualstudio.com/items?itemName=Failwyn.WebCompiler64&ssr=false#overview

Is that also what you are using / recommend?

Regarding Bundler & Minifier - is that used anymore? https://marketplace.visualstudio.com/items?itemName=MadsKristensen.BundlerMinifier

Is that not handled by "gulp" ?

Hi,

  • 9.0.1, MVC, .NET CORE

A Hangfire job sends out mails to users. With about 100 mails to be send - system fails, after approx 20 mails.

I suppose it is our SMTP provider, that returns the error - but how can we avoid this? Is it possible to close the connection between sending each email? And would this solve the issue?

Hi,

9.0.1 MVC .NET CORE

Just a follow-up on #7719

We are using Microsoft 365 and when receiving mails from system - we still get "The Linked image cannot be displayed..." on the logo file.

The url: https://WEBSITE/TenantCustomization/GetTenantLogo?skin=light&tenantId=2 Returns the SVG file - and that is maybe the issue.

Changed to a base64 image: "data:image/svg+xml;base64,PD94bWwgd....."

Still getting "The Linked image cannot be displayed..."

Changed to png - base64 image. And now it is working :-)

Is this issue only related to Outlook?

v9.0.1 - MVC - .NET CORE

If I connect organization to a role instead of directly to the user - the call to "UserManager.GetOrganizationUnits" does not return any Orgnaizations. Is that intended?

If so is there another way to get a users organizations - if connected via a role?

Hi,

using: Core, MVC, jQuery project - v9.0.1

With EF / Net Core 3.0 - it is not possible as before to use extension method - e.g. for filtering.

Specific we have a string extension method - that checks if a string contains any string from a list/array of strings

        public static bool ContainsAny(this string str, params string[] values)
        {
            if (!string.IsNullOrEmpty(str) && values.Length > 0)
            {
                foreach (string value in values)
                {
                    if (str.ToUpper().Contains(value.ToUpper()))
                        return true;
                }
            }

            return false;
        }

used like this (searchWords variable is a string array)

            var query = _customerRepository
                 .GetAll()
                 .WhereIf(
                    ! input.Filter.IsNullOrWhiteSpace(),
                    c => 
                        c.CustomerName.ContainsAny(searchWords) );
                        
                        


as of Core 3.0 (EF) - this can not be converted to SQL. So we have to do a ToList() or equivalent - to get the "entire" result from DB and then start filtering...

any ideas on how to be able to use extension methods directly on the query / where clause ?

Hi,

using: Core, MVC, jQuery project - v7.2.2

Reference to #5755 - Specific the last comment.

We have a Hangfire job that is run for each tenant. When in UnitOfWork for the specific tenant - call to methods that are authorized fails (No user logged in)

  • As suggested in #5755 - run a job as a user or role?
  • "Disable" authorized check for hangfire job called through host.

Hi,

using: Core, MVC, jQuery project - v7.2.2

We wish to implement Hangfire in a project - but have som questions :-)

Need a background job running for each tenant - on a scheduled basis. (RecurringJob.AddOrUpdate) Should always be running - that is when the web site starts, the job should be "created" and start running. So no "manual" trigger to start job.

In the ....Web.Core project

  • Webconst - HangfireDashboardEnabled set to true
  • In this project should I uncomment "Configureation.BackgroundJobs.UseHangfire() in the ... WebCoreModule?

In the ...Web.Host project

  • Startup.cs - no changes made - it is checking the WebConst HangfireDashboardEnabled - OK?

**In the ...Web.Mvc project **

  • Startup.cs - no changes made - it is checking the WebConst HangfireDashboardEnabled - OK?

Defining / starting the Hangfire job From searching I can see that often jobs are created / started in the PostInitialize - eg. in ...WebMvcModule of the ...Web.Mvc project Is this the correct approach?

Or should we make a new controller? and then how do we trigger the job?

Should we create a class like below - based on BackgroundJob - and make an Execute method?

public class TestStatusService : BackgroundJob<int>, ITransientDependency

hoping for some "best practice" input :-)

Hi,

using: Core, MVC, jQuery project - v7.2.2

is it possilble with: abp.message.info(message);

to show "message" with line breaks?

I have tried with \n
\r\n
<br> <br/>

but it is not working

Hi,

using: Core, MVC, jQuery project - v7.2.2

How can you change a tenant from in-host to separate database? From Tenant menu in Host - not possible to change to/from in-host.

So is the only way:

  • Create a new tenant
  • Move data (somehow...)
  • Deleted old tenant
  • Change tenantID on new tenant DB to match the new tenantID

And - to move the tenant to separate database:

  1. Backup host DB
  2. Restore the host DB backup to new tenant DB
  3. Remove other tenants data in the new tenant DB, specific on user defined tables.
  4. Which tables "Abp..." can you empty or must keep tenant data?
  5. Which tables "App..." can you empty or must keep tenant data?

Or is there a tool for this tenant change/move :-) ?

Hi,

using: Core, MVC, jQuery project - v7.2.2

Is it possible to keep sub-menu expanded (dropped-down) when selecting another menu-item outside the sub-menu?

Showing 11 to 20 of 41 entries