Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Couldn't process file xxx.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file

I have issue while i try to build project in VS2012.

Can't build due to error:

Couldn't process file xxx.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.

similar question is here 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

but I try that option and have no luck, because I didn't downloaded file from internet. That project was build from scratch. In project after selecting Properties, in Windows Explorer nothing happened, i don't have "unblock" option, only default 3 options (read only, hidden, archived).

I have same error and can't build or rebuild project. I have theory that is recent error after update Windows. Before update, everything works fine. Any ideas ?

like image 970
Jirki Avatar asked Jul 16 '18 07:07

Jirki


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is C in C language?

What is C? C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

Is C language easy?

Compared to other languages—like Java, PHP, or C#—C is a relatively simple language to learn for anyone just starting to learn computer programming because of its limited number of keywords.

What is the full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr.


2 Answers

Go to xxx.resx file in Windows File Explorer. Right-click and select properties. At the bottom of the the dialog is an "unblock" option:

Unblock option

Check this and click Apply. Clean your solution and it will build.

like image 100
Ali Avatar answered Sep 23 '22 16:09

Ali


In my case I had the same problem with many files.

My solution with VS Prof. 2017 V15.95 was:

  1. open powershell and execute "dir -Path [directory path] -Recurse | Unblock-File"

  2. rebuild all

like image 34
user2448451 Avatar answered Sep 20 '22 16:09

user2448451