Base solution for your next web application

Activities of "amer_op"

any thoughts ?

exception disappeared , but AbpSession object is empty

hello , i am having preplem with this code -->

public IServiceProvider ConfigureServices(IServiceCollection services)
{
    services.AddDevExpressControls(settings => settings.Resources = ResourcesType.ThirdParty | ResourcesType.DevExtreme);
    var session = IocManager.Instance.Resolve<IAbpSession>();
    DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new MyReportStorageWebExtension(session));
}

it throws this exception --?>

ComponentNotFoundException: No component for supporting the service Abp.Runtime.Session.IAbpSession was found
Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)
Castle.MicroKernel.DefaultKernel.Resolve(Type service, IDictionary arguments)
Castle.Windsor.WindsorContainer.Resolve<T>()
Abp.Dependency.IocManager.Resolve<T>()
SmartOptical.Web.Startup.Startup.ConfigureServices(IServiceCollection services) in Startup.cs
+
            DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new MyReportStorageWebExtension(IocManager.Instance.Resolve<IAbpSession>()));
Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

any help ? all i want is to use AbpSession object in side 'MyReportStorageWebExtension' class

maliming thank you.

but how to inject it ? i mean suppose this ->


public myclass(IAbpSession _AbpSession) { this.AbpSession = _AbpSession; }


new myclass(what to do here ?);

do i have to use IOC manager ? or what ?

Question

hello , i have a class in the web.host project, and i need to accsess the TenantId in my class , what is the best practice to injecte AbpSession object in the class constructor ?

Question

hello , how can i get TenantId in the web.host project ?

hello ,

when updating dist files on prod, new changes won't appear till i clear cache on my browser or reload the page with 'clear cache force' any suggestions ?

note : i am using .net core and angular 6

magicang can you plz send me the demo to [email protected]

hello , can you please send the link to - > ([email protected])

any thoughts ?

Showing 1 to 10 of 17 entries