Error: Maximum request length exceeded.

Author Message
 Posted 2/7/2013 12:00:25 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 8/27/2019 7:45:01 AM
Posts: 36, Visits: 425
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)



Marcelo Blank www.blank.com.br

Tags:
ES
Post #31790
Add to Twitter Add to Facebook
 Posted 2/7/2013 1:28:27 AM
StrataFrame Developer

StrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame Developer

Group: StrataFrame Developers
Last Login: 5/16/2018 3:20:37 AM
Posts: 2,982, Visits: 2,482
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.
Post #31791
Add to Twitter Add to Facebook
 Posted 2/7/2013 8:48:20 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 8/27/2019 7:45:01 AM
Posts: 36, Visits: 425
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: 

Marcelo Blank www.blank.com.br
Post #31804
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.