Copied to clipboard

Flag this post as spam?

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


  • J D 2 posts 71 karma points
    26 days ago
    J D
    0

    TimeoutException: Cannot acquire MainDom throws error in umbraco 13 SQL db while deploying to IIS Server

    while deploying Umbraco version 13.1.1 with SQL Server throws this error. I have also tried to implement this with sqlite db still the error was same. TimeoutException: Cannot acquire MainDom

    Umbraco.Cms.Core.Runtime.MainDom.Acquire()
    Umbraco.Cms.Core.Runtime.MainDom+<>c__DisplayClass12_0.<Acquire>b__0()
    System.Threading.LazyInitializer.EnsureInitializedCore<T>(ref T target, ref bool initialized, ref object syncLock, Func<T> valueFactory)
    System.Threading.LazyInitializer.EnsureInitialized<T>(ref T target, ref bool initialized, ref object syncLock, Func<T> valueFactory)
    Umbraco.Cms.Core.Runtime.MainDom.Acquire(IApplicationShutdownRegistry hostingEnvironment)
    Umbraco.Cms.Infrastructure.Runtime.CoreRuntime.AcquireMainDom()
    Umbraco.Cms.Infrastructure.Runtime.CoreRuntime.StartAsync(CancellationToken cancellationToken, bool isRestarting)
    Umbraco.Cms.Infrastructure.Runtime.CoreRuntime.StartAsync(CancellationToken cancellationToken)
    Umbraco.Extensions.WebApplicationExtensions.BootUmbracoAsync(WebApplication app)
    Program.<Main>$(string[] args) in Program.cs
    
    + await app.BootUmbracoAsync();
    
    Program.<Main>(string[] args)
    

    my web.config looks as belows.

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <location path="." inheritInChildApplications="false">
        <system.webServer>
          <handlers>
            <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
          </handlers>
          <aspNetCore processPath="dotnet" arguments=".\sqlDemo.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" >
          <environmentVariables>
            <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
          </environmentVariables>
          </aspNetCore>
        </system.webServer>
      </location>
    </configuration>
    

    Help me solve this error... Thank you in advance

Please Sign in or register to post replies

Write your reply to:

Draft