Link to home
Start Free TrialLog in
Avatar of gautam_reddyc
gautam_reddyc

asked on

Cannot upload more than 2 MB of data -- ASP.NET Web Services

Hi,
  I have a web service which uploads files to the server..
 when i try to upload more than 2mb of data.. it errors out..

this is my configuration in the web.config
      <httpRuntime maxRequestLength="2097151" executionTimeout="1800" />

if i change to
   <httpRuntime maxRequestLength="10000000" executionTimeout="1800" /> it gives error

Error: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options) at System.Xml.Linq.XElement.Parse(String text, LoadOptions options) at BPELServices.BPELServices.IBService(String ibXML)


Please Help

ASKER CERTIFIED SOLUTION
Avatar of Vikram Singh Saini
Vikram Singh Saini
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gautam_reddyc
gautam_reddyc

ASKER

done..thanks