Remove the Mark of the Web: Visual Studio 2019 Build Error

I’m getting ready to start another semester of teaching Windows Form Application programming at Buffalo State College and over the summer our installation of Visual Studio has been upgraded to 2019 (I taught using 2015 last semester). While there’s not a lot of changes, one thing that threw me off is this “remove the mark of the web” build error:


Error Couldn't process file frmMain.resx 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. FinancialCalculations
There are a lot of proposed solutions out there, but this is what worked for me:

  1. Unblock the file in Windows ExplorerClose the project in Visual Studio 2019
  2. Find the file in Windows Explorer
  3. Right click and go to Properties
  4. On the General tab, look at the bottom where it says “This file came from another computer and might be blocked to help protect this computer.” and click the Unblock checkbox
  5. Click OK, then re-open the project and try building it again

Now you should be able to build your Visual Studio 2019 project without being stopped by this “remove the mark of the web” error.

I hope this helps you, too and good luck to all of the students starting or returning this semester!

Comments
  • Edward Beck
    Posted February 26, 2020 8:10 am 0Likes

    Thanks that was a great help!

  • Paku
    Posted August 3, 2020 7:54 pm 0Likes

    Thanks heaps!

  • EZRA EPHREM
    Posted August 14, 2020 2:59 pm 0Likes

    Thanks, this problem drove me nuts this morning at work, thansk for the solution, by the way it is not documented anywhere

  • Jack Eisenfeld
    Posted August 27, 2020 3:37 pm 0Likes

    I am receiving the “mark of the web” error but, when I go to Properties of the RESX file, there is no option to unblock the file. Is there a setting or something in Windows 10 that will cause Windows to give me this option?

    • Eric Nagel
      Posted August 30, 2020 10:44 am 0Likes

      Jack and I emailed back and forth and he discovered, “I had the Form1.resx file in a Dropbox folder. When I copied it to my hard drive (C:), the Unblock option appeared.”

      Maybe that will help someone.

  • GSMUNITED
    Posted September 17, 2020 12:02 am 0Likes

    if you don’t see the unblock attribute you follow this https://youtu.be/qiBCGqpXpUw

  • Natalie
    Posted October 1, 2020 4:57 pm 0Likes

    THANK YOU for that insight! My computer died, the program worked on that one. When I got my new computer, downloaded the file and tried to run it, I got this error. I tried many things until I came across this. THANK YOU! (Florida adult learner student learning C# via VS2019 Windows Form App).

Leave A Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.