Tags

If you create a custom viewer and add in your web.config.

<add key="ReportViewerServerConnection" value= ...>

You will find your Site Ussage report will not working and throw error with your assembly does not implement IReportServerConnection or could not be found. The problem is when you inherit the viewcontrol or IReportServerCredentials you reutrn null on the NetworkCredential. Add below code:

public ICredentials NetworkCredentials
    {
        get { return new NetworkCredential(m_userName, m_password); }
    }

More details on Custom Credentials in the Report Viewer

Advertisements