B4J Question error CS0016: Could not write to output file Access is denied


Licensed User
Hi everyone,

When I go to Project/build standalone package I see error CS0016 on the logs and I also see that the company's antivirus software is treating this as Malware.
  • B4JPackager11 Version 1.21
  • error CS0016: Could not write to output file 'c:\Users\mainuser\MY PRODUCT FILTER.exe' -- 'Access is denied. '
    • I tried Debug Mode (I know we are not supposed to do this)
    • I tried Release
    • I tried Release obfuscated (just to see what happens)
    • in all instances, I got the error CS0016
    • When I run the exe from a package that I compile a while back gets deleted by the antivirus software
Tehtris EPP (antivirus software)
  • Advanced Threat Control has blocked a process that has been detected as malicious.

Any way to solve this problem?
Could signing the exe help? (not sure how to do this)

Thanks in advance for any help


Active Member
Licensed User
Longtime User
Upvote 0