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

Activities of "muhittincelik"

Question

Hi,

I have some questions about version management.

I created a repository at Github (private). And i copied all 8.5 version files. And i created 2 branch named dev and aspnetzero. i edited some common files at dev branch. I copied new 8.6 to aspnetzero branch and merge into dev branch. I resolved the conflicts on common files.

Everything is ok now. My code upgraded to 8.6.

When i want to upgrade my code to 8.7; i copied all 8.7 files to aspnetzero branch again with overwrite. I merged again aspnetzero branch into dev branch and this step overwrites all my developments on dev branch.

What is wrong ?

Muhittin

Hi,

I want to check running jobs for dont run twice. How can i do that ?

If we set hangfire for background job processor, i think we can not use backgroundjobinfo and other tables because it is empty when jobs running on hangfire.

Hi,

I created a new role and a new user.

I added permission to role.

User can go entities if i gave this role to him. But when i gave this role from organizational unit he can not go entities. Also can not see this module in menu.

I used 8.1 Core Angular..

public class ScanWinSQLInstanceStagesJob : BackgroundJob<ScanWinSQLInstanceStagesJobArgs>, ITransientDependency
    {
        private readonly IRepository<WindowsHostStage, long> _windowsHostStageRepository;
        private readonly IRepository<WinSQLInstanceStage, long> _winSQLInstanceStageRepository;
        private readonly IObjectMapper _objectMapper;

        public ScanWinSQLInstanceStagesJob(
            IRepository<WindowsHostStage, long> windowsHostStageRepository,
            IRepository<WinSQLInstanceStage, long> winSQLInstanceStageRepository,
            IObjectMapper objectMapper
            )
        {
            _windowsHostStageRepository = windowsHostStageRepository;
            _winSQLInstanceStageRepository = winSQLInstanceStageRepository;
            _objectMapper = objectMapper;
        }

        [UnitOfWork]
        public override void Execute(ScanWinSQLInstanceStagesJobArgs args)
        {
            var windowsHostStage = _windowsHostStageRepository.Get(args.WindowsHostStageId);
            List<GetWMIWinSQLInstanceOutput> winSQLInstances = GetWMI_WinSQLInstances.EnumerateSQLInstances(windowsHostStage.Name);

            foreach (GetWMIWinSQLInstanceOutput winSQLInstance in winSQLInstances)
            {
                var _winSQLInstanceStage = _winSQLInstanceStageRepository.FirstOrDefault(s => s.Hostname == winSQLInstance.Hostname & s.InstanceName == winSQLInstance.InstanceName);

                if (_winSQLInstanceStage != null)
                {
                    _winSQLInstanceStageRepository.Update(_winSQLInstanceStage);
                }
                else
                {
                    _winSQLInstanceStageRepository.Insert(_objectMapper.Map<WinSQLInstanceStage>(winSQLInstance));
                }
            }
        }
    }
[Serializable]
    public class ScanWinSQLInstanceStagesJobArgs
    {
        public long WindowsHostStageId { get; set; }
    }
var windowsHostStage = _windowsHostStageRepository.GetAllList();

            foreach (WindowsHostStage item in windowsHostStage)
            {
                await _backgroundJobManager.EnqueueAsync<ScanWinSQLInstanceStagesJob, ScanWinSQLInstanceStagesJobArgs>(
                new ScanWinSQLInstanceStagesJobArgs
                {
                    WindowsHostStageId = item.Id
                });
            }

I got the following error when insert new record. It can update records.

WARN 2019-12-25 15:20:58,634 [er #1] Hangfire.AutomaticRetryAttribute - Failed to process the job '76': an exception occurred. Retry attempt 4 of 10 will be performed in 00:02:24. Abp.AbpException: Can not set TenantId to 0 for IMustHaveTenant entities!

Hi,

I got the following errors at public site with default installation.

10Refused to apply style from '<URL>' because its MIME type ('') is not a supported stylesheet MIME type, and strict MIME checking is enabled. frontend-libs.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) (index):458 Uncaught TypeError: Cannot set property 'defaultSourceName' of undefined at (index):458 frontend-metronic.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) owl.carousel.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) GetScripts?_v=637126925803952604:1409 Uncaught TypeError: Cannot read property 'unspecifiedClockProvider' of undefined at GetScripts?_v=637126925803952604:1409 at GetScripts?_v=637126925803952604:1411 frontend-metronic.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) (index):469 Uncaught ReferenceError: $ is not defined at (index):469 jquery.fancybox.pack.js:46 Uncaught ReferenceError: jQuery is not defined at jquery.fancybox.pack.js:46 owl.carousel.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) (index):478 Uncaught ReferenceError: $ is not defined at (index):478

Question

Failed to load resource: the server responded with a status of 404 (Not Found)

:22742/AbpUserConfiguration/GetAll?d=1573555840339:1

In anybody integrate devexpress reporitng and aspnetzero core angular ?

I added reporitng feature to my solution but i got DXXRDV not found error. Devexpress said that "this is a backend problem, your backend can not route."

Muhittin

Hi,

I created a list data screen with core&AngularJS. I copied html and ts files from admin/users component to /main.

At data list table enter key not working at filter textbox. But at user list screen this key working. What is wrong. I used the following code.

<div class="row">
                        <div class="col-xl-8">
                            <div class="form-group m-form__group align-items-center">
                                <div class="input-group">
                                    <input [(ngModel)]="filterText" name="filterText" autoFocus class="form-control m-input" [placeholder]="l('SearchWithThreeDot')" type="text">
                                    <span class="input-group-btn">
                                                    <button (click)="getFeedSources()" class="btn btn-primary" type="submit"><i
                                                            class="flaticon-search-1"
                                                            [attr.aria-label]="l('Search')"></i></button>
                                            </span>
                                </div>
                            </div>
                        </div>

                        <div class="col-xl-4 text-right">
                            <button name="RefreshButton" class="btn btn-primary" (click)="refresh()"><i
                                                    class="la la-refresh"></i> {{'Refresh' | localize}}</button>
                        </div>
                    </div>
Question

Hi,

Can you give me an example code for job creation with hangfire. Which triggered every minute and log "Hello World" to log file. And starting with application startup.

Thanks

I have also this problem.

Showing 11 to 20 of 28 entries