C
C#14mo ago
u41c

❔ Visual Studio build error: "mark of the web"???

Get this error every time I try to build my project. All I did was add a toolstrip to a form and now I cannot build and run my project.
No description
8 Replies
u41c
u41cOP14mo ago
I recursively used Unblock-File in powershell to try to remove this mark, but it still gives me this error message.
mtreit
mtreit14mo ago
Strange, Unblock-File should have removed the mark of the web stream Run streams.exe on the file What's the output?
u41c
u41cOP14mo ago
I don't have streams.exe
mtreit
mtreit14mo ago
winget install sysinternals
u41c
u41cOP14mo ago
Okay what I ended up doing is just copying the contents of the file into a new file and now it builds
mtreit
mtreit14mo ago
Does the original file that it didn't like still exist? If so I would check if the Zone.Identifier:$Data stream exists on it. Which should have been removed if you ran Unblock-File. You don't actually need streams.exe, you can do something like this in powershell:
Get-Content Form1.resx:Zone.Identifier:`$Data
Get-Content Form1.resx:Zone.Identifier:`$Data
u41c
u41cOP14mo ago
I deleted it. Should've kept it and inspected it beforehand. Might be in my recycle bin Lemme check
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server