Hi,
Is it possible to switch language when inside a controller action page, so lets so http://localhost/app/assignment/details?id=5. When I switch language it redirects me to http://localhost/app/assignment/details without the Id param, which isn't valid obviously.
Thanks!
I'm getting an error when using the impersonate login feature from the host to a tenant.
When I log in to the host environment, login to a tenant through the impersonation function, I recieve the following error:
System.Exception: Current tenant is different than given tenant. AbpSession.TenantId: , given tenantId: 37 at Robin.Authorization.Impersonation.ImpersonationManager.CheckCurrentTenant(Nullable
1 tenantId)
at Robin.Authorization.Impersonation.ImpersonationManager.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Robin.Web.Controllers.AccountController.d__51.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.Threading.InternalAsyncHelper.d__51.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfActionResultExecutor.<Execute>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext() --- End of stack trace from previous
<br> This problem only occurs on macOS devices with the Safari browser. Anyone got a clue why this is happening, and how we may fix this?
Version: Asp.Net Core MVC version v5.2.0 but we updated all the packages to the latest version a few weeks ago.
Device: Macbook Pro macOS High Sierra. Safari version 12.0
Thanks!!
Hi,
I'm trying to use the subdomain as Tenant approach. I updated my appconfig to use the https://{TENANCY_NAME}.clientname.com/. This works fine, how ever.. my host tenant (so the login without a tenant name) is not clientname.com but instead it is admin.clientname.com.
This causes some errors though. If I navigate to admin.clientname.com and log in. I am actually in the host environment. When I then login as a tenant through the Tenant menu, it all works fine. How ever, when I try to switch back to the host, I recieve the following error: "Current tenant is different than given tenant. AbpSession.TenantId: 19, given TenantId: ".
The above is probably because it expects the host domain to be clientname.com, but instead it is host.clientname.com.
Is there any way to set the host subdomain somewhere, or fix this some other way?
EDIT: Using version v5.2.6 ASPNET CORE MVC & JQUERY .NET Framework
Thanks in advance!
Hi guys,
I'm currently using version v5.2.0.0 of ASP.Net ZERO. I'm using the AbpSession.Use(1, 3) function in my controller, however it doesn't seem to recognize the permission granted to the user with id 3 and tenantId 1. I am 100% sure the user actually does have the required permission. Is this just how it works or am I missing something?
Code in my controller:
using (AbpSession.Use(assignment.TenantId, assignment.CreatedByUserId))
{
bool isPurchased = _searchResultAppService.PurchaseAmbitionProfile(candidateAmbitionProfileApproval.CatsId, candidateAmbitionProfileApproval.AssignmentId, connectionString, candidateAmbitionProfileApproval.AssignmentCandidateId);
}
Code in my appservice:
public interface ISearchresultAppService : IApplicationService
{
bool PurchaseAmbitionProfile(int catsId, int assignmentId, string connectionString, int assignmentCandidateId);
}
[AbpAuthorize(AppPermissions.Pages_Assignment)]
public class SearchresultAppService : RobinAppServiceBase, ISearchresultAppService
{
private readonly IRepository<tblSearchResult> _searchresultRepository;
public SearchresultAppService(IRepository<tblSearchResult> searchresultRepository)
{
_searchresultRepository = searchresultRepository;
}
public bool PurchaseAmbitionProfile(int catsId, int assignmentId, string connectionString, int assignmentCandidateId)
{
return true;
}
}
I get an error when executing _searchResultAppService.PurchaseAmbitionProfile
The error is: Abp.Authorization.AbpAuthorizationException: 'Required permissions are not granted. At least one of these permissions must be granted: Assignment'
Am I doing something wrong here? Thanks!
Hello,
I am currently using the ASP.NET MVC 5.x & jQuery based on .NET Framework, V5.2.0 version of the application. I noticed the datatables are no longer responsive. For example:
<a class="postlink" href="https://imgur.com/a/jPKwM">https://imgur.com/a/jPKwM</a>
While in the v5.0.0 version this happens:
<a class="postlink" href="https://imgur.com/a/etyzt">https://imgur.com/a/etyzt</a>
Is this intended behavior or am I doing something wrong? Thanks!
Hi Guys,
I'm using the new version 5 template (.net core with jquery).
When i'm running the gulp --env prod command in my *.Web.Mvc folder, .min.js files are being generated in my /wwwroot/view-resources/areas/{name}/views/{name} folders. The min files are the same as the regular files though, the content is unminified Javascript.
I've specified the files to be minified in the bundle.config.js, like below:
{
outputFileName: "wwwroot/view-resources/Areas/App/Views/test/_CreateOrEditModal.min.js",
inputFiles: [
"wwwroot/view-resources/Areas/App/Views/test/_CreateOrEditModal.js"
]
}
What am I doing wrong here?
Thanks!
Hi!
I'm using the ASP.NET MVC & Jquery template (version V5.0.4). The project works great locally, how ever if I publish it I'm getting font 404 errors.
If the image link doesn't work, use: <a class="postlink" href="https://imgur.com/fxeyjkO">https://imgur.com/fxeyjkO</a>
I've added the following to the web config, but that doesn't seem to work:
<staticContent>
<remove fileExtension=".woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
</staticContent>
If I check the network tab, i'm seeing that the fonts are giving me 404 errors.
Thanks in advance!