title: Access to the Path Error in Visual Studio
body: <p><strong>This issue was resolved with SQL Server 2008 R2 Cumulative Update 5 / SP1 / SQL Server 2012 RTM</strong></p>
  
  <hr>
  
  <p>On occassion when I try to build a Reporting Services project as part of either deploying or previewing a report in Visual Studios I receive the following error:</p>
  
  <p>Access to the path 'C:\My Solution Folder\bin\Debug\My Report.rdl' is denied.</p>
  
  <p>What appears to happen is the file in the \bin\Debug\ folder has been changed to read-only.  I can "fix" the symptom by removing the read-only flag on the impacted file.  I would like to find a way to avoid this error altogether since this happens usually multiple times a day.</p>
  
  <p>I verified the file is not being saved to my source control system, so it doesn't seem like my source control plugin would cause this problem.  The problem seems to have started with SQL Server 2008 R2 and this makes sense given that I am pretty certain the \bin\Debug\ folders didn't exist prior to this version of the Reporting Services project.</p>
  
  <p>I tried changing the project OutputPath to a path that is not under the project folder, but Visual Studios would't allow me to do this.</p>