VS Restricted Network Drive

clmcgov 1 Reputation point
2022-10-03T18:05:20.207+00:00

Hi,

I just want to compile some code that lives on a network drive. Nothing works. I removed the 'mark of the web' with this powershell command: "Get-ChildItem -Path 'G:/Development' -Recurse | Unblock-File". I verified that they are unblocked. I went into trust settings and told it not to check anything ever. I still get about 1000 of these:

Error: Couldn't process file AddUserForm.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.

What do I do? This network drive is not dangerous, and not using it is not an option.

Thanks!
-Cullen

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
    2022-10-04T08:18:07.127+00:00

    Hi @clmcgov ,

    Welcome to Microsoft Q&A forum.

    Did you set trust settings for all of the browsers(include system default web browser, IE and Edge)? Did you download the codes(solution/project) to a local folder to compile it or directly compiling the codes on the network drive? Sometimes the issue is caused by the codes and the resources. As the error mentions XXXX.resx file, you may need to check the codes and modify them to confirm whether something need to be used/referenced locally.

    Best Regards,
    Tianyu

    0 comments No comments