Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Are there any workarounds to make Reportviewer work??

jaime's Avatar

jaime

21 Feb, 2011 02:32 PM

I can't view my reports when my app is deployed to appharbor. Locally it works fine but when deployed only the reportviewer "skeleton" shows up, but no data is dispalyed.

Would there be any workaround?

Thanks

  1. Support Staff 1 Posted by friism on 21 Feb, 2011 02:44 PM

    friism's Avatar

    Could you point us to a url where the problem is evident? Also, if you invite support(at)appharbor.com, we can start taking a look at your code.

  2. 2 Posted by jaime on 22 Feb, 2011 05:28 PM

    jaime's Avatar

    Hi Michael, thanks for wanting to look into this issue. I set up a little
    testreport at:

    http://www.condominiosconectados.com.br/reporttest.aspx

    where u can see the problem.

    I will also invite support at appharbor.com as u suggested.

    Regards,
    Jaime Baum

    2011/2/21 Michael Friis <
    [email blocked]>

  3. Support Staff 3 Posted by friism on 23 Feb, 2011 05:21 PM

    friism's Avatar

    It seems you are not committing solution and project files. This makes it slightly difficult for me to debug your code on my machine.

    Having said that, it seems there's supposed to be a Reserved.ReportViewerWebControl.axd file in the root of your site. The missing file is what generates a 404 on http://www.condominiosconectados.com.br/testreport.aspx which iframes Reserved.ReportViewerWebControl.axd.

    This error is probably due to the fact the report viewer dlls are not found on the server. Try pushing those along with the rest of you code, as mentioned in this post.

    Let me know if this doesn't resolve your issue.

  4. friism closed this discussion on 23 Feb, 2011 05:21 PM.

  5. jaime re-opened this discussion on 24 Feb, 2011 01:48 PM

  6. 4 Posted by jaime on 24 Feb, 2011 01:48 PM

    jaime's Avatar

    Hi Michael, thanks for your answer.

    Thing is, all the required dlls:
    Microsoft.ReportViewer.Common.dll
    Microsoft.ReportViewer.WebForms.dll
    Microsoft.ReportViewer.ProcessingObjectModel.dll

    are already in my bin folder, and I suppose these were uploaded too at the
    first push

    And as for Reserved.ReportViewerWebControl.axd, I have this in web.config:

    <add path="Reserved.ReportViewerWebControl.axd" verb="*"
    type="Microsoft.Reporting.WebForms.HttpHandler,
    Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral,
    PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>

    After some more research I found this link:

    http://stackoverflow.com/questions/4901127/asp-net-4-0-type-not-found-when-using-ms-report-control

    Where it's implied that the hosting service should deploy a support package
    for report viewer on their server.

    Like I said, on my dev machine it works fine, and deployed to my former
    host, it also works as expected.

    Regards,

    Jaime
    2011/2/23 Michael Friis <
    [email blocked]>

  7. 5 Posted by jaime on 24 Feb, 2011 02:16 PM

    jaime's Avatar

    Hi Michael, I send testreport.aspx to my former host; pls check out:
    http://condominiosconectado.web252.uni5.net/testreport.aspx

    As u can see it work as expected there as I explained in my previous post.

    2011/2/24 Jaime Baum <[email blocked]>

  8. Support Staff 6 Posted by friism on 24 Feb, 2011 05:11 PM

    friism's Avatar

    Sorry, hadn't looked for the dll's -- they were there.

    Turns out you need to add the control to the <handlers> section of your web.config. It works on your site now, if you fetch from your appharbor repo, you will get a working web.config.

    Here's the current handlers section in in system.werbServer:

        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated"/>
            <add name="Reserved-ReportViewerWebControl-axd" path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" resourceType="Unspecified" preCondition="integratedMode" />
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </handlers>
    
  9. friism closed this discussion on 24 Feb, 2011 05:11 PM.

  10. jaime re-opened this discussion on 25 Feb, 2011 04:30 AM

  11. 7 Posted by jaime on 25 Feb, 2011 04:30 AM

    jaime's Avatar

    Hi Michael, thanks for fixing the problem.

    I already updated my local web.config too

    Regards,

    Jaime

    2011/2/24 Michael Friis <
    [email blocked]>

  12. friism closed this discussion on 25 Feb, 2011 05:50 AM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac