old win app needs to read/write/delete xml file under win10 22h2

Tran Dee 0 Reputation points
2023-08-28T01:59:29.1666667+00:00

I have an old Windows app written around 2004. The app needs to create/read/write an XML file. If the app is installed in Win7 and then upgraded to all versions of Win10, it will work ok. However, if it is installed under Win10 21H1 and newer, it cannot create/read/write the XML file. I THINK it used to work ok if installed under Win10 2004.

So something was changed in the Win10 updates, but I don't know how to fix it.

I have tried changing the security ownership (read/write/delete) and Windows7 compatibility, but it didn't work.

Anyone has any idea as to how to fix this?

Thanks in advance.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,774 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,833 questions
Windows 10 Compatibility
Windows 10 Compatibility
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Compatibility: The extent to which hardware or software adheres to an accepted standard.
459 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,779 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tran Dee 0 Reputation points
    2023-09-27T02:25:30.12+00:00

    Thank you for recommending SysInternals Process Monitor . It turns out that the app was trying to create a folder in C:\program files\Common Files and win10 22h2 blocked it. I had to manually create the folder and grant the app the read/write rights to the folder and that solved the problem.