title: Getting deployment error HRESULT: 0x80070002 System cannot find the file specified when adding a file to the solution in Visual Studio 2010
body: <p>I added a Schema.xml file to a list instance in my solution. When I attempt to deploy the solution, it throws an exception saying that it cannot find the specified file HRESULT 0x80070002. If I remove the Schema.xml, it deploys fine. </p>
  
  <p>I have checked the Elements.xml to make sure the CustomSchema attribute is correct, which it is.</p>
  
  <p>I have checked the SharePointProjectItem.spdata file to make sure it is referencing the file correctly, which it is.</p>
  
  <p>The Schema.xml deployment type is specified as ElementFile.</p>
  
  <p>I have deleted the bin and obj folders as well as retracted, cleaned, and reloaded the project. Issue still exists.</p>
  
  <p>Any ideas as to where the deployment step is looking for this file and how to resolve it?</p>
  
  <p>Thanks in advance!</p>