Base solution for your next web application
Open Closed

Abp.AbpException: Unknown filter name: MayHaveTenant. Be sure this filter is registered before #9371


User avatar
0
benjamim created

I'm using the API version: v8.9.2.0 | Client: v8.9.2.0 [20200713]

Locally it works correctly I can debug and everything, the problem is only when I publish on iis

Abp.AbpException: Unknown filter name: MayHaveTenant. Be sure this filter is registered before. at Abp.Domain.Uow.UnitOfWorkBase.GetFilterIndex(String filterName) at Abp.Domain.Uow.UnitOfWorkBase.SetFilterParameter(String filterName, String parameterName, Object value) at Abp.Domain.Uow.UnitOfWorkBase.SetTenantId(Nullable`1 tenantId, Boolean switchMustHaveTenantEnableDisable) at Abp.Domain.Uow.UnitOfWorkBase.Begin(UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkManager.Begin(UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkInterceptor.InterceptSynchronous(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.BackgroundJobStoreProxy.GetWaitingJobs(Int32 maxResultCount) at Abp.BackgroundJobs.BackgroundJobManager.DoWork() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Threading.BackgroundWorkers.PeriodicBackgroundWorkerBase.Timer_Elapsed(Object sender, EventArgs e)


2 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    hi

    When you deploy the app to iis, the environment is production, you can check whether the correct configuration is used. (appsettings.json)

  • User Avatar
    0
    benjamim created

    I had put * to work on all domains, but need to put domains

    wrong!!!

    "App": { "ServerRootAddress": "http://localhost:9901/", "ClientRootAddress": "http://localhost:4200/", "CorsOrigins": "*" }

    Right!!

    "App": { "ServerRootAddress": "http://localhost:9901/", "ClientRootAddress": "http://localhost:4200/", "CorsOrigins": "http://domain1.com,http://domain2.com" }