title: Unable to add a service reference - locked/read only
body: <p>Whenever I go to add a service reference I get the error:</p>
  
  <blockquote>
    <p>Failed to add Service Reference 'Servicereference1.reference'<br>
    Error: Unable to check out the current file. The file may be read-only or locked, or you may need to check the file out manually.</p>
  </blockquote>
  
  <p>I already had a service reference in the project, but it broke somehow and gave me an error that stated:</p>
  
  <blockquote>
    <p>Could not find default endpoint element that references contract (servicename)</p>
  </blockquote>
  
  <p>The endpoints in both the web.config and the service reference config were the same (localhost)</p>
  
  <p>I also could not update that reference as I would get the same 'unable to check out current file' error. </p>
  
  <p>EDIT: The problem isn't native to just this project. I tried to make a new, totally separate project, and add a service reference to that and I got the same error. </p>