While working on Reporting Services at a client site I came across this error when trying to preview a report in BIDS:
The report preview failed because the report could not be built. Read the errors, warnings and messages in the Error List window for specific build failures.
An error was raised in the Error List window below with the following message:
Access to the path ‘C:\Users\Jose\Documents\Visual Studio 2008\Projects\Report Project\bin\Debug\Report.rdl’ is denied
The root cause why this happens is unclear to me, but it seems that the Debug folder’s permissions get changed to Read Only for no apparent reason as can be seen on the screenshot below:
The workaround is to uncheck the Read-only attribute checkbox for the entire Debug folder or simply delete the Debug folder. BIDS will recreate this folder when you click on the Preview tab. If I come up with the root cause of this issue I will update this post.
The development environment is:
- VMWare virtual machine
- Windows Server 2008-R2 64-bit
- SQL Server Reporting Services 2008-R2 64-bit