Marg shows “File access is denied” when a second Windows user opens it on a shared server. The cause is that Marg’s files only allow the account that installed it. One command fixes it by giving every user access to each file. However, the error returns within hours unless you also add a scheduled task.
We found and fixed this on our own server on 22 and 23 November 2026, running Marg ERP AI+ on Windows Server 2022.
What the Marg File Access Is Denied Error Looks Like
The message on our server read: “File access is denied c:\margerp\snmanri1.ini”. The file name may differ on yours, but the first four words are the same.

It appears at a specific moment. The Administrator, who installed Marg, opens it without any trouble. Then a second person signs in to the same server with their own Windows login and starts Marg. Marg stops with the message before it reaches the company list.
So the pattern to look for is simple. One login works, and every other login fails.
Why Marg Shows File Access Is Denied
Marg was installed under one Windows account. Its files are set to allow that account, and other logins are shut out.
Normally, that would be easy to change. In Windows, a file takes its permissions from the folder it sits in. This is called inheritance. You change the folder once, and every file inside follows.
Marg’s files do not follow. On our server, about 90 of Marg’s own files had inheritance switched off. As a result, each of those files kept its own permission and ignored the folder.
You can check one file yourself. Open PowerShell as Administrator and run this, using the file name from your own error message:
(Get-Acl C:\MARGERP\snmanri1.ini).AreAccessRulesProtectedIf the answer is True, that file ignores the folder’s permissions. That is the cause of the error.
Each of the three accounting programs we tested has a setup fault of this kind. Our Tally vs Busy vs Marg on cloud comparison lists them side by side. Busy’s version of this problem is in our Busy Jet database engine error fix.
Why Sharing the Marg Folder Does Not Fix It
Marg’s own help has a page for an “Access Denied” alert. It gives the cause as a permission issue on the Marg folder. The steps on Marg’s help page share the folder with Everyone and with Users, both at Read/Write.
That page is written for client computers that reach Marg over an office network. Our case was different. We had several people signing in to one server over Remote Desktop.
We tried the same idea first. We gave the Users group permission on the whole Marg folder. Nothing changed, and the second user still saw the error.
The reason is the one above. A folder permission reaches a file only through inheritance. Because Marg’s files have inheritance switched off, the new permission never arrived.

How to Fix File Access Is Denied in Marg
The fix is to set the permission on each file directly, and not on the folder. Sign in as Administrator, open PowerShell or Command Prompt as administrator, and run this:
icacls "C:\MARGERP\*" /grant "Users:M" /T /QIf Marg is installed in another folder, change the path. Here is what each part does, according to Microsoft’s icacls reference:
- /grant “Users:M” gives the Users group Modify access. It adds to the existing permissions and removes nothing.
- /T applies it to every file in the folder and its subfolders.
- /Q hides the success messages, so only errors are shown.
Then test it. Sign in as the second user and open Marg. On our server, Marg opened at once, and the fix was still in place after a restart.
If you would rather start from a clean machine, a plain Windows VPS takes the same steps. For how many users each server size carries, see our Marg on cloud price guide.
Why the Error Comes Back After a Few Hours
The first fix does not last on its own. A few hours after we ran it, the error was back for some users. We checked and found 35 files without the permission.
The reason is that Marg keeps creating files as people work. Each new file starts with inheritance switched off, just like the originals. So it never receives the permission you set earlier.

The answer is to repeat the fix automatically. We created a scheduled task that runs the same command every 15 minutes. Run this once as Administrator:
schtasks /Create /TN "MargPermissions" /SC MINUTE /MO 15 /RU SYSTEM /RL HIGHEST /TR "icacls C:\MARGERP\* /grant Users:M /T /C /Q" /FThe task is named MargPermissions and runs as the SYSTEM account, so it works when nobody is signed in. The extra /C tells the command to carry on if one file is busy. After we added the task, every file had the permission again, and the error stopped returning.
To confirm the task exists, run this:
schtasks /Query /TN "MargPermissions"It should list the task with a next run time within 15 minutes.
Is This Permission Safe
It is a fair question, because the fix is broad. After it, every Windows login on the server can change Marg’s files.
On a server used only by your own staff, we consider that acceptable. Those people already work in Marg all day. In addition, Marg’s own user rights still apply. A person who cannot see a report inside Marg still cannot see it after this change.
However, think twice on a server shared with outsiders. If people who should not touch your accounts can sign in to the same machine, move Marg to a server of its own first.
If the Fix Does Not Work
We did not need anything beyond the two commands. Even so, three other causes are worth ruling out. We have not tested the first two ourselves.
Microsoft’s documentation for this message, File access is denied (Error 1705), describes it as an attempt to write to a file that is “write-protected or open exclusively by another”. That points to two checks:
- A read-only file. Right-click the file named in the error, open Properties, and see whether Read-only is ticked.
- A file held by another program. A backup tool or an antivirus scan may be holding the file. Try again when it has finished.
The third cause looks similar but is a different problem. If the extra person cannot sign in to Windows at all, the block is not in Marg. Windows Server allows only two people to connect without Remote Desktop licences. Our RDS CAL guide explains that limit.
Final Thoughts
The Marg “File access is denied” error has one cause on a shared server: Marg’s files allow only the account that installed it, and they ignore the folder’s permissions. Two commands deal with it. The first gives every user access to each file. The second repeats that every 15 minutes, because Marg keeps creating new files.
Our Marg on cloud servers are delivered with both steps already in place. If you are setting up your own and get stuck, contact us and we will help.
FAQs
It means Marg tried to open one of its own files and Windows refused. On a shared server, this happens because Marg’s files allow only the Windows account that installed it. Any other login is blocked until you give the Users group access to each file.
Marg was installed by the Administrator, so its files allow that account. Other Windows logins have no permission on those files. Giving permission on the folder does not help, because Marg’s files have inheritance switched off and ignore the folder.
Marg creates new files as people work, and each new file starts without the permission. On our server, 35 files were missing it a few hours after the first fix. A scheduled task that reapplies the permission every 15 minutes stops the error from returning.
No. After the fix, our test users opened Marg with ordinary Windows logins and worked in the same company at the same time. Nobody needed administrator rights.
Yes. On our server, the permission was still in place after a restart. The scheduled task also keeps running after a restart, because it runs as the SYSTEM account and does not depend on anyone being signed in.
