locked
file size limitations on asp.net develmentserver RRS feed

  • Question

  • hi,

    i'm writing a web service which should be able to get a file via wcf. so i defined a binding like this:

    <binding name="WSHttpBinding_IFHS" maxReceivedMessageSize="10000000" messageEncoding="Mtom" > 
              <readerQuotas  maxArrayLength="10000000" /> 
    </binding> 

    (i tried also a lot of other configurations)

    generaly everything works fine until i try to upload a file bigger than 3mb

    the datacontract looks like this
    [DataContract] 
    public class FileData 
    {    
        [DataMember] 
        public string FileName { getset; } 
     
        [DataMember] 
        public byte[] Data { getset; } 

    as i tried already 100 other settings an configurations i'm wondering if the problem maby is the asp.net developmentserver... does it have a kind of "traffic limitation"?

    the exception i get is a communicationexception with the message "the connection has been closed: the connection has been closed unexpected"

    does anybody got the same problems?
    or does sombody know what do do?

    thx
    fritte


    Friday, March 13, 2009 4:23 PM

Answers

  • hi i solved the problem. all you need to know you can find here:

    http://silverlight.net/forums/t/21513.aspx

    look for

    <system.web>
        ... 
       <httpRuntime maxRequestLength="8192" />  // Default was 4096(K) in machine.config.  You can change it to a larger number
    </system.web>
    • Marked as answer by Fritte Sunday, March 15, 2009 8:55 AM
    Sunday, March 15, 2009 8:54 AM