Error: Maximum request length exceeded.


Author
Message
Marcelo Blank
Marcelo Blank
StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)
Group: StrataFrame Users
Posts: 0, Visits: 414
Hy,

How do I avoid this error when trying to upload large files ... I have to save a file with 25 mb in SQLServer, using ES.





Enterprise Server Error

Message:

Maximum request length exceeded.

Client IP:

192.168.0.1

Details:

HttpException
Maximum request length exceeded.

Source : System.Web

Stack Trace:

at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.get_InputStream()
at MicroFour.StrataFrame.Enterprise.Server.RemoteDataSource.ProcessRequest(HttpContext context)


Tags
StrataFrame Team
S
StrataFrame Developer (6.3K reputation)StrataFrame Developer (6.3K reputation)StrataFrame Developer (6.3K reputation)StrataFrame Developer (6.3K reputation)StrataFrame Developer (6.3K reputation)StrataFrame Developer (6.3K reputation)StrataFrame Developer (6.3K reputation)StrataFrame Developer (6.3K reputation)StrataFrame Developer (6.3K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Howdy Marcelo,

This error is a restriction in IIS for security purposes.  IIS limits the default request size to something like 2MB.  To change it, you can add the following to the web.config file:

<configuration>
   <system.web>
      <httpRuntime maxRequestLength="25000" /> <!-- For some reason, they decided to use KB for this, so 25000 = 25MB -->
   </system.web>
</configuration>

You might make this something like 30000 just to give yourself some extra room.  I don't know what the actual max value you can put in here would be.  I think it's different depending upon what version of IIS you're running.
Marcelo Blank
Marcelo Blank
StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)StrataFrame User (156 reputation)
Group: StrataFrame Users
Posts: 0, Visits: 414
Hi Ben Chase

Thanks.




Now I have another issue saving a large file, using ES: Timeou in DataLayer...





MicroFour.StrataFrame.Data.DataLayerSavingException occurred
  HResult=-2146233088
  Message=O tempo limite da operação foi atingido
  Source=MicroFour StrataFrame Business
  StackTrace:
       em MicroFour.StrataFrame.Data.DataLayer.UpdateDataTable(DataTable TableToUpdate, Boolean Transactional, String TransactionKey)
       em MicroFour.StrataFrame.Data.DataLayer.Save(DataTable TableToSave, Boolean Transactional, String TransactionKey)
       em MicroFour.StrataFrame.Business.BusinessLayer.Save(Boolean Transactional, String TransactionKey)
       em MicroFour.StrataFrame.Business.BusinessLayer.Save()
       em VbiIrp.Business.ClientObjects.DocumentoConteudo.Save(String transactionKey) na D:\PROJETOS\IRP\vbiirp_2013_02_05_1015\vbiirp\VbiIrp.WinApp\VbiIrp.Business\ClientObjects\DocumentoConteudo.cs:linha 96
  InnerException: System.Net.WebException
       HResult=-2146233079
       Message=O tempo limite da operação foi atingido  --> TIMEOUT
       Source=System
       StackTrace:
            em System.Net.HttpWebRequest.GetResponse()
            em MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.SendRequestCore(BaseParams Params, RemoteDataSourceCommand Command, String dataSourceKey)
            em MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.ᜀ(BaseParams A_0, RemoteDataSourceCommand A_1)
            em MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.ᜃ(DbCommand A_0, Boolean A_1, String A_2)
            em MicroFour.StrataFrame.Data.DbDataSourceItem.InternalExecuteReader(DbCommand Command, Boolean IsTransactional, String TransactionKey)
            em MicroFour.StrataFrame.Data.SqlDataSourceItem.UpdateRow(QueryInformation QueryInfo, DataRow RowToUpdate, ConcurrencyExceptionHandler ConcurrencyHandler, AddRowErrorHandler RowErrorHandler, Boolean RecreateCommand)
            em MicroFour.StrataFrame.Data.DbDataSourceItem.UpdateRow(QueryInformation QueryInfo, DataRow RowToUpdate, ConcurrencyExceptionHandler ConcurrencyHandler, AddRowErrorHandler RowErrorHandler)
            em MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.UpdateRow(QueryInformation QueryInfo, DataRow RowToUpdate, ConcurrencyExceptionHandler ConcurrencyHandler, AddRowErrorHandler RowErrorHandler, Boolean RecreateCommand)
            em MicroFour.StrataFrame.Data.DbDataSourceItem.UpdateRow(QueryInformation QueryInfo, DataRow RowToUpdate, ConcurrencyExceptionHandler ConcurrencyHandler, AddRowErrorHandler RowErrorHandler)
            em MicroFour.StrataFrame.Data.DataLayer.UpdateDataTableThread(Object ThreadParams)
       InnerException: 
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search