Click here to Skip to main content
14,543,577 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hey all,

I'm working on part of a project, and we're using the XmlWriter class of the .NET 2.0 Framework for exporting data onto a local or networked hard-drive. We discovered an issue with one of the installations, where the maximum amount of data being written was limited to 1024KB.

Initially we though this was an issue with the operating system, so we pulled back a copy of the installation to our own computers, and every machine we have tested on has experienced the same problem.

Is there a hidden maximum file limit when writing an XML document using the XmlWriter class? After doing some researching, I believe the maximum size is supposed to be 50MB, however we're capped solely to 1MB. Any data after the 1MB mark is completely omitted (for instance, even in the middle of writing an element, the file can abruptly end.)

Thanks in advance.
Maciej Los 2-Jun-14 12:33pm
Without sample code we can't help you.
I'd suggest to read this: Improving XML Performance[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100