EvilBeaver / OneScript.Web

MVC-движок сайтов на 1Script
Mozilla Public License 2.0
79 stars 20 forks source link

Версия 0.9.1 не стартует вебсервер #90

Closed yakovsudarushkin closed 3 years ago

yakovsudarushkin commented 3 years ago

Приветствую. Первый раз скачивал движок. Скачал сразу 0.9.1. Веб сервер не запустился. Выдал ошибку. После этого скачал предыдущую версию 0.9.0 - веб сервер запустился.

Ниже написал текст вызова и ошибки:

PS C:\MyFiles\практика OneScript\Web_1\src> & 'C:\Program Files\OneScriptWeb\OneScript.WebHost.exe' dbug: OneScript.WebHost.Application.ApplicationInstance[0] No database configured Application startup exception: System.InvalidOperationException: Unknown database type in configuration at OneScript.WebHost.Database.DatabaseExtensions.ConfigureDbOptions(IServiceProvider serviceProvider) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Database/DatabaseExtensions.cs:line 65 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>cDisplayClass1_0.b0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at OneScript.WebHost.BackgroundJobs.BackgroundJobsExtensions.PrepareBgJobsEnvironment(IServiceProvider services, RuntimeEnvironment environment) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/BackgroundJobs/BackgroundJobsExtensions.cs:line 81 at OneScript.WebHost.Startup.PrepareEnvironment(IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 149 at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 95 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>cDisplayClass4_0.b0(IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>cDisplayClass0_0.gMiddlewareFilterBuilder|0(IApplicationBuilder builder) at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>cDisplayClass0_0.b0(IApplicationBuilder app) at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication() crit: Microsoft.AspNetCore.Hosting.WebHost[6] Application startup exception System.InvalidOperationException: Unknown database type in configuration at OneScript.WebHost.Database.DatabaseExtensions.ConfigureDbOptions(IServiceProvider serviceProvider) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Database/DatabaseExtensions.cs:line 65 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>cDisplayClass1_0.b0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at OneScript.WebHost.BackgroundJobs.BackgroundJobsExtensions.PrepareBgJobsEnvironment(IServiceProvider services, RuntimeEnvironment environment) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/BackgroundJobs/BackgroundJobsExtensions.cs:line 81 at OneScript.WebHost.Startup.PrepareEnvironment(IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 149 at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 95 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>cDisplayClass4_0.b0(IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>cDisplayClass0_0.gMiddlewareFilterBuilder|0(IApplicationBuilder builder) at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>cDisplayClass0_0.b0(IApplicationBuilder app) at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication() Unhandled exception. System.InvalidOperationException: Unknown database type in configuration at OneScript.WebHost.Database.DatabaseExtensions.ConfigureDbOptions(IServiceProvider serviceProvider) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Database/DatabaseExtensions.cs:line 65 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>cDisplayClass1_0.b0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) jenkins_home/workspace/1Script.Web_master/src/OneScript/BackgroundJobs/BackgroundJobsExtensions.cs:line 81 at OneScript.WebHost.Startup.PrepareEnvironment(IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 149 at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 95 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>cDisplayClass4_0.b0(IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>cDisplayClass0_0.gMiddlewareFilterBuilder|0(IApplicationBuilder builder) at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>cDisplayClass0_0.b0(IApplicationBuilder app) at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication() at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage) at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage) at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token) at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host) at OneScript.WebHost.Program.Main(String[] args) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Program.cs:line 84 PS C:\MyFiles\практика OneScript\Web_1\src> & 'C:\Program Files\OneScriptWeb\OneScript.WebHost.exe' dbug: OneScript.WebHost.Application.ApplicationInstance[0] No database configured Application startup exception: System.InvalidOperationException: Unknown database type in configuration at OneScript.WebHost.Database.DatabaseExtensions.ConfigureDbOptions(IServiceProvider serviceProvider) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Database/DatabaseExtensions.cs:line 65 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>cDisplayClass1_0.b0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at OneScript.WebHost.BackgroundJobs.BackgroundJobsExtensions.PrepareBgJobsEnvironment(IServiceProvider services, RuntimeEnvironment environment) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/BackgroundJobs/BackgroundJobsExtensions.cs:line 81 at OneScript.WebHost.Startup.PrepareEnvironment(IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 149 at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 95 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>cDisplayClass4_0.b0(IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>cDisplayClass0_0.gMiddlewareFilterBuilder|0(IApplicationBuilder builder) at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>cDisplayClass0_0.b0(IApplicationBuilder app) at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication() crit: Microsoft.AspNetCore.Hosting.WebHost[6] Application startup exception System.InvalidOperationException: Unknown database type in configuration at OneScript.WebHost.Database.DatabaseExtensions.ConfigureDbOptions(IServiceProvider serviceProvider) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Database/DatabaseExtensions.cs:line 65 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>cDisplayClass1_0.b0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at OneScript.WebHost.BackgroundJobs.BackgroundJobsExtensions.PrepareBgJobsEnvironment(IServiceProvider services, RuntimeEnvironment environment) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/BackgroundJobs/BackgroundJobsExtensions.cs:line 81 at OneScript.WebHost.Startup.PrepareEnvironment(IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 149 at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 95 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>cDisplayClass4_0.b0(IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>cDisplayClass0_0.gMiddlewareFilterBuilder|0(IApplicationBuilder builder) at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>cDisplayClass0_0.b0(IApplicationBuilder app) at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication() Unhandled exception. System.InvalidOperationException: Unknown database type in configuration at OneScript.WebHost.Database.DatabaseExtensions.ConfigureDbOptions(IServiceProvider serviceProvider) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Database/DatabaseExtensions.cs:line 65 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>cDisplayClass1_0.b0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) jenkins_home/workspace/1Script.Web_master/src/OneScript/BackgroundJobs/BackgroundJobsExtensions.cs:line 81 at OneScript.WebHost.Startup.PrepareEnvironment(IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 149 at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 95 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>cDisplayClass4_0.b0(IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>cDisplayClass0_0.gMiddlewareFilterBuilder|0(IApplicationBuilder builder) at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>cDisplayClass0_0.b0(IApplicationBuilder app) at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication() at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage) at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage) at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token) at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host) at OneScript.WebHost.Program.Main(String[] args) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Program.cs:line 84

yakovsudarushkin commented 3 years ago

после перезапуска VSCode и 0.9.0 не запустил веб сервер

nixel2007 commented 3 years ago

Добрый день. Что за приложение вы запускаете? Оно содержит обращение к базе данных? Если да, то вы прописали данные подключения к базе в appsettings.json?

yakovsudarushkin commented 3 years ago

Запускаю 'C:\Program Files\OneScriptWeb\OneScript.WebHost.exe' Это распакованный архив с версией 0.9.0

nixel2007 commented 3 years ago

Я не про движок, я про ваш проект с main.os

yakovsudarushkin commented 3 years ago

Добрый день. Что за приложение вы запускаете? Оно содержит обращение к базе данных? Если да, то вы прописали данные подключения к базе в appsettings.json?

Вот содержимое appsettings.json из папки C:\Program Files\OneScriptWeb

{ "OneScript": { "lib.system": "$appBinary/oscript_modules", "lib.additional": [ "oscript_modules" ] }, "Environment": "Development", "urls": "http://localhost:5000/"

}

yakovsudarushkin commented 3 years ago

Я не про движок, я про ваш проект с main.os

Проект шаблонный. "Болванка" https://infostart.ru/1c/articles/783435/

yakovsudarushkin commented 3 years ago

Пардон. Был невнимателен. Не оттуда запускал веб сервер. Теперь опять все получилось.

PS C:\MyFiles\практика OneScript\Web_1\src> & 'C:\Program Files\OneScriptWeb\OneScript.WebHost.exe' info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using 'C:\Users\yakov\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. Hosting environment: Development Content root path: C:\MyFiles\практика OneScript\Web_1\src Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down.

yakovsudarushkin commented 3 years ago

Спасибо за отклик, очень помогли

nixel2007 commented 3 years ago

Вероятно, речь об этом.

https://github.com/EvilBeaver/webapp-template

@EvilBeaver кажется, ты с @arkuznetsov на днях что-то менял в инициализации подключения к бд. Не могли регресс словить?

nixel2007 commented 3 years ago

А, ну и хорошо :)

yakovsudarushkin commented 3 years ago

Вероятно, речь об этом.

https://github.com/EvilBeaver/webapp-template

@EvilBeaver кажется, ты с @arkuznetsov на днях что-то менял в инициализации подключения к бд. Не могли регресс словить?

Опять распаковал и попробовал запустить движок версии 0.9.1 - не запускается Вернул версию 0.9.0 - запустился.

arkuznetsov commented 3 years ago

Вероятно, речь об этом.

https://github.com/EvilBeaver/webapp-template

@EvilBeaver кажется, ты с @arkuznetsov на днях что-то менял в инициализации подключения к бд. Не могли регресс словить?

Полечено в develop.

EvilBeaver commented 3 years ago

Да, ошибка известна, исправим. Пока советую пользоваться 0.9.0 или 0.8

nixel2007 commented 3 years ago

Альтернативный вариант - взять ночную сборку с build.oscript.io :) Но могут быть другие проблемы

