Copied to clipboard

Flag this post as spam?

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

  • İdris 34 posts 184 karma points
    Dec 31, 2013 @ 20:04

    The database file is larger than the configured maximum database size.

    Hello everyone,

    I have that error,

    Parser Error Message: The database file is larger than the configured maximum database size. This setting takes effect on the first concurrent database connection only. [ Required Max Database Size (in MB; 0 if unknown) = 257 ]

    I really need your help 


  • Dennis Aaen 4495 posts 18201 karma points admin hq c-trib
    Jan 01, 2014 @ 15:26
    Dennis Aaen

    Hi Idris,

    If it an SQLCE database you are using take a look at this link:

    Or if you are using a Microsoft SQL database, this link may help you


  • İdris 34 posts 184 karma points
    Jan 02, 2014 @ 12:18


    You need to locate the connection string and add: Max Database Size = 4096 (4GB), it works. Wait for 10 minutes.

    web.config file

    <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf Max Database Size=4096"

       providerName="System.Data.SqlServerCe.4.0" />

  • NDDT 68 posts 240 karma points c-trib
    Oct 24, 2016 @ 18:37

    This doesn't work for me. I changed my connection-String to:

    <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf; Max Database Size=4096;" providerName="System.Data.SqlServerCe.4.0" />

    But i still get an error. I cant access the backend or frontend.

  • Christine 115 posts 288 karma points
    May 10, 2019 @ 14:17

    Was this resolved? I have the same problem

  • Heather Floyd 582 posts 892 karma points MVP 4x c-trib
    Jun 17, 2021 @ 19:26
    Heather Floyd

    Changing the Max Database Size=4096; as suggested caused a "Boot fail" (Umbraco 8.13.1). The log file indicated the issue:

    -> System.ArgumentException: The specified value for the parameter Max Database Size is invalid. The valid range of the value for the parameter is from 16 to 4091.
       at System.Data.SqlServerCe.SqlCeConnectionStringBuilder.set_MaxDatabaseSize(Int32 value)
       at System.Data.SqlServerCe.SqlCeConnectionStringBuilder.set_Item(String keyword, Object value)

    So, I updated it to Max Database Size=4091; and the site loaded fine.

Please Sign in or register to post replies

Write your reply to: