I am not able to make screenshare sessions. Please try the solutions above and share the results via this platform.
We are still facing the issue of accessing the API's using Swagger client of InternalGateway and WebGateway. I have qigen all required permissions. Still getting the error "Auth ErrorTypeError: Failed to fetch"
I hope someone from support team to help us in access the API's from Swagger client of gateway Applications.
do you see it in Swagger UI? here's a sample controller
[RemoteService(Name = "AbpIdentity")] [Area("identity")] [ControllerName("User")] [Route("api/identity/users")] public class IdentityUserController : AbpController, IIdentityUserAppService { [HttpGet] [Route("{id}")] public virtual Task<IdentityUserDto> GetAsync(Guid id) { return UserAppService.GetAsync(id); } }
Thanks, actually we made big mistake, missed to add "Public" to our controller.
You can overiide some base class methods of AbpInputTagHelperService in your MyInputTagHelperService .
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpInputTagHelperService.cs
It Worked perfectly. Now we are able to over ride the input helper. Thanks for the info @maliming.
You can overiide some base class methods of AbpInputTagHelperService in your MyInputTagHelperService .
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpInputTagHelperService.cs
Sure, We will give a try and update you back. Thanks
Maybe you can try:
using System.Text.Encodings.Web; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers; using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form; using Volo.Abp.DependencyInjection; namespace MyCompanyName.MyProjectName.Web { [Dependency(ReplaceServices = true)] [ExposeServices(typeof(AbpInputTagHelperService))] public class MyInputTagHelperService : AbpInputTagHelperService { public MyInputTagHelperService(IHtmlGenerator generator, HtmlEncoder encoder, IAbpTagHelperLocalizer tagHelperLocalizer) : base(generator, encoder, tagHelperLocalizer) { } } [Dependency(ReplaceServices = true)] [ExposeServices(typeof(AbpInputTagHelper))] public class MyInputTagHelper : AbpInputTagHelper { public MyInputTagHelper(AbpInputTagHelperService tagHelperService) : base(tagHelperService) { } } }
I am not sure, in this case where we can overide the html content of Tag helpers? Are we missing anything here?
hi
You can try to create a new taghelper and make it executed first.
https://github.com/abpframework/abp/blob/48c52625f4c4df007f04d5ac6368b07411aa7521/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpIdNameTagHelper.cs#L18
Yes, creating a new one is one of the option, but Lets suppose we had to customize the textbox across application, we need to include the files of administration and SAAS modules and override those. Inisted of that if we can override adp-input tag helper it would be easy approch right.
Is there any way to include .cshtml of respective tag helper to override the defayult ones?
Hi @rick@i-pulse.nl , The issue is there with created js/blazor files. We faced the same issue with our MVC template and we fixed that my modifying the respective index.js file.
actually pruler form is being added where as it is singler .
$(function () { var l = abp.localization.getResource("ProductService"); var productService = window.exceego.EHSWatch.appV3.productService.products.products;
Change to
$(function () { var l = abp.localization.getResource("ProductService"); var productService = window.exceego.EHSWatch.appV3.productService.products.products;
In your case it might be
var brandService = window.company.projectname.brandService.brands.brands;to
var brandService = window.company.projectname.brandService.brands.brand;
Hope this helps
Hi Viswajwalith,
After doing that correction, now it works.
Thanks a lot !!
Good to know. The Fix worked for you.
And you gave the related permissions to the admin user but still getting permission erros? To be sure, this is your newly added microservice with Mongodb right? Please do send a screen record to diagnose better.
Hi, The issue got fixed. I made a mistake. In my Service, I have replaced the EF core injection with MongoDB one. In fact I should had MongoDB injection without removng the EF core injection. After having both it work fine for me. Thanks.
Microservice template and module templates are different from each other. Selecting db for microservice template as
abp new OrderService -t microservice-service-pro -d mongodbis not supported yet.I am able to see the permissions in UI and those are selected still when trying to access my newly created service getting permission issue
What do you mean by access my newly created service? Are you trying to make a request to your newly created microservice from an other microservice? Can you compare it to sample ProductService microservice?
I Already followed the product service and steps and all working fine with the custom service with EF (PermissionUI, CRUD permissions etc) I created one more service and added Mongo specific files/layer manually and used in newly created service. Injected the same in solution in all layers. All UI pages/Permissions are coming perfectly. but when I am making CRUD calls to the service getting the permission issue. If still not clear I may send a screen recording /screenshots of all pages to the email which you mention.
Hi @rick@i-pulse.nl , The issue is there with created js/blazor files. We faced the same issue with our MVC template and we fixed that my modifying the respective index.js file.
actually pruler form is being added where as it is singler .
$(function () { var l = abp.localization.getResource("ProductService"); var productService = window.exceego.EHSWatch.appV3.productService.products.products;
Change to
$(function () { var l = abp.localization.getResource("ProductService"); var productService = window.exceego.EHSWatch.appV3.productService.products.products;
In your case it might be
var brandService = window.company.projectname.brandService.brands.brands;
to
var brandService = window.company.projectname.brandService.brands.brand;
Hope this helps 
 
                                