EvilBeaver commented 3 years ago

@yakovsudarushkin @arkuznetsov - коллеги, попробуйте потестировать эту сборку: https://build.oscript.io/job/1Script.Web/job/hotfix%252F0.9.2/1/

arkuznetsov commented 3 years ago

@yakovsudarushkin @arkuznetsov - коллеги, попробуйте потестировать эту сборку: build.oscript.io/job/1Script.Web/job/hotfix%252F0.9.2/1

Я вроде как тестил, работает.

yakovsudarushkin commented 3 years ago

@yakovsudarushkin @arkuznetsov - коллеги, попробуйте потестировать эту сборку: https://build.oscript.io/job/1Script.Web/job/hotfix%252F0.9.2/1/

У меня заработал этот дистрибутив. Есть небольшая разница, в логах.

Это версия 0.9.0

PS C:\MyFiles\практика OneScript\Web_1\src> & 'C:\Program Files\OneScriptWeb090\OneScript.WebHost.exe' info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using 'C:\Users\yakov\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. Hosting environment: Development Content root path: C:\MyFiles\практика OneScript\Web_1\src Now listening on: http://localhost:5000

Это версия по ссылке, видимо 0.9.2. Тут дополнительно про "No database configured" сообщает

PS C:\MyFiles\практика OneScript\Web_1\src> & 'C:\Program Files\OneScriptWeb\OneScript.WebHost.exe' dbug: OneScript.WebHost.Application.ApplicationInstance[0] No database configured info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using 'C:\Users\yakov\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. Hosting environment: Development Content root path: C:\MyFiles\практика OneScript\Web_1\src Now listening on: http://localhost:5000

EvilBeaver commented 3 years ago

Да, это сообщение уровня Debug. Его можно отключить, подняв уровень логирования в appsettings.json до INFO