Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

October 8, 2007

IIS 6.0 HTTP Post Size Limitation

Question: Is there a size limitation for the AspXml.LoadRequest method? I am trying to read an HTTP POST XML payload and write it to a file with the following code:

set xml_obj = Server.CreateObject("AspXml.AspXml")
xml_obj.loadRequest()
xml_obj.saveXml(filename)

It works on small files, but on larger files all that gets written to the output file (filename) is:

  <?xml version="1.0" encoding="utf-8" ?>
  <unnamed />

Answer:
If you are using IIS 6.0, this may be the problem:
(see http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a6401b5e-c902-4035-90aa-ee46c270d357.mspx?mfr=true)

AspMaxRequestEntityAllowed Metabase Property (IIS 6.0)

The AspMaxRequestEntityAllowed property specifies the maximum number of bytes allowed in the entity body of an ASP request. If a Content-Length header is present and specifies an amount of data greater than the value of AspMaxRequestEntityAllowed, IIS returns a 403 error response. This property is related in function to MaxRequestEntityAllowed, but is specific to ASP request. Whereas you might set the MaxRequestEntityAllowed property to 1 MB at the general World Wide Web Publishing Service (WWW Service) level, you may choose to set AspMaxRequestEntityAllowed to a lower value, if you know that your specific ASP applications handle a smaller amount of data.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.