Build fails with “Couldn't process file *.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file.”
TroubleshootingSummary
Description
The following error message appears for one or more .resx resource files in a yFiles demo project:
MSB3821: Couldn't process file [file] due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
Cause
The underlying cause is that the respective resource file has the so-called mark of the web applied to it. This is a marker that browsers place on downloaded files so that other applications can make informed decisions on whether to trust that file or not. It is also propagated to files extracted from archives, depending on the application the archive has been extracted with (e.g. Windows Explorer). The .NET Framework resource compiler honors this marker and refuses to compile those resource files for security reasons.
This is also explained in the Microsoft documentation about this error code.
Solution
You can also unblock the files manually:
- Open the properties of the ZIP archive you downloaded
Check the Unblock checkbox next to the message “This file came from another computer and might be blocked to help protect this computer”:

- Re-extract the contents of the ZIP archive again and overwrite the existing files
Alternatively you can just unblock the yFiles assemblies in the lib directory as described above. All other files in the distribution should be unaffected by having such a marker.
See also
- KB736: A similar issue with the .NET Framework License Compiler, which prevents a successful build if the yFiles assemblies have a mark of the web.