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.XmlTextReaderIm pl.Throw(E xception e) at System.Xml.XmlTextReaderIm pl.ParseRo otLevelWhi tespace() at System.Xml.XmlTextReaderIm pl.ParseDo cumentCont ent() at System.Xml.XmlReader.MoveT oContent() at System.Xml.Linq.XElement.L oad(XmlRea der reader, LoadOptions options) at System.Xml.Linq.XElement.P arse(Strin g text, LoadOptions options) at BPELServices.BPELServices. IBService( String ibXML)
Please Help
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"
if i change to
<httpRuntime maxRequestLength="10000000
Error: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReaderIm
Please Help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER