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

Activities of "marble68"

I too get an error. V11 MVC Jquery

    System.MissingMethodException
      HResult=0x80131513
      Message=Method not found: 'System.Collections.Generic.ICollection`1<System.String> TimeZoneConverter.TZConvert.get_KnownWindowsTimeZoneIds()'.
      Source=inzibackend.Core
      StackTrace:
       at inzibackend.Timing.TimeZoneService.GetWindowsTimezones() in C:\Dev\Surpathv2\src\inzibackend.Core\Timing\TimeZoneService.cs:line 76
       at inzibackend.Timing.TimingAppService.<GetTimezoneInfos>d__4.MoveNext() in C:\Dev\Surpathv2\src\inzibackend.Application\Timing\TimingAppService.cs:line 50

      This exception was originally thrown at this call stack:
        inzibackend.Timing.TimingAppService.GetTimezoneInfos(Abp.Configuration.SettingScopes) in TimingAppService.cs

This is the function that throws:

    return TZConvert.KnownWindowsTimeZoneIds.OrderBy(tz => tz)
                .Select(tz => new NameValueDto
                {
                    Value = tz,
                    Name = TZConvert.GetTimeZoneInfo(tz).DisplayName
                }).ToList();
                

Haven't resolved it yet.

I too get an error. V11 MVC Jquery

    System.MissingMethodException
      HResult=0x80131513
      Message=Method not found: 'System.Collections.Generic.ICollection`1<System.String> TimeZoneConverter.TZConvert.get_KnownWindowsTimeZoneIds()'.
      Source=inzibackend.Core
      StackTrace:
       at inzibackend.Timing.TimeZoneService.GetWindowsTimezones() in C:\Dev\Surpathv2\src\inzibackend.Core\Timing\TimeZoneService.cs:line 76
       at inzibackend.Timing.TimingAppService.<GetTimezoneInfos>d__4.MoveNext() in C:\Dev\Surpathv2\src\inzibackend.Application\Timing\TimingAppService.cs:line 50

      This exception was originally thrown at this call stack:
        inzibackend.Timing.TimingAppService.GetTimezoneInfos(Abp.Configuration.SettingScopes) in TimingAppService.cs

This is the function that throws:

    return TZConvert.KnownWindowsTimeZoneIds.OrderBy(tz => tz)
                .Select(tz => new NameValueDto
                {
                    Value = tz,
                    Name = TZConvert.GetTimeZoneInfo(tz).DisplayName
                }).ToList();
                

Haven't resolved it yet.

Solution?

Answer

FWIW - that's exactly what I do. I use GitHub actions, and I as part of my powershell build script, I build and run the migrator.

Also - might be germane to your needs: https://theitbros.com/powershell-gui-for-scripts/

How to make a GUI for a powershell script.

Note, I think each version would probably want a script for doing the update with rollback upon failure.

Your PS script could dump the database, flip IIS to maintenance page, copy the folder with a rollback name while migrations are applied, deploy into the folder, smoke test the new site on migrations complete.

Or some variation of that.

I'd frankly do 3 scripts - a backup and rollback first - make sure those are bulletproof.

Sandwich your update between them. If anything goes wrong - revert.

FWIW, if you're doing windows - I'd do powershell scripts for the setup. Make sure servers have remote management enabled, then you can do remote powershell on both boxes.

With that you could deploy MSSQL and configure it - then setup IIS etc and deploy the site.

For updates, I'd suggest you setup a "deployment" server in the cloud, then use github actions to build your deployment package- with the script updating the versions in a json file provided by a static URL.

Then, you could ping your deployment server one a regular basis and compare returned version to installed version, and alert admin for minor / major updates.

Your job could even download your updated scripts & builds and stage them for deployment during maintenance window.

Should be about 2 to 5 days worth of dev, testing, and documentation for a minimally viable solution.

FWIW - if you log in as host, the TenantId is null.

I'd just create a new tenant then login with that admin. If clean database, should be tenantid 2

This is what I'm doing now - Ok, great - but I need to add that TenantId to the DTOs and Entity as well I guess; unless I specify it in the rad tool.

ok, Thanks.

I think this ticket may have pointed me in the right direction: https://support.aspnetzero.com/QA/Questions/10593/Access-of-multi-tenant-transaction-data

In effect, disable the tenant filter?

This maybe the best approach for empowering host to work with tenant specific entities across the board.

Testing -

Showing 31 to 40 of 170 entries