After importing plenty of XML files into application i tried to do modifications on it by using XML document class, for this i created few methods to do modifications.The thing is the starting method it's working fine and when comes to the second one it's displaying System.IO exception like "File is already using another process".So any one help me out how can i solve this issue.Sample code what i'm doing:\[code\]Method1(fileList);Method2(fileList);Method3(fileList); private void Method1(IList<RenamedImportedFileInfo> fileList) { try { string isDefaultAttribute = Resource.Resources.ImportIsDefaultAttribute; string editorsPath = editorsFolderName + Path.DirectorySeparatorChar + meterType; string profilesPath = profileFolderName + Path.DirectorySeparatorChar + meterType; string strUriAttribute = Resource.Resources.ImportUriAttribute; foreach (RenamedImportedFileInfo renameInfo in fileList) { if (renameInfo.NewFilePath.ToString().Contains(editorsPath) && (renameInfo.IsProfileRenamed != true)) { var xmldoc = new XmlDocument(); xmldoc.Load(renameInfo.NewFilePath); if (xmldoc.DocumentElement.HasAttribute(isDefaultAttribute)) { xmldoc.DocumentElement.Attributes[isDefaultAttribute].Value = http://stackoverflow.com/questions/15831079/Resource.Resources.ImportFalse; } XmlNodeList profileNodes = xmldoc.DocumentElement.GetElementsByTagName(Resource.Resources.ImportMeasurementProfileElement); if (profileNodes.Count == 0) { profileNodes = xmldoc.DocumentElement.GetElementsByTagName(Resource.Resources.ImportBsMeasurementProfileElement); } if (profileNodes.Count > 0) { foreach (RenamedImportedFileInfo profileName in oRenamedImportedFileList) { if (profileName.NewFilePath.ToString().Contains(profilesPath)) { if (string.Compare(Path.GetFileName(profileName.OldFilePath), Convert.ToString(profileNodes[0].Attributes[strUriAttribute].Value, CultureInfo.InvariantCulture), StringComparison.OrdinalIgnoreCase) == 0) { profileNodes[0].Attributes[strUriAttribute].Value = Path.GetFileName(profileName.NewFilePath); renameInfo.IsProfileRenamed = true; break; } } } } xmldoc.Save(renameInfo.NewFilePath); xmldoc = null; profileNodes = null; } } oRenamedImportedFileList = null; } catch (NullReferenceException nullException) { LastErrorMessage = nullException.Message; } }\[/code\]Thanks,Raj