Base solution for your next web application

Activities of "bosalah"

hi there .. can any one share his ionic starter project

hi >> angular 8 + asp core 3.1 i am trying to use RDLC report file file from aplication layer and convert it to pdf the same way u make excle export files but with rdlc to pdf converter my qustion is: can i use the file directly from aplication layer or i have to convert it to "Embedded Resource File" and use it from web host controller i tryied alot but i have error that say " file path not found "

Answer

https://ng2-pdfjs-viewer.azurewebsites.net/bytearray

i am trying to use this now .. but i cant do this from service

return File(bytes, "application/pdf");

:(

Hi velu, if you are still willing to share can you please send a copy to [email protected] Thanks!

@muhittincelik Can u send it to me please [email protected]

I am using asp core 3.1 angular 8 i need to make human resource admin for each organization Unit How can i add property to Organization Unit with name OrganizationUnitAdminId that reference to User ?

thank you millions :)

asp core 3 angular 8 after Publish To IIS

after publish and deploy to iis i got this on the remote server

result: null, targetUrl: null, success: false, error: { code: 0, message: "Could not find content root folder!", details: "Exception: Could not find content root folder! STACK TRACE: at Israa.Web.WebContentDirectoryFinder.CalculateContentRootFolder() in D:\IsraaAspZero\IsraaCore3Angular\Israa\aspnet-core\src\Israa.Core\Web\WebContentFolderHelper.cs:line 27 at Israa.EntityFrameworkCore.MyConnectionStringResolver.GetNameOrConnectionString(ConnectionStringResolveArgs args) in D:\IsraaAspZero\IsraaCore3Angular\Israa\aspnet-core\src\Israa.EntityFrameworkCore\EntityFrameworkCore\MyConnectionStringResolver.cs:line 30 at Abp.Domain.Uow.UnitOfWorkBase.ResolveConnectionString(ConnectionStringResolveArgs args) at Abp.EntityFrameworkCore.Uow.EfCoreUnitOfWork.GetOrCreateDbContext[TDbContext](Nullable1 multiTenancySide, String name) at Abp.EntityFrameworkCore.Uow.UnitOfWorkExtensions.GetDbContext[TDbContext](IActiveUnitOfWork unitOfWork, Nullable1 multiTenancySide, String name) at Abp.EntityFrameworkCore.Uow.UnitOfWorkDbContextProvider1.GetDbContext(Nullable1 multiTenancySide) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.get_Context() at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.<GetQueryable>b__7_0(Type key) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.GetQueryable() at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.GetAllIncluding(Expression1[] propertySelectors) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.GetAll() at Castle.Proxies.Invocations.IRepository2_GetAll_30.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.IRepository1Proxy_5.GetAll() at Israa.IsraaSettings.Rooms.RoomAppService.GetAll() in D:\IsraaAspZero\IsraaCore3Angular\Israa\aspnet-core\src\Israa.Application\IsraaSettings\Rooms\RoomAppService.cs:line 36 at lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.

Answer

I did your solution and it worked good but I can't change the language  in frontend I can't understand the last part about how can I  execute other request culture localizers in my custom class

----------------------------------------------------------- you need to execute other request culture localizers in your custom class

  1. First create a class like below in your *.Web.Host project:
public class MyRequestCultureProvider : RequestCultureProvider
{
	public override Task<ProviderCultureResult> DetermineProviderCultureResult(HttpContext httpContext)
	{
		var result = new ProviderCultureResult(culture: (StringSegment)"en-US", uiCulture: (StringSegment)"ar");
		return Task.FromResult(result);
	}
}

<span class="colour" style="color: rgb(0, 0, 0);">Then, use it like this to see if server returns dates with correct format:</span>

app.UseAbpRequestLocalization(opts =>
{
	opts.RequestCultureProviders.Insert(0, new MyRequestCultureProvider());
});

But, this will work before all request culture providers, so when you change the language on the UI, it will not work. So, you need to execute other request culture localizers in your custom class (like this one https://github.com/aspnetboilerplate/as ... rovider.cs), then determine correct uiCulture.

Showing 1 to 10 of 16 entries