yes, it's a CORS error, I ran this command: curl -i -X OPTIONS https://localhost:44381/api/app/ethnicities -H 'Origin: http://localhost:5173' -H 'Access-Control-Request-Method: GET'
and got C:\Users\songh>curl -i -X OPTIONS https://localhost:44381/api/app/ethnicities -H "Origin: http://localhost:5173" -H "Access-Control-Request-Method: GET" HTTP/1.1 405 Method Not Allowed Transfer-Encoding: chunked Allow: GET, HEAD, POST Server: Microsoft-IIS/10.0 X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN X-Correlation-Id: 3880f62679854d47a73e1b5cff09a43c X-SourceFiles: =?UTF-8?B?RDpcZ2l0XHRhcHAtOVxzcmNcVGFwcC5XZWJcYXBpXGFwcFxldGhuaWNpdGllcw==?= Date: Tue, 08 Apr 2025 23:14:45 GMT
the default configuration in my project is { "App": { "SelfUrl": "https://localhost:44381", "DisablePII": false, "HealthCheckUrl": "/health-status" },
I wanted to add CorsOrigins because we've created a React project and wanted to use some of the API endpoints of the abp project.
I changed the settings to
{ "App": { "SelfUrl": "https://localhost:44381", "CorsOrigins": "http://localhost:5173", -- this is the react project "DisablePII": false, "HealthCheckUrl": "/health-status", },
however, it didn't work. what else should I do?
We want to use the host admin to manage all tenant data, for example, each tenant has their users, surveys and survey answers from users, the tenant admins can manage these data; we want to enable the host admin to manage all users, surveys, survey answers from the host site Is there a recommended way to implement this with ABP? We could implement it by writing our own data repositories, but it feels like there might be an easier way.
I have just sent you an email. thx
How did it suddenly stop working? We had a functional 9.1.0 build that was working without errors.
This is a serious / important question. I had a fully deployed system that stopped working due to this issue.
The system has a requirement to have high availability.My customer will not accept this type of architecture whereby the site availability is dependent on a third party.
@ABP - Do you agree? Do you think a chance is required here?
We understand that sometimes issues are inevitable. We would just like to know what we can do on our side to prevent future impacts. We're using Azure App Service; would backing up the previous environment and then swapping allow us to recover on our side even if the ABP NuGet server becomes unreachable? it's very important for us to keep our site available for our customers. thanks!
We understand that sometimes issues are inevitable. We would just like to know what we can do on our side to prevent future impacts. We're using Azure App Service; for example, would backing up the previous environment and then swapping allow us to recover on our side even if the ABP NuGet server becomes unreachable? it's very important for us to keep our site available for our customers. thanks!
hi, thanks, this is urgent because the site went down.
unregistered version of Eziriz's ".NET Reactor"!Check the docs before asking a question: https://abp.io/docs/latest
Check the samples to see the basic tasks: https://abp.io/docs/latest/samples
The exact solution to your question may have been answered before, and please first use the search on the homepage.
Provide us with the following info:
🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration
button.
how can I fix it?
2025-03-19 00:21:58.888 +00:00 [Fatal] Host terminated unexpectedly!
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Exception: This assembly is protected by an unregistered version of Eziriz's ".NET Reactor"! This assembly won't further work.
at RWRSvaYWUgtDDvQ8cTo.ssDIC8YfDv9AgSxdpVd.kC3x8bo00G()
at Volo.Abp.Identity.AbpIdentityHttpApiModule..ctor()
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
at System.Activator.CreateInstance(Type type)
at Volo.Abp.Modularity.ModuleLoader.CreateAndRegisterModule(IServiceCollection services, Type moduleType)
at Volo.Abp.Modularity.ModuleLoader.CreateModuleDescriptor(IServiceCollection services, Type moduleType, Boolean isLoadedAsPlugIn)
at Volo.Abp.Modularity.ModuleLoader.FillModules(List1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.AbpApplicationBase.LoadModules(IServiceCollection services, AbpApplicationCreationOptions options) at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action
1 optionsAction)
at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action
1 optionsAction)
at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action
1 optionsAction)
at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action1 optionsAction) at Tapp.Web.Program.Main(String[] args) in D:\git\tapp-9\src\Tapp.Web\Program.cs:line 57 2025-03-19 00:28:34.703 +00:00 [Information] Starting web host. 2025-03-19 00:28:35.717 +00:00 [Fatal] Host terminated unexpectedly! System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: This assembly is protected by an unregistered version of Eziriz's ".NET Reactor"! This assembly won't further work. at RWRSvaYWUgtDDvQ8cTo.ssDIC8YfDv9AgSxdpVd.kC3x8bo00G() at Volo.Abp.Identity.AbpIdentityHttpApiModule..ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) --- End of inner exception stack trace --- at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type) at Volo.Abp.Modularity.ModuleLoader.CreateAndRegisterModule(IServiceCollection services, Type moduleType) at Volo.Abp.Modularity.ModuleLoader.CreateModuleDescriptor(IServiceCollection services, Type moduleType, Boolean isLoadedAsPlugIn) at Volo.Abp.Modularity.ModuleLoader.FillModules(List
1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources)
at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources)
at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources)
at Volo.Abp.AbpApplicationBase.LoadModules(IServiceCollection services, AbpApplicationCreationOptions options)
at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action
1 optionsAction)
at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action
1 optionsAction)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action
1 optionsAction)
at Tapp.Web.Program.Main(String[] args) in D:\git\tapp-9\src\Tapp.Web\Program.cs:line 57
2025-03-19 00:32:25.788 +00:00 [Information] Starting web host.
2025-03-19 00:32:33.338 +00:00 [Fatal] Host terminated unexpectedly!
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Exception: This assembly is protected by an unregistered version of Eziriz's ".NET Reactor"! This assembly won't further work.
at RWRSvaYWUgtDDvQ8cTo.ssDIC8YfDv9AgSxdpVd.kC3x8bo00G()
at Volo.Abp.Identity.AbpIdentityHttpApiModule..ctor()
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
at System.Activator.CreateInstance(Type type)
at Volo.Abp.Modularity.ModuleLoader.CreateAndRegisterModule(IServiceCollection services, Type moduleType)
at Volo.Abp.Modularity.ModuleLoader.CreateModuleDescriptor(IServiceCollection services, Type moduleType, Boolean isLoadedAsPlugIn)
at Volo.Abp.Modularity.ModuleLoader.FillModules(List1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.AbpApplicationBase.LoadModules(IServiceCollection services, AbpApplicationCreationOptions options) at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action
1 optionsAction)
at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action
1 optionsAction)
at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action
1 optionsAction)
at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action1 optionsAction) at Tapp.Web.Program.Main(String[] args) in D:\git\tapp-9\src\Tapp.Web\Program.cs:line 57 2025-03-19 00:34:02.955 +00:00 [Information] Starting web host. 2025-03-19 00:34:04.312 +00:00 [Fatal] Host terminated unexpectedly! System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: This assembly is protected by an unregistered version of Eziriz's ".NET Reactor"! This assembly won't further work. at RWRSvaYWUgtDDvQ8cTo.ssDIC8YfDv9AgSxdpVd.kC3x8bo00G() at Volo.Abp.Identity.AbpIdentityHttpApiModule..ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) --- End of inner exception stack trace --- at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type) at Volo.Abp.Modularity.ModuleLoader.CreateAndRegisterModule(IServiceCollection services, Type moduleType) at Volo.Abp.Modularity.ModuleLoader.CreateModuleDescriptor(IServiceCollection services, Type moduleType, Boolean isLoadedAsPlugIn) at Volo.Abp.Modularity.ModuleLoader.FillModules(List
1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources)
at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources)
at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources)
at Volo.Abp.AbpApplicationBase.LoadModules(IServiceCollection services, AbpApplicationCreationOptions options)
at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action
1 optionsAction)
at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action
1 optionsAction)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action
1 optionsAction)
at Tapp.Web.Program.Main(String[] args) in D:\git\tapp-9\src\Tapp.Web\Program.cs:line 57
sorry do you mean this interface? I didn't create a new controller, I just created the CRUD pages using abp suite public partial interface ITappProjectsAppService { //Write your custom code here... }
public class TappProjectsAppService : TappProjectsAppServiceBase, ITappProjectsAppService
{
//<suite-custom-code-autogenerated>
public TappProjectsAppService(ITappProjectRepository tappProjectRepository, TappProjectManager tappProjectManager)
: base(tappProjectRepository, tappProjectManager)
{
}
//</suite-custom-code-autogenerated>
//Write your custom code...
}
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Threading.Tasks; using System.Linq.Dynamic.Core; using Microsoft.AspNetCore.Authorization; using Volo.Abp; using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Services; using Volo.Abp.Domain.Repositories; using Tapp.Permissions; using Tapp.DataHub.TappProjects;
namespace Tapp.DataHub.TappProjects {
[Authorize(TappPermissions.TappProjects.Default)]
public abstract class TappProjectsAppServiceBase : TappAppService
{
protected ITappProjectRepository _tappProjectRepository;
protected TappProjectManager _tappProjectManager;
public TappProjectsAppServiceBase(ITappProjectRepository tappProjectRepository, TappProjectManager tappProjectManager)
{
_tappProjectRepository = tappProjectRepository;
_tappProjectManager = tappProjectManager;
}
public virtual async Task<PagedResultDto<TappProjectDto>> GetListByTappProgramIdAsync(GetTappProjectListInput input)
{
var tappProjects = await _tappProjectRepository.GetListByTappProgramIdAsync(
input.TappProgramId,
input.Sorting,
input.MaxResultCount,
input.SkipCount);
return new PagedResultDto<TappProjectDto>
{
TotalCount = await _tappProjectRepository.GetCountByTappProgramIdAsync(input.TappProgramId),
Items = ObjectMapper.Map<List<TappProject>, List<TappProjectDto>>(tappProjects)
};
}
public virtual async Task<PagedResultDto<TappProjectDto>> GetListAsync(GetTappProjectsInput input)
{
var totalCount = await _tappProjectRepository.GetCountAsync(input.FilterText, input.Name, input.Country, input.State, input.Region, input.Municipality, input.TimeZoneMin, input.TimeZoneMax, input.Description, input.Tags);
var items = await _tappProjectRepository.GetListAsync(input.FilterText, input.Name, input.Country, input.State, input.Region, input.Municipality, input.TimeZoneMin, input.TimeZoneMax, input.Description, input.Tags, input.Sorting, input.MaxResultCount, input.SkipCount);
return new PagedResultDto<TappProjectDto>
{
TotalCount = totalCount,
Items = ObjectMapper.Map<List<TappProject>, List<TappProjectDto>>(items)
};
}
public virtual async Task<TappProjectDto> GetAsync(Guid id)
{
return ObjectMapper.Map<TappProject, TappProjectDto>(await _tappProjectRepository.GetAsync(id));
}
[Authorize(TappPermissions.TappProjects.Delete)]
public virtual async Task DeleteAsync(Guid id)
{
await _tappProjectRepository.DeleteAsync(id);
}
[Authorize(TappPermissions.TappProjects.Create)]
public virtual async Task<TappProjectDto> CreateAsync(TappProjectCreateDto input)
{
var tappProject = await _tappProjectManager.CreateAsync(input.TappProgramId
, input.TimeZone, input.Name, input.Country, input.State, input.Region, input.Municipality, input.Description, input.Tags
);
return ObjectMapper.Map<TappProject, TappProjectDto>(tappProject);
}
[Authorize(TappPermissions.TappProjects.Edit)]
public virtual async Task<TappProjectDto> UpdateAsync(Guid id, TappProjectUpdateDto input)
{
var tappProject = await _tappProjectManager.UpdateAsync(
id, input.TappProgramId
, input.TimeZone, input.Name, input.Country, input.State, input.Region, input.Municipality, input.Description, input.Tags
);
return ObjectMapper.Map<TappProject, TappProjectDto>(tappProject);
}
}
}
> Can you share your AppService or Controller endpoint code in C#?
yes, which one do you want me to share?