StrataFrame Forum

Error: Maximum request length exceeded.

http://forum.strataframe.net/Topic31790.aspx

By Marcelo Blank - 2/7/2013

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)

By StrataFrame Team - 2/7/2013

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.
By Marcelo Blank - 2/7/2013

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: