Are there any workarounds to make Reportviewer work??
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
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
Support Staff 1 Posted by friism on 21 Feb, 2011 02:44 PM
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 Posted by jaime on 22 Feb, 2011 05:28 PM
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]>
Support Staff 3 Posted by friism on 23 Feb, 2011 05:21 PM
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.axdfile 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.
friism closed this discussion on 23 Feb, 2011 05:21 PM.
jaime re-opened this discussion on 24 Feb, 2011 01:48 PM
4 Posted by jaime on 24 Feb, 2011 01:48 PM
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]>
5 Posted by jaime on 24 Feb, 2011 02:16 PM
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]>
Support Staff 6 Posted by friism on 24 Feb, 2011 05:11 PM
Sorry, hadn't looked for the dll's -- they were there.
Turns out you need to add the control to the
<handlers>section of yourweb.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:
friism closed this discussion on 24 Feb, 2011 05:11 PM.
jaime re-opened this discussion on 25 Feb, 2011 04:30 AM
7 Posted by jaime on 25 Feb, 2011 04:30 AM
Hi Michael, thanks for fixing the problem.
I already updated my local web.config too
Regards,
Jaime
2011/2/24 Michael Friis <
[email blocked]>
friism closed this discussion on 25 Feb, 2011 05:50 AM.