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:
- Close the project in Visual Studio 2019
- Find the file in Windows Explorer
- Right click and go to Properties
- 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
- 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
Thanks that was a great help!
Paku
Thanks heaps!
EZRA EPHREM
Thanks, this problem drove me nuts this morning at work, thansk for the solution, by the way it is not documented anywhere
Jack Eisenfeld
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
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.
Sharif Zaman
Yes it did help!
Sam
Thanks I had to do this to every file.
GSMUNITED
if you don’t see the unblock attribute you follow this https://youtu.be/qiBCGqpXpUw
Natalie
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).
Sharif Zaman
Thanks so much for taking the time to post how to handle this error. I also did not see the check box as it was in my OneDrive. Once I moved it to my desktop, the Security: unblock checkbox appeared. Once unblocked, the checkbox option is removed. I then could put back in the OneDrive and it was still OK. Thanks Again.
Bill Gunn
MANY thanks Eric – simplest and best solution.
I have been marking student assessments – and come across this error on about half of the submissions. And yes – it has been driving me mad !
greatly appreciated
Aarti
Thank You, for this post.
Dave
Thanks! So nice to find a solution online that is easy to follow and worked!