I am uploading .xml file but getting error 'System.OutOfMemoryException' on ds.GetXml(); in asp.net with C#.
small .xml file is working fine but big file not. i am trying with 60 mb file but it failed and getting memory exception on ds.GetXml() method.
Detail view : System.OutOfMemoryException: The function evaluation was disabled because of an out of memory exception.
DataSet dsCompendium = General.getDataSet4mXML(strFilePath,strFileName);
// this is custom function to get dataset from XML : getDataSet4mXML(string,string)
DataTable dtCompendium = dsCompendium.Tables[1];
strXML = dsCompendium.GetXml();
<httpRuntime targetFramework="4.5.1" maxRequestLength="1048576" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
help me out