.NET Framework Developer Center > .NET Development Forums > .NET Remoting and Runtime Serialization > How to Pass higher Length of Byte Array to the remoting method
Ask a questionAsk a question
 

AnswerHow to Pass higher Length of Byte Array to the remoting method

  • Monday, October 19, 2009 8:43 AMRaviKumar KS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Dear all,

    I am using a windows application and the businness logic is present in the remote server.
    Once particular method takes bytearray as input parameter...Whenever the method call is made the function returns value .This is limited for the particular bytearray length. (4109228 bytes).

    If the length of bytearray crosses 4109228 bytes.I am getting an error that "input stream is not valid binary format".

    How to Pass higher Length of Byte Array to the remoting method... Greater than 4 MB?

    I believe something is missing in web.config or app.config...?
    What could be the issue...?
     
    Any sugesstions are welcome....

    Thanks
    Ravikumar

Answers

  • Thursday, October 29, 2009 9:15 AMRoman.Ivanashko Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    If your remote object is hosted in the IIS you may need to specify MaxRequestLength in the web.config. Default is 4096Kb. http://msdn.microsoft.com/en-us/library/e1f13641%28VS.71%29.aspx
    • Marked As Answer byRaviKumar KS Friday, October 30, 2009 8:58 AM
    •  

All Replies

  • Thursday, October 29, 2009 9:15 AMRoman.Ivanashko Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    If your remote object is hosted in the IIS you may need to specify MaxRequestLength in the web.config. Default is 4096Kb. http://msdn.microsoft.com/en-us/library/e1f13641%28VS.71%29.aspx
    • Marked As Answer byRaviKumar KS Friday, October 30, 2009 8:58 AM
    •