Activities of "liangshiwei"

Hi,

You can consider configure the InstanceName

Configure<RedisCacheOptions>(options =>
{
    var instanceName = string.Empty;
    if (hostingEnvironment.IsProduction())
    {
        instanceName = "Production";
    }

    if (hostingEnvironment.IsStaging())
    {
        instanceName = "Staging";
    }

    options.InstanceName = instanceName;
});

Hi,

You can try this: https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/health-diagnostic-performance/http-error-405-website#resolution-for-cause-3

Answer

Hi,

You can consider:

public class MyCloass : FullAuditedAggregateRoot<Guid>, IMultiTenant
{
      [NotNull]
      public virtual string Detail { get; set; }

      [NotNull]
      public virtual string Title { get; set; }
      
      public void SetId(Guid id)
      {
         Id = id;
      }

}

Hi,

As I said, the swagger will send a request(AJAX) to the backend from the client(chrome) when you switch the API definition, but the client(browser) doesn't know localhost, so it can't work with your case.

Maybe I misunderstood your structure.

At your first screenshot, it looks like a CORS problem.

You can update the appsettings.json of the service, for example:

Hi,

I don't think it's an issue,  If you don't publish to the Internet, how can other clients access its resources?

And we don't recommend you expose swagger to the internet, other people can easily see all your API definitions.

Hi,

Both of them, thanks. shiwei.liang@volosoft.com

Hi,

Can you share the error logs?

Hi,

I guess you extend Entity, but you can't insert a new entity since the field is not nullable and has no default value.

You can change the field to nullable or set a default value.

Can you share the error logs? thanks.

You can use the editorconfig to set the encoding to utf8

https://learn.microsoft.com/en-us/visualstudio/ide/create-portable-custom-editor-options?view=vs-2022

Showing 4271 to 4280 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 04, 2025, 06:41