由于文件resx位于Internet或限制区域中或文件上带有网络标记,因此无法处理 [英] 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

查看:503
本文介绍了由于文件resx位于Internet或限制区域中或文件上带有网络标记,因此无法处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2017中调试c#API编码时遇到问题.调试未启动并显示错误消息,如

I am facing an issue while debugging c# API Coding in Visual studio 2017. Debugging not started and showing a error message like

对这个错误消息有任何想法吗?

Any idea about this error message?

推荐答案

如果您是从互联网上下载的文件,无论是单独下载还是在.zip文件或类似文件中,它可能已被锁定",因为它被标记为即将到来来自互联网区域.许多程序会以此为标志,表明不应信任该内容.

If you downloaded the file from the internet, either separately or inside a .zip file or similar, it may have been "locked" because it is flagged as coming from the internet zone. Many programs will use this as a sign that the content should not be trusted.

最简单的解决方案是在Windows资源管理器中右键单击该文件,选择属性",然后在此对话框的底部,您应具有取消阻止"选项.请记住,单击确定以接受更改.

The simplest solution is to right-click the file in Windows Explorer, select Properties, and along the bottom of this dialog, you should have an "Unblock" option. Remember to click OK to accept the change.

如果您从存档中获取文件,通常最好先取消阻止该存档,如果该文件被标记为来自Internet区域,并且您将其解压缩,则该标志可能会传播到您刚才使用的许多文件中未存档.如果您先取消阻止,则未存档的文件应该没问题.

If you got the file from an archive, it is usually better to unblock the archive first, if the file is flagged as coming from the internet zone, and you unzip it, that flag might propagate to many of the files you just unarchived. If you unblock first, the unarchived files should be fine.

为此还有一个Powershell命令,取消阻止文件:

There's also a Powershell command for this, Unblock-File:

> Unblock-File *

此外,还有一些编写代码的方法也可以删除该锁.

Additionally, there are ways to write code that will remove the lock as well.

这篇关于由于文件resx位于Internet或限制区域中或文件上带有网络标记,因此无法处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