System.TimeoutException: Cannot acquire MainDom

Hi Everyone,

I see this issue is not new but I was unable to find something that works. Any help is appreciated.

I am running V13.2.2. with db on SQL Express and its working fine on my development system. When I deployed the site on the server (IIS) using Publish from Visual Studio. I am getting:

Unhandled exception. System.TimeoutException: Cannot acquire MainDom
   at Umbraco.Cms.Core.Runtime.MainDom.Acquire()
   at Umbraco.Cms.Core.Runtime.MainDom.<>c__DisplayClass12_0.<Acquire>b__0()
   at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
   at System.Threading.LazyInitializer.EnsureInitialized[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
   at Umbraco.Cms.Core.Runtime.MainDom.Acquire(IApplicationShutdownRegistry hostingEnvironment)
   at Umbraco.Cms.Infrastructure.Runtime.CoreRuntime.AcquireMainDom()
   at Umbraco.Cms.Infrastructure.Runtime.CoreRuntime.StartAsync(CancellationToken cancellationToken, Boolean isRestarting)
   at Umbraco.Cms.Infrastructure.Runtime.CoreRuntime.StartAsync(CancellationToken cancellationToken)
   at Umbraco.Extensions.WebApplicationExtensions.BootUmbracoAsync(WebApplication app)
   at Program.<Main>$(String[] args) in D:\DEV\MEDAMERICA\MedAmerica\Program.cs:line 12
   at Program.<Main>(String[] args)

This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/113806-systemtimeoutexception-cannot-acquire-maindom