Windows error 0x80070050, -2147024816

Detailed Error Information

FILE_EXISTS[1]

MessageThe file exists.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code80 (0x0050)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x00000050.

Questions

35votes
6answers

Visual Studio error: The "GenerateResource" task failed unexpectedly ... The file exists

I am trying to build a solution with many projects, and I'm getting this error for a Windows Service project: The "GenerateResource" task failed unexpectedly. System.Runtime.InteropServices.COMException (0x80070050): The file exists. (Exception from HRESULT: 0x80070050) at Microsoft.Build.Shared.NativeMethodsShared.InprocTracking.WriteContextTLogs(String intermediateDirectory, String tlogRootName) at Microsoft.Build.Utilities.FileTracker.WriteContextTLogs(String intermediateDirectory, String taskName) at Microsoft.Build.Tasks.GenerateResource.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost [...] read more
visual-studio
7votes
1answer

Trying to create a scheduled task to run once using C++ , Task Scheduler 1.0 on win7

I'm trying to create a very simple program which will run Notepad after two minutes (these are all simplified to make a clearer question). I tried to merge some of MSDN's examples and to my surprise everything compiled successfully, when running the program a .job task is created in C:\Windows\Tasks. [...] read more
c++
windows
winapi
scheduled-tasks
2votes
1answer

Clone virtual machine with Server 2008 R2 and Hyper-V?

I've recently just started working with Hyper-V, and so far it's quite nice. However, I've been running into problems with what seems like it should be the most basic of workflows. I've set up a baseline Server 2008 R2 configuration, and exported it with the intention of using the export [...] read more
hyper-v
hyper-v-server-2008-r2
clone
import
2votes
2answers

C# WIA Image Scanning fails with HRESULT: 0x80070050

I'm hoping someone has come across this - I'm trying to capture images from a document scanner using WIA, however on random machines when attempting to transfer the image result - WIA reports "The file exists. - HRESULT: 0x80070050)". On All machines with this issue, initial use of the software [...] read more
c#
wia
image-scanner
1vote
2answers

adding extensions to a certificate request ( password-challenge ) with C# and CertENrollLib

I have to add extensions to a certificate request ( CSR ) in such a way that I respect a given structure. Namely this oneASN .1 structure [https://i.stack.imgur.com/yjqD9.png] On the left is the structure I must respect for the chalenge password, on the right the structure I get when I [...] read more
c#
smartcard
certenroll
0votes
1answer

cmd, avoiding the error "0x80070050: The file exists" when moving into Recycle bin

I'm deleting a lot of files (around one million) on windows server 2012 via cmd. I want them to go to the recycle bin, so I'm not using the del command, but the recycle.exe of CmdUtils. The problem is that sometimes cmd stops with the message: > An unexpected error [...] read more
cmd.exe
0votes
1answer

Sharepoint 2010 workflow error, unable to open file

I created my list and workflow that starts automatically on new entry on list. I have another workflow that checks my list and waits for my column to come be a specific status. Then that workflow create entry in doc library. After creation I tested it a lot and everything [...] read more
sharepoint-2010
sharepoint-workflow
0votes
2answers

Sharepoint lockout

Recently a guy from our 3rd line team thought it would be funny to delete my account from AD. This has now been re-added. Everything is back to normal apart from my Access to Sharepoint sites. I am getting The file exists. (Exception from HRESULT: 0x80070050) Error on all sites. [...] read more
sharepoint
active-directory

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0