hi
Your usage is no problem, but I don't know why MongoDB gets an exception.
using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: true))
{
...
await uow.CompleteAsync();
}
Do you have any steps to reproduce?
hi
This is the latest code of chat icon
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;
namespace Volo.Chat.Web.Pages.Chat.Components.MessagesToolbarItem;
public class MessagesToolbarItemViewComponent : AbpViewComponent
{
public virtual IViewComponentResult Invoke()
{
return View("/Pages/Chat/Components/MessagesToolbarItem/Default.cshtml");
}
}
<a href="@Url.Page("/Chat/Index")" class="lpx-menu-item-link">
<span class="lpx-menu-item-icon">
<i class="lpx-icon fas fa-envelope" aria-hidden="true"></i>
</span>
</a>
hi
System.IO.InvalidDataException: Form key length limit 2048 exceeded.
You can configure the KeyLengthLimit of FormOptions.
https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.features.formoptions.keylengthlimit?view=aspnetcore-7.0
hi
Can you share the full error info?
Thanks
hi
https://support.abp.io/QA/Questions?Filter=MultiTenantConnectionStringResolver
hi
Thanks, I will handle this.
hi
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-7.0#appsettingsjson
You can create the appsettings.json by the environment.
hi
These are the changes: https://support.abp.io/QA/Questions/5740#answer-3a0da383-face-7d11-aa37-6152b014966e
You should use the production URL in appsettings.json and then migrate the URL to the production database.
appsettings.json
appsettings.Development.json
appsettings.Production.json