Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas 319 posts 606 karma points c-trib
    Nov 17, 2021 @ 10:54
    Thomas
    0

    Dotnet run issue

    Hi

    When I run dotnet run I get this error. The projects builds fine.

    Unhandled exception. System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Configuration file C:\Development\1-platformen-umb9\platformen\bin\Debug\net5.0\platformen.dll.config does not have root <configuration> tag (C:\Development\1-platformen-umb9\platformen\bin\Debug\net5.0\platformen.dll.config line 2) at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors() at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey) --- End of inner exception stack trace --- at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey) at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName) at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName) at System.Configuration.ConfigurationManager.GetSection(String sectionName) at System.Runtime.Caching.MemoryCacheStatistics.InitializeConfiguration(NameValueCollection config) at System.Runtime.Caching.MemoryCacheStatistics..ctor(MemoryCache memoryCache, NameValueCollection config) at System.Runtime.Caching.MemoryCache.InitDisposableMembers(NameValueCollection config) at System.Runtime.Caching.MemoryCache.Init(NameValueCollection config) at System.Runtime.Caching.MemoryCache..ctor(String name, NameValueCollection config) at Umbraco.Cms.Core.Cache.ObjectCacheAppCache..ctor() at Umbraco.Cms.Core.Cache.AppCaches.Create(IRequestCache requestCache) at Umbraco.Extensions.UmbracoBuilderExtensions.AddUmbraco(IServiceCollection services, IWebHostEnvironment webHostEnvironment, IConfiguration config) at Kommuneplatformen.Startup.ConfigureServices(IServiceCollection services) in C:\Development\1-platformen-umb9\platformen\Startup.cs:line 45 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.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services) at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance) at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass13_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services) at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider() at Microsoft.Extensions.Hosting.HostBuilder.Build() at Kommuneplatformen.Program.Main(String[] args) in C:\Development\1-platformen-umb9\platformen\Program.cs:line 10 PS C:\Development\1-platformen-umb9\platformen>

    The file is reference to looks like this.

    <?xml version="1.0" encoding="utf-8"?> <Media Key="f3334584-db7e-4cda-b134-a7fd14cce656" Alias="App" Level="1"> <Info> <Parent Key="00000000-0000-0000-0000-000000000000"></Parent> <Path>/App</Path> <Trashed>false</Trashed> <ContentType>File</ContentType> <CreateDate>2020-11-04T09:08:05</CreateDate> <NodeName Default="App" /> <SortOrder>26</SortOrder> </Info> <Properties> <fileTitle> <Value><![CDATA[]]></Value> </fileTitle> <pDFDescription> <Value><![CDATA[]]></Value> </pDFDescription> <tags> <Value><![CDATA[]]></Value> </tags> <umbracoFile> <Value><![CDATA[/media/trcdh214/app.js]]></Value> </umbracoFile> </Properties> </Media>

  • David Knittl 13 posts 114 karma points
    Jan 27, 2022 @ 10:06
    David Knittl
    0

    Hi Thomas,

    did you find a solution? I'm running into the same problem on my end and it's quite frustrating. 🙈

    Cheers, David

  • Harry Gordon 15 posts 92 karma points c-trib
    Mar 10, 2022 @ 14:06
    Harry Gordon
    1

    Hello! I ran into this too, in my case I had a Content Type called "App" and uSync created an app.config file to store it. This file gets used in the build process and ends up causing this start up error. I've logged the issue here: https://github.com/KevinJump/uSync/issues/369

    Here's the app.config docs for reference https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/?redirectedfrom=MSDN

    Edit: will be fixed in uSync 9.2.1.

Please Sign in or register to post replies

Write your reply to:

Draft