Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "amer_op"

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

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

hello all , when i use 'ng build' ----> it works fine without errors, and dist folder successfully generated but when i use 'ng build --prod' ----> it fails with the following errors :-

  • ERROR in 1049.ae0c0f596171882abe3e.js from UglifyJs undefined
  • ERROR in scripts.e75fa26f6e8588a20b31.js from UglifyJs undefined

please help !

Hi I've tried to use the power tool for the first time, apparently the back end files generated successfully, however I got error for angular files. I am using DotNetcore with  angular and my project is separated to two solution UI and BE.

The log is:

-> ExpensesAppService.cs is being generated.
-> IExpensesAppService.cs is being generated.
-> ExpenseConsts.cs is being generated.
-> CreateOrEditExpenseDto.cs is being generated.
-> ExpenseDto.cs is being generated.
-> GetAllExpensesForExcelInput.cs is being generated.
-> GetAllForLookupTableInput.cs is being generated.
-> GetAllExpensesInput.cs is being generated.
-> GetExpenseForView.cs is being generated.
-> GetExpenseForEditOutput.cs is being generated.
-> Expense.cs is being generated.
-> ExpensesExcelExporter.cs is being generated.
-> IExpensesExcelExporter.cs is being generated.
-> AppPermissions.cs is being modified.
-> AppAuthorizationProvider.cs is being modified.
-> SmartOpticalDbContext.cs is being modified.
-> CustomDtoMapper.cs is being modified.
Running add-migration...

Welcome to .NET Core!
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
Learn more about .NET Core: [https://aka.ms/dotnet-docs](https://aka.ms/dotnet-docs)
Use 'dotnet --help' to see available commands or visit: [https://aka.ms/dotnet-cli-docs](https://aka.ms/dotnet-cli-docs)

Telemetry
\-\-\-\-\-\-\-\-\-
The \.NET Core tools collect usage data in order to help us improve your experience\. The data is anonymous and doesn't include command\-line arguments\. The data is collected by Microsoft and shared with the community\. You can opt\-out of telemetry by setting the DOTNET\_CLI\_TELEMETRY\_OPTOUT environment variable to '1' or 'true' using your favorite shell\.

Read more about .NET Core CLI Tools telemetry: [https://aka.ms/dotnet-cli-telemetry](https://aka.ms/dotnet-cli-telemetry)

ASP.NET Core
\-\-\-\-\-\-\-\-\-\-\-\-
Successfully installed the ASP.NET Core HTTPS Development Certificate.
To trust the certificate (Windows and macOS only) first install the dev-certs tool by running 'dotnet install tool dotnet-dev-certs -g --version 2.1.0-preview1-final' and then run 'dotnet-dev-certs https --trust'.
For more information on configuring HTTPS see [https://go.microsoft.com/fwlink/?linkid=848054](https://go.microsoft.com/fwlink/?linkid=848054).
No executable found matching command "dotnet-ef"
Running update-database...
No executable found matching command "dotnet-ef"
-> expenses.component.ts is being generated.
-> expenses.component.html is being generated.
-> create-or-edit-expense-modal.component.html is being generated.
-> create-or-edit-expense-modal.component.ts is being generated.
-> view-expense-modal.component.html is being generated.
-> view-expense-modal.component.ts is being generated.
Warning : File not found => \..\..\angular\src\app\main\main.module.ts
Warning : File not found => \..\..\angular\src\app\main\main-routing.module.ts
Warning : File not found => \..\..\angular\src\app\shared\layout\nav\app-navigation.service.ts
Warning : File not found => \..\..\angular\src\shared\service-proxies\service-proxy.module.ts
-> SmartOptical.xml is being modified.

Code generation is complete. Press ENTER to exit...
Showing 1 to 6 of 6 entries