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
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?
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