[FogBugz #78] Gros Ticket (MB) #140

Open
opened 2023-07-03 23:17:38 +02:00 by fbenoist68 · 21 comments

Assigned To: CLOSED
Project: CAISSE
Area: awcaisse
Category: Bogue
Priority: A fixer impérativement

Assigned To: CLOSED Project: CAISSE Area: awcaisse Category: Bogue Priority: A fixer impérativement
Poster
Owner

Event ID: 609
Date: 2013-07-11T08:31:48Z
Person: Frederik Benoist
Description: Fermé par Frederik Benoist

Event ID: 609 Date: 2013-07-11T08:31:48Z Person: Frederik Benoist Description: Fermé par Frederik Benoist
Poster
Owner

Event ID: 608
Date: 2013-07-11T08:31:48Z
Person: Frederik Benoist
Description: Resolved (Fixed) and assigned to Frederik Benoist by Frederik Benoist

Event ID: 608 Date: 2013-07-11T08:31:48Z Person: Frederik Benoist Description: Resolved (Fixed) and assigned to Frederik Benoist by Frederik Benoist
Poster
Owner

Event ID: 607
Date: 2013-07-11T08:31:31Z
Person: Frederik Benoist
Description: Réouvert (attribué à Frederik Benoist) par Frederik Benoist

Suite ticket de 10Mo (catimini roubaix) et meme 16 Mo !!

Il a fallut modifier machine.config

 

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config
 
    </roleManager>
    <httpRuntime maxRequestLength="25360" />  << AJOUT
  </system.web>
 
et 
 
 
C:\WINDOWS\system32\inetsrv\metabase.xml
AspMaxRequestEntityAllowed="25224800"   << le passer à 25 Méga

 

Event ID: 607 Date: 2013-07-11T08:31:31Z Person: Frederik Benoist Description: Réouvert (attribué à Frederik Benoist) par Frederik Benoist <p> Suite ticket de 10Mo (catimini roubaix) et meme 16 Mo !!</p> <p> Il a fallut modifier machine.config</p> <p> &nbsp;</p> <div> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config</div> <div> &nbsp;</div> <div> &nbsp; &nbsp; &lt;/roleManager&gt;</div> <div> &nbsp; &nbsp; &lt;httpRuntime maxRequestLength=&quot;25360&quot; /&gt; &nbsp;&lt;&lt; AJOUT</div> <div> &nbsp; &lt;/system.web&gt;</div> <div> &nbsp;</div> <div> et&nbsp;</div> <div> &nbsp;</div> <div> <div> &nbsp;</div> <div> C:\WINDOWS\system32\inetsrv\metabase.xml</div> <div> AspMaxRequestEntityAllowed=&quot;25224800&quot; &nbsp; &lt;&lt; le passer &agrave; 25 M&eacute;ga</div> </div> <p> &nbsp;</p>
Poster
Owner

Event ID: 542
Date: 2013-05-27T07:39:15Z
Person: Frederik Benoist
Description: Fermé par Frederik Benoist

Event ID: 542 Date: 2013-05-27T07:39:15Z Person: Frederik Benoist Description: Fermé par Frederik Benoist
Poster
Owner

Event ID: 541
Date: 2013-05-27T07:39:15Z
Person: Frederik Benoist
Description: Resolved (Fixed) and assigned to Frederik Benoist by Frederik Benoist

OK. souci de stack size

Event ID: 541 Date: 2013-05-27T07:39:15Z Person: Frederik Benoist Description: Resolved (Fixed) and assigned to Frederik Benoist by Frederik Benoist <p> OK. souci de stack size</p>
Poster
Owner

Event ID: 524
Date: 2013-04-17T08:41:11Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 524 Date: 2013-04-17T08:41:11Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 523
Date: 2013-04-17T08:28:47Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Tests

C:\projets\DotSoft\CaisseAuto\bManager\swTicket.vb

' fb 07/02/2013

'Imports system.net

Namespace SwTicket

Partial Public Class swTicket

Protected Overrides Function GetWebRequest(ByVal uri As Uri) As System.Net.WebRequest

Dim webRequest As System.Net.HttpWebRequest

webRequest = CType(MyBase.GetWebRequest(uri), System.Net.HttpWebRequest)

'Setting KeepAlive to false

webRequest.KeepAlive = False

webRequest.Timeout = 500000

' fb 07/02/2013 pour test Gros Ticket

'webRequest.ProtocolVersion = HttpVersion.Version10

'webRequest.ReadWriteTimeout = 500000

'webRequest.Credentials = CredentialCache.DefaultCredentials

'webRequest.ServicePoint.Expect100Continue = False

'webRequest.ServicePoint.ConnectionLimit = 1000

'webRequest.Headers.Add("Accept-Encoding", "gzip;deflate")

 

GetWebRequest = webRequest

End Function

End Class

End Namespace

Event ID: 523 Date: 2013-04-17T08:28:47Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> Tests </p> <p> C:\projets\DotSoft\CaisseAuto\bManager\swTicket.vb</p> <p> &#39; fb 07/02/2013</p> <p> &#39;Imports system.net</p> <p> Namespace SwTicket</p> <p> Partial Public Class swTicket</p> <p> Protected Overrides Function GetWebRequest(ByVal uri As Uri) As System.Net.WebRequest</p> <p> Dim webRequest As System.Net.HttpWebRequest</p> <p> webRequest = CType(MyBase.GetWebRequest(uri), System.Net.HttpWebRequest)</p> <p> &#39;Setting KeepAlive to false </p> <p> webRequest.KeepAlive = False</p> <p> webRequest.Timeout = 500000</p> <p> &#39; fb 07/02/2013 pour test Gros Ticket</p> <p> &#39;webRequest.ProtocolVersion = HttpVersion.Version10</p> <p> &#39;webRequest.ReadWriteTimeout = 500000</p> <p> &#39;webRequest.Credentials = CredentialCache.DefaultCredentials</p> <p> &#39;webRequest.ServicePoint.Expect100Continue = False</p> <p> &#39;webRequest.ServicePoint.ConnectionLimit = 1000</p> <p> &#39;webRequest.Headers.Add(&quot;Accept-Encoding&quot;, &quot;gzip;deflate&quot;)</p> <p> &nbsp;</p> <p> GetWebRequest = webRequest</p> <p> End Function</p> <p> End Class</p> <p> End Namespace</p>
Poster
Owner

Event ID: 522
Date: 2013-04-11T14:10:57Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

http://stackoverflow.com/questions/734404/error-using-httpwebrequest-to-upload-files-with-put

 

 

Event ID: 522 Date: 2013-04-11T14:10:57Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> <a href="http://stackoverflow.com/questions/734404/error-using-httpwebrequest-to-upload-files-with-put" rel="nofollow noopener noreferrer" target="_blank">http://stackoverflow.com/questions/734404/error-using-httpwebrequest-to-upload-files-with-put</a></p> <p> &nbsp;</p> <p> &nbsp;</p>
Poster
Owner

Event ID: 521
Date: 2013-04-11T13:57:42Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

http://www.telerik.com/help/aspnet-ajax/upload-uploading-large-files.html

 

<httpRuntime executionTimeout="9000"
maxRequestLength="250000"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"/>

Event ID: 521 Date: 2013-04-11T13:57:42Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> <a href="http://www.telerik.com/help/aspnet-ajax/upload-uploading-large-files.html" rel="nofollow noopener noreferrer" target="_blank">http://www.telerik.com/help/aspnet-ajax/upload-uploading-large-files.html</a></p> <p> &nbsp;</p> <p> &lt;httpRuntime executionTimeout=&quot;9000&quot;<br /> maxRequestLength=&quot;250000&quot;<br /> useFullyQualifiedRedirectUrl=&quot;false&quot;<br /> minFreeThreads=&quot;8&quot;<br /> minLocalRequestFreeThreads=&quot;4&quot;<br /> appRequestQueueLimit=&quot;100&quot;/&gt;</p>
Poster
Owner

Event ID: 520
Date: 2013-04-11T12:46:08Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

C:\projets\DotSoft\CaisseAuto\bManager\swTicket.vb

 

' fb 07/02/2013

'Imports system.net

Namespace SwTicket

Partial Public Class swTicket

Protected Overrides Function GetWebRequest(ByVal uri As Uri) As System.Net.WebRequest

Dim webRequest As System.Net.HttpWebRequest

webRequest = CType(MyBase.GetWebRequest(uri), System.Net.HttpWebRequest)

'Setting KeepAlive to false

webRequest.KeepAlive = False

webRequest.Timeout = 500000

' fb 07/02/2013 pour test Gros Ticket

'webRequest.ProtocolVersion = HttpVersion.Version10

'webRequest.ReadWriteTimeout = 500000

'webRequest.Credentials = CredentialCache.DefaultCredentials

'webRequest.ServicePoint.Expect100Continue = False

'webRequest.ServicePoint.ConnectionLimit = 1000

'webRequest.Headers.Add("Accept-Encoding", "gzip;deflate")

 

GetWebRequest = webRequest

End Function

End Class

End Namespace

Event ID: 520 Date: 2013-04-11T12:46:08Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> C:\projets\DotSoft\CaisseAuto\bManager\swTicket.vb</p> <p> &nbsp;</p> <p> &#39; fb 07/02/2013</p> <p> &#39;Imports system.net</p> <p> Namespace SwTicket</p> <p> Partial Public Class swTicket</p> <p> Protected Overrides Function GetWebRequest(ByVal uri As Uri) As System.Net.WebRequest</p> <p> Dim webRequest As System.Net.HttpWebRequest</p> <p> webRequest = CType(MyBase.GetWebRequest(uri), System.Net.HttpWebRequest)</p> <p> &#39;Setting KeepAlive to false </p> <p> webRequest.KeepAlive = False</p> <p> webRequest.Timeout = 500000</p> <p> &#39; fb 07/02/2013 pour test Gros Ticket</p> <p> &#39;webRequest.ProtocolVersion = HttpVersion.Version10</p> <p> &#39;webRequest.ReadWriteTimeout = 500000</p> <p> &#39;webRequest.Credentials = CredentialCache.DefaultCredentials</p> <p> &#39;webRequest.ServicePoint.Expect100Continue = False</p> <p> &#39;webRequest.ServicePoint.ConnectionLimit = 1000</p> <p> &#39;webRequest.Headers.Add(&quot;Accept-Encoding&quot;, &quot;gzip;deflate&quot;)</p> <p> &nbsp;</p> <p> GetWebRequest = webRequest</p> <p> End Function</p> <p> End Class</p> <p> End Namespace</p>
Poster
Owner

Event ID: 519
Date: 2013-04-11T08:32:57Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

C:\projets\DotSoft\CaisseAuto\bManager\cManager.web.vb

 

Public Function mEnregistrerTicketCompresse(ByVal tableau As Byte()) As Integer

System.Net.ServicePointManager.FindServicePoint(New Uri("http://" & cXmlUrl.psAdresseSiteDonneesCaisse)).ConnectionLimit = 1000

Using sw As SwTicket.swTicket = pServicesWeb.pTicket

sw.Timeout = 500000

Return (CInt(sw.mEnregistreTicketCompress(tableau)))

End Using

End Function

Event ID: 519 Date: 2013-04-11T08:32:57Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> C:\projets\DotSoft\CaisseAuto\bManager\cManager.web.vb</p> <p> &nbsp;</p> <p> Public Function mEnregistrerTicketCompresse(ByVal tableau As Byte()) As Integer</p> <p> System.Net.ServicePointManager.FindServicePoint(New Uri(&quot;http://&quot; &amp; cXmlUrl.psAdresseSiteDonneesCaisse)).ConnectionLimit = 1000</p> <p> Using sw As SwTicket.swTicket = pServicesWeb.pTicket</p> <p> sw.Timeout = 500000</p> <p> Return (CInt(sw.mEnregistreTicketCompress(tableau)))</p> <p> End Using</p> <p> End Function</p>
Poster
Owner

Event ID: 518
Date: 2013-04-11T06:32:41Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

C:\projets\DotSoft\CaisseAuto\swCaisseAuto\web.config

<!--pour integration gros tickets-->
<!--<httpRuntime maxRequestLength="19000" executionTimeout="360000"/>-->

 

C:\projets\DotSoft\CaisseAuto\awCaisse\app.config
<system.web>
<!--pour integration gros tickets--><httpRuntime maxRequestLength="19000" executionTimeout="36000" maxMessageLength="409600" executionTimeoutInSeconds="300"/>
</system.web>

 

Event ID: 518 Date: 2013-04-11T06:32:41Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> C:\projets\DotSoft\CaisseAuto\swCaisseAuto\web.config</p> <p> &lt;!--pour integration gros tickets--&gt;<br /> &lt;!--&lt;httpRuntime maxRequestLength=&quot;19000&quot; executionTimeout=&quot;360000&quot;/&gt;--&gt;</p> <p> &nbsp;</p> <p> C:\projets\DotSoft\CaisseAuto\awCaisse\app.config<br /> &lt;system.web&gt;<br /> &lt;!--pour integration gros tickets--&gt;&lt;httpRuntime maxRequestLength=&quot;19000&quot; executionTimeout=&quot;36000&quot; maxMessageLength=&quot;409600&quot; executionTimeoutInSeconds=&quot;300&quot;/&gt;<br /> &lt;/system.web&gt;</p> <p> &nbsp;</p>
Poster
Owner

Event ID: 394
Date: 2013-02-15T08:48:19Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

http://www.motobit.com/help/scptutl/pa31.htm

To resolve this problem, use one of the following methods:
In the Machine.config file, change the maxRequestLength attribute of the <httpRuntime> configuration section to a larger value. This change affects the whole computer.
In the Web.config file, override the value of maxRequestLength for the application. For example, the following entry in Web.config allows files that are less than or equal to 8 megabytes (MB) to be uploaded:
<httpRuntime maxRequestLength="8192" />

Event ID: 394 Date: 2013-02-15T08:48:19Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> http://www.motobit.com/help/scptutl/pa31.htm</p> <p> To resolve this problem, use one of the following methods:<br /> In the <strong>Machine.config</strong> file, change the maxRequestLength attribute of the &lt;httpRuntime&gt; configuration section to a larger value. This change affects the whole computer.<br /> In the Web.config file, override the value of maxRequestLength for the application. For example, the following entry in Web.config allows files that are less than or equal to 8 megabytes (MB) to be uploaded:<br /> &lt;httpRuntime maxRequestLength=&quot;8192&quot; /&gt;</p>
Poster
Owner

Event ID: 393
Date: 2013-02-15T08:32:11Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

http://www.motobit.com/help/scptutl/pa108.htm



IIS Limits Check and setup



IIS Limit Setup is a simple hta application written in VBS for Internet Explorer. You can check and set base limits for POST requests in IIS6 and IIS7 - MaxRequestEntityAllowed, AspMaxRequestEntityAllowed, UploadReadAheadSize and MaxAllowedContentLength

Event ID: 393 Date: 2013-02-15T08:32:11Z Person: Frederik Benoist Description: Modifié par Frederik Benoist http://www.motobit.com/help/scptutl/pa108.htm<br /> <br /> IIS Limits Check and setup<br /> <br /> IIS Limit Setup is a simple hta application written in VBS for Internet Explorer. You can check and set base limits for POST requests in IIS6 and IIS7 - MaxRequestEntityAllowed, AspMaxRequestEntityAllowed, UploadReadAheadSize and MaxAllowedContentLength
Poster
Owner

Event ID: 327
Date: 2013-02-07T11:27:08Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Dans machine.config (répertoire CONFIG du framework)

A essayer : 
ResponseDeadLockInterval="00:30:00"
ResponseRestartDeadLockInterval="00:30:00"

Event ID: 327 Date: 2013-02-07T11:27:08Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> Dans machine.config (r&eacute;pertoire CONFIG du framework)</p> <p> A essayer :&nbsp;<br /> ResponseDeadLockInterval=&quot;00:30:00&quot;<br /> ResponseRestartDeadLockInterval=&quot;00:30:00&quot;</p>
Poster
Owner

Event ID: 324
Date: 2013-02-06T17:00:34Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

http://stackoverflow.com/questions/383781/increase-file-upload-size-limit-in-iis6

Event ID: 324 Date: 2013-02-06T17:00:34Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> <a href="http://stackoverflow.com/questions/383781/increase-file-upload-size-limit-in-iis6" rel="nofollow noopener noreferrer" target="_blank">http://stackoverflow.com/questions/383781/increase-file-upload-size-limit-in-iis6</a></p>
Poster
Owner

Event ID: 287
Date: 2013-02-05T16:11:18Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

The maxRequestLength indicates the maximum file upload size supported by ASP.NET, the maxAllowedContentLength specifies the maximum length of content in a request supported by IIS. Hence, we need to set both maxRequestLength and maxAllowedContentLength values to upload large files.

Event ID: 287 Date: 2013-02-05T16:11:18Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> The maxRequestLength&nbsp;indicates the maximum file upload size supported by ASP.NET, the maxAllowedContentLength&nbsp;specifies the maximum length of content in a request supported by IIS. Hence, we need to set both maxRequestLength and maxAllowedContentLength values to upload large files.</p>
Poster
Owner

Event ID: 286
Date: 2013-02-05T16:10:53Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Can somebody confirm that for IIS 7.5 I need to set the maxRequestLength and the maxAllowedContentLength values, to be able to upload large files?

If I don't set the maxRequestLength value, I'm not able to upload files larger than approximately 1 Mb. Even while the default IIS 7.5 maxAllowedContentLength value is 30000000 bytes (28.6 Mb).

These two required settings confuse me, hopefully someone can help me out.

The settings:

<system.web>
    <httpRuntime maxRequestLength="153600" executionTimeout="900" />
</system.web>

<system.webServer>
    <security>
        <requestFiltering>
                <requestLimits maxAllowedContentLength="157286400" />
             </requestFiltering>
    </security>
</system.webServer>

Event ID: 286 Date: 2013-02-05T16:10:53Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> Can&nbsp;somebody confirm that for IIS 7.5&nbsp;I need to set the maxRequestLength and the maxAllowedContentLength values, to be able to upload large files?</p> <p> If I don&#39;t set the maxRequestLength value, I&#39;m not able to upload files larger than approximately 1 Mb. Even while the default IIS 7.5 maxAllowedContentLength value is 30000000 bytes (28.6 Mb).</p> <p> These two required settings confuse me, hopefully someone can help me out.</p> <p> The settings:</p> <p> &lt;system.web&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;httpRuntime maxRequestLength=&quot;153600&quot; executionTimeout=&quot;900&quot; /&gt;<br /> &lt;/system.web&gt;</p> <p> &lt;system.webServer&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;security&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;requestFiltering&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;requestLimits maxAllowedContentLength=&quot;157286400&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/requestFiltering&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/security&gt;<br /> &lt;/system.webServer&gt;</p>
Poster
Owner

Event ID: 285
Date: 2013-02-05T16:10:45Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

http://forums.iis.net/t/1169846.aspx

Event ID: 285 Date: 2013-02-05T16:10:45Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> <a href="http://forums.iis.net/t/1169846.aspx" rel="nofollow noopener noreferrer" target="_blank">http://forums.iis.net/t/1169846.aspx</a></p>
Poster
Owner

Event ID: 284
Date: 2013-02-05T16:09:47Z
Person: Frederik Benoist
Description: Attribué à Frederik Benoist par Frederik Benoist

Event ID: 284 Date: 2013-02-05T16:09:47Z Person: Frederik Benoist Description: Attribué à Frederik Benoist par Frederik Benoist
Poster
Owner

Event ID: 283
Date: 2013-02-05T16:09:46Z
Person: Frederik Benoist
Description: Ouvert par Frederik Benoist

Event ID: 283 Date: 2013-02-05T16:09:46Z Person: Frederik Benoist Description: Ouvert par Frederik Benoist
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fbenoist68/mobileportal#140
There is no content yet.