Copied to clipboard

Flag this post as spam?

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


  • Dan 64 posts 208 karma points
    3 days ago
    Dan
    0

    Umbraco v8 local database

    I have tried to get the umbraco database local but I'm getting following error.

    enter image description here

    if im using a online version of the same database it works just fine.

  • Huw Reddick 1810 posts 6223 karma points MVP c-trib
    3 days ago
    Huw Reddick
    0

    Is there any info in the umbraco logs?

  • Dan 64 posts 208 karma points
    2 days ago
    Dan
    0

    I found these in the log

    System.Exception: Cannot connect to the database.
       at Umbraco.Core.Persistence.UmbracoDatabaseFactory.Initialize() in D:\\a\\1\\s\\src\\Umbraco.Core\\Persistence\\UmbracoDatabaseFactory.cs:line 228
       at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
       at Umbraco.Core.Persistence.UmbracoDatabaseFactory.EnsureInitialized() in D:\\a\\1\\s\\src\\Umbraco.Core\\Persistence\\UmbracoDatabaseFactory.cs:line 210
       at Umbraco.Core.Runtime.SqlMainDomLock.<AcquireLockAsync>d__13.MoveNext() in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\SqlMainDomLock.cs:line 58
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Umbraco.Core.Runtime.MainDom.Acquire() in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\MainDom.cs:line 143
    
    
    Umbraco.Core.Exceptions.BootFailedException: Boot failed. ---> System.TimeoutException: Cannot acquire MainDom
       at Umbraco.Core.Runtime.MainDom.Acquire() in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\MainDom.cs:line 172
       at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
       at Umbraco.Core.Runtime.MainDom.get_IsMainDom() in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\MainDom.cs:line 211
       at Umbraco.Core.Runtime.CoreRuntime.AcquireMainDom(IMainDom mainDom) in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 471
       at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer) in D:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 183
       --- End of inner exception stack trace ---
    
  • Dan 64 posts 208 karma points
    1 day ago
    Dan
    100

    it looks like I figured it out changing the connectionstring from MultipleActiveResultSets=False; to MultipleActiveResultSets=True; made it work.

Please Sign in or register to post replies

Write your reply to:

Draft