Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Update to sample console application #797


User avatar
0
tjackadams created

Hello!

Is it possible to update the sample Console Application <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/AbpEfConsoleApp">https://github.com/aspnetboilerplate/as ... ConsoleApp</a> for version 0.8.1?

When i try and run my console application i receive the following error

Message: No component for supporting the service Abp.Threading.BackgroundWorkers.IBackgroundWorkerManager was found Inner Exception: Stack Trace: at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelIn ternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) at Castle.MicroKernel.DefaultKernel.Resolve(Type service, IDictionary arguments) at Castle.Windsor.WindsorContainer.ResolveT at Abp.Dependency.IocManager.ResolveT at Abp.AbpKernelModule.Shutdown() at Abp.Modules.AbpModuleManager.<ShutdownModules>b__6(AbpModuleInfo sm) at System.Collections.Generic.List1.ForEach(Action1 action) at Abp.Modules.AbpModuleManager.ShutdownModules() at Abp.AbpBootstrapper.Dispose() at Portal.ConsoleApplication.Program.Main(String[] args) in C:\Users\admin.tom.adams.CTL-PORTAL\Documents\Visual Studio 2015\Projects\Portal\Portal.ConsoleApplication\Program.cs:line 129

It errors on this line bootstrapper.Initialize();

using (AbpBootstrapper bootstrapper = new AbpBootstrapper())
                {
                    // Load logging configuration
                    bootstrapper.IocManager.IocContainer.AddFacility<LoggingFacility>(f => f.UseLog4Net().WithConfig("log4net.config"));
                    bootstrapper.Initialize();
}

Many Thanks


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    I upgraded (<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-samples/commit/045bf462a133eb18fabaf2802bdf8593f700461c">https://github.com/aspnetboilerplate/as ... 93f700461c</a>) and it works fine. Can you try again?