HelloI have created a site from themodelgallery.but nowafter many gallerieshave been created when I goto add a photogives methis error:
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 ]
Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere la traccia dello stack.
Dettagli eccezione: System.Data.SqlServerCe.SqlCeException: 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 ]
Errore nel codice sorgente:
Riga 38: var fileExtension = Path.GetExtension(file.FileName).Trim();
Riga 39: var fileBytes = fileUpload.GetBytes();Riga 40: db.Execute(@"INSERT INTO Photos Riga 41: (GalleryId, UserId, Description, FileTitle, FileExtension, ContentType, FileSize, UploadDate, FileContents) VALUES
Riga 42: (@0, @1, @2, @3, @4, @5, @6, @7, @8)", galleryId, WebSecurity.CurrentUserId, "", fileTitle, fileExtension, |
File di origine: g:\Siti Web\TopGan\Upload.cshtml Riga:40
Traccia dello stack:
[SqlCeException (0x80004005): 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 ]] System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr) +48 System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor) +297 System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options) +646 System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery() +21 WebMatrix.Data.Database.Execute(String commandText, Object[] args) +116 ASP._Page_Upload_cshtml.Execute() in g:\Siti Web\TopGan\Upload.cshtml:40 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197 System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +69 System.Web.WebPages.WebPage.ExecutePageHierarchy() +151 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76 System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +114 |
How can Ido to solve itand make surethat the databasewill growcapacity as?
Ps. I state that Iam very experienced andpertantif I mentionedstep by stepoperationsto doThanks