Hi,
It's probably will be released at the end of this year. I hope that is good for you.
Hi Dave,
Is your Logout action in AccountController like this ?
public async Task<ActionResult> Logout()
{
await _signInManager.SignOutAllAsync();
return RedirectToAction("Login");
}
One of the previous versions was using a buggy logout action.
Hi,
Can you try to resolve it like this,
IocManager.Resolve<IAbpSession>()
Hi,
If you download the latest version of AspNet Zero, the migration tool might not work for you but you can create a similar project if it does not work for you. Here is the code for migrator tool <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/tree/dev/src/Tools/MyCompanyName.AbpZeroTemplate.Migrator">https://github.com/aspnetzero/aspnet-ze ... e.Migrator</a>
Hi,
The problem might be related to EF but it also might be related to your App pool in IIS. You can configure your app pool to always up in IIS manager. If that does not solve your problem, you can send timely keep alive request to your web app to keep it alive.
For using views in code first approach, in order to create views you can first create an empty migration and then run your view create sql command in it.
in order to use views in your repositories, you can search on the internet for that. You need to create a custom repository in your project. see <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Repositories#custom-repositories">http://aspnetboilerplate.com/Pages/Docu ... positories</a>
Hi,
We dont have a suggestion for hosting, maybe someone else can suggest.
Hi,
I have tried to reproduce this error but couldn't succeed. Can you describe the steps to reproduce this error ?
If this happens when you login and try to impersonate, then please send your project to us via email to <a href="mailto:[email protected]">[email protected]</a>.
For a temporary solution, you can use DisableAbpAntiForgeryTokenValidationAttribute for impersonate action.
Hi,
For now your solution seems good. Because some of our unit tests are written as if multiTenancy is enabled.
I have created an issue about this problem <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/392">https://github.com/aspnetzero/aspnet-zero/issues/392</a>. We will try to fix it.
Thanks again for informing us about it.
Hi,
Since this is a private repository area, your github user must be invited to private repository first. Currently your account has the github user "ProjectOnce" invited and has permission to see this section.
If you have a different github user, we can invite you as well. Please share your github username with us.
Hi,
You can put this class next to the "MpaNavigationProvider". Here is the _Sidebar.cshtml content:
@using Abp.Collections.Extensions
@using Volo.AreaTest.Web.Areas.Mpa.Startup
@using Volo.AreaTest.Web.Views
@model Volo.AreaTest.Web.Areas.Mpa.Models.Layout.SidebarViewModel
@{
var calculateMenuUrl = new Func<string, string>((url) =>
{
if (string.IsNullOrEmpty(url))
{
return ApplicationPath;
}
if (UrlChecker.IsRooted(url))
{
return url;
}
return ApplicationPath + url;
});
}
<div class="page-sidebar navbar-collapse collapse">
<ul class="page-sidebar-menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
@for (var i = 0; i < Model.Menu.Items.Count; i++)
{
var menuItem = Model.Menu.Items[i];
<li class="@(i==0 ? "start" : "") @(menuItem.IsMenuActive(Model.CurrentPageName) ? "active" : "")">
@if (menuItem.Items.IsNullOrEmpty())
{
<a href="@calculateMenuUrl(menuItem.Url)">
<i class="@menuItem.Icon"></i>
<span class="title">@menuItem.DisplayName</span>
</a>
}
else
{
<a href="javascript:;" class="auto">
<i class="@menuItem.Icon"></i>
<span class="title">@menuItem.DisplayName</span>
<span class="arrow"></span>
</a>
<ul class="sub-menu">
@foreach (var childMenuItem in menuItem.Items)
{
<li class="@(childMenuItem.IsMenuActive(Model.CurrentPageName) ? "active" : "")">
@if (childMenuItem.Items.IsNullOrEmpty())
{
<a href="@calculateMenuUrl(childMenuItem.Url)">
<span><i class="sub-menu-icon @childMenuItem.Icon"></i> @childMenuItem.DisplayName</span>
</a>
}
else
{
<a href="javascript:;" class="auto">
<i class="@childMenuItem.Icon"></i>
<span class="title">@childMenuItem.DisplayName</span>
<span class="arrow"></span>
</a>
<ul class="sub-menu">
@foreach (var secondLevelChildMenuItem in childMenuItem.Items)
{
<li class="@(secondLevelChildMenuItem.IsMenuActive(Model.CurrentPageName) ? "active" : "")">
<a href="@calculateMenuUrl(secondLevelChildMenuItem.Url)">
<span><i class="sub-menu-icon @secondLevelChildMenuItem.Icon"></i> @secondLevelChildMenuItem.DisplayName</span>
</a>
</li>
}
</ul>
}
</li>
}
</ul>
}
</li>
}
</ul>
</div>