Hello We fixed this problem in a slightly different way using the AppUrlService.appRootUrl service property. But we are still wondering if there are ways to fix this problem without modifying the code? Or should we expect a fix for this problem in future versions of ASP.NET Zero?
Thanks Asp.Net Zero Support
We have now tried adding that attribute, see below. No change experienced, still same issue.
[DisableAuditing]
public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = new CancellationToken())
{
…
Any other suggestions or ideas?
@ismcagdas
Just want to let you know I have fixed my upgrade problem. Did a upgrade from 5.1.0 to 5.2.0.
Thanks, Henrik
@ismcagdas
Yes I have regenerate service-proxies by doing "../angular/nswag/refresh.bat" and have also modified service-proxies.module.ts like your commit.
@ismcagdas
Thanks. I have made the necessary changes. The solution builds and i can go to localhost:4200 and i see the spinner but then nothing happens. In chrome developer the last successful request is to GetCurrentLoginInformations, then it hangs at <a class="postlink" href="ws://localhost:4200/sockjs-node/450/g15t5ui3/websocket">ws://localhost:4200/sockjs-node/450/g15t5ui3/websocket</a>.
@ismcagdas , thanks. I have upgraded abp-ng2-module to v2. I get some errors.
In root.modul.ts "ABP_HTTP_PROVIDER" is not found when
import { AbpModule , ABP_HTTP_PROVIDER } from '@abp/abp.module';
providers: [
ABP_HTTP_PROVIDER,
In tenant-settings.component.ts and change-profile-picture-modal.component.ts should i replace 7
import { IAjaxResponse } from '@abp/abpHttp'; with
import { HttpInterceptor } from '@angular/common/http';
and replace const ajaxResponse = <IAjaxResponse>JSON.parse(response); with HttpInterceptor?
Can I download the above files somewhere or can past what to change. I am unsure what to change.
Thanks, Henrik
Add and configure DbContext in SchemaStagingServiceEntityFrameworkCoreModule public override void PreInitialize() { Configuration.ReplaceService<IEfCoreTransactionStrategy, DbContextEfCoreTransactionStrategy>(DependencyLifeStyle.Transient); if (!SkipDbContextRegistration) { Configuration.Modules.AbpEfCore().AddDbContext<SchemaStagingServiceDbContext>(configuration => { SchemaStagingServiceDbContextConfigurer.Configure(configuration.DbContextOptions, configuration.ConnectionString); }); } }
Add and configure DbContext in StagingInfrastructureModule public override void PreInitialize() { Configuration.ReplaceService<IEfCoreTransactionStrategy, DbContextEfCoreTransactionStrategy>(DependencyLifeStyle.Transient); if (!SkipDbContextRegistration) { Configuration.Modules.AbpEfCore().AddDbContext<StagingDbContext>(configuration => { StagingDbContextConfigurer.Configure(configuration.DbContextOptions, "Server=localhost; Database=Staging; Trusted_Connection=True; MultipleActiveResultSets=True;"); }); } }
@rvanwoezik Thanks for your snippit for the url rewrite.
I found that there was a problem with the routing because the server that is hosting the application is in another domain that is not trusted. This caused some redirects to fail.
Thanks for the quick reply.