Wednesday, September 17, 2008

Report server report viewer 404 - File or directory not found

With SQL Server 2008 and IIS7, you may run into this error like I did. The fix for me was to do the following:

Under IIS area, double-click on Handler Mappings icon. At the Action pane on your right, click on Add Managed Handler. At the Add Managed Handler dialog, enter the following: Request path: Reserved.ReportViewerWebControl.axd Type: Microsoft.Reporting.WebForms.HttpHandler Name: Reserved-ReportViewerWebControl-axd Click OK.

You may also need to add this to your web.config, although I think this is only for older versions of IIS:

<add name="Reserved-ReportViewerWebControl-axd"
path="Reserved.ReportViewerWebControl.axd" verb="*"
type="Microsoft.Reporting.WebForms.HttpHandler" resourceType="Unspecified"/> in
the <handlers> section.

10 comments:

Mark said...

Very helpful, thanks. ;-)

Andrew said...

Extremely helpful - thanks!

gnanduuu said...

didn't work for me :(

zico said...

thanks......

Jared said...

The handler that needs to be added in the web.config file also needs to be added for IIS 7 but in a different place:

http://otkfounder.blogspot.com/2007/11/solving-reportviewer-rendering-issue-on.html

buiu said...

Thanks a lot! Solved my problem! :)

Scott said...

This fixed my problem. Thanks so much for your post!

brm said...

Thank you!

Kevin said...

Awesome. This fixed our reportviewer problem.

Curxis said...

Thank goodness for Google and blogger archives. You'd think that over a year later this issue would have been resolved - but no. Thanks for the info; VERY helpful.