Black Render

Hello,

I am trying to do a render in cycles but when I render all I get is a solid black render. I can view the scene in the rendered viewport and it looks fine but it will not render for some reason. Any idea why?

Any idea why?
Post your blend file to http://www.pasteall.org/blend/, tell us the download link and we’ll tell you why the render is black

Remember to pack any textures in your blend file from the File / External Data menu

I solved the problem. I had hidden objects in front of the camera.