Click here to Skip to main content
16,005,206 members
Home / Discussions / C#
   

C#

 
QuestionImage retrieval from ImageList is slow? Pin
Judah Gabriel Himango10-May-04 4:39
sponsorJudah Gabriel Himango10-May-04 4:39 
AnswerRe: Image retrieval from ImageList is slow? Pin
Heath Stewart10-May-04 4:47
protectorHeath Stewart10-May-04 4:47 
GeneralRe: Image retrieval from ImageList is slow? Pin
Judah Gabriel Himango10-May-04 4:53
sponsorJudah Gabriel Himango10-May-04 4:53 
GeneralRe: Image retrieval from ImageList is slow? Pin
Judah Gabriel Himango10-May-04 6:19
sponsorJudah Gabriel Himango10-May-04 6:19 
GeneralRe: Image retrieval from ImageList is slow? Pin
leppie10-May-04 11:55
leppie10-May-04 11:55 
Generaljumping from one form to another Pin
michael.wikstrom10-May-04 3:29
michael.wikstrom10-May-04 3:29 
GeneralRe: jumping from one form to another Pin
Heath Stewart10-May-04 3:35
protectorHeath Stewart10-May-04 3:35 
GeneralSending binary data with webservices Pin
Edgar R. C.10-May-04 3:01
Edgar R. C.10-May-04 3:01 
I'm trying to send .asf (audio stream) using a Client and a webserver, both in C#. When I try to submit data I get this exception:

"The request failed with HTTP status 413: Request Entity Too Large."

The file I'm trying to send is about 3-5 Mb.

Client:
<br />
  FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);<br />
  BinaryReader br = new BinaryReader(fs);<br />
  byte[] fileRD = br.ReadBytes((int)fs.Length);<br />
  fs.Close();<br />
  br.Close();<br />
  wrGravadorWS.GravadorPA wsGravadorPA = new wrGravadorWS.GravadorPA();<br />
  ret = wsGravadorPA.Save(fileRD);  <br />


Webservice:
<br />
[WebMethod]<br />
  public string Save(byte[] gravacao) <br />
  {<br />
    ......<br />
  }<br />


The code works fine when working with small files.

I use IIS 5.0. On MSDN there's no information about IIS 5.0, just IIS 6.0. I have made MANY researchs about this and I couldn't find solution.

This is all I have:


413-Request Entity Is Too Large
For security reasons, you can limit the size of the entity-body of an HTTP request by modifying the MaxRequestEntityAllowed metabase property. When an entity-body of a client request exceeds the size that is specified in the MaxRequestEntityAllowed property, IIS returns a 413 error. If this error is logged for an individual request, an application on the Web server might have encountered an unexpected event and generated a request that is too large. If this error is logged for many requests, a malicious user might be attempting to compromise your Web server.


Where I cant make this change on iis 5? (the IIS 6 metabase is a xml file). On registry, it doesn't make any diference.

Thank you!!

Edgar
GeneralRe: Sending binary data with webservices Pin
Heath Stewart10-May-04 3:09
protectorHeath Stewart10-May-04 3:09 
GeneralRe: Sending binary data with webservices Pin
Edgar R. C.10-May-04 3:57
Edgar R. C.10-May-04 3:57 
GeneralRe: Sending binary data with webservices Pin
Heath Stewart10-May-04 4:30
protectorHeath Stewart10-May-04 4:30 
GeneralRe: Sending binary data with webservices Pin
Edgar R. C.11-May-04 9:27
Edgar R. C.11-May-04 9:27 
GeneralRe: Sending binary data with webservices Pin
Heath Stewart10-May-04 4:39
protectorHeath Stewart10-May-04 4:39 
QuestionINT Declarations? Pin
Anonymous10-May-04 2:41
Anonymous10-May-04 2:41 
AnswerRe: INT Declarations? Pin
Heath Stewart10-May-04 2:55
protectorHeath Stewart10-May-04 2:55 
GeneralC# Builder Pin
sreejith ss nair10-May-04 1:01
sreejith ss nair10-May-04 1:01 
GeneralRe: C# Builder Pin
Heath Stewart10-May-04 2:36
protectorHeath Stewart10-May-04 2:36 
QuestionHow to compare the file? Pin
m7779-May-04 22:37
m7779-May-04 22:37 
AnswerRe: How to compare the file? Pin
Heath Stewart10-May-04 2:52
protectorHeath Stewart10-May-04 2:52 
Questionhow to invoke API function which has pointer param ? Pin
fu09-May-04 21:58
fu09-May-04 21:58 
AnswerRe: how to invoke API function which has pointer param ? Pin
Mazdak9-May-04 22:41
Mazdak9-May-04 22:41 
AnswerRe: how to invoke API function which has pointer param ? Pin
Mazdak9-May-04 22:48
Mazdak9-May-04 22:48 
AnswerRe: how to invoke API function which has pointer param ? Pin
Heath Stewart10-May-04 3:04
protectorHeath Stewart10-May-04 3:04 
AnswerRe: how to invoke API function which has pointer param ? Pin
fu011-May-04 17:24
fu011-May-04 17:24 
GeneralLogon Problem using DataSets with Crsytal Reports Pin
AAQ9-May-04 21:07
AAQ9-May-04 21:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.