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
    İdris
    0

    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 

    Thanks.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 01, 2014 @ 15:26
    Dennis Aaen
    0

    Hi Idris,

    If it an SQLCE database you are using take a look at this link: http://stackoverflow.com/questions/2408480/increase-the-size-of-sql-compact-3-5-sdf-file-using-c-sharp

    Or if you are using a Microsoft SQL database, this link may help you http://technet.microsoft.com/en-us/library/ms175890.aspx

    /Dennis

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

     

    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
    NDDT
    0

    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
    Christine
    0

    Was this resolved? I have the same problem

  • Heather Floyd 610 posts 1032 karma points MVP 6x c-trib
    Jun 17, 2021 @ 19:26
    Heather Floyd
    1

    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:

Draft