Hi,
Let me describe the issue that I have come across step by step:
- First, I created a simple SharePoint Hosted Application
- In the main page (Default.aspx) I want to use a ReportViewerWebPart in order to display an SSRS report
- I have registered the assembly correctly and included the control withoutsetting yet the ReportPath
<RSWP:ReportViewerWebPart id="m_sqlRsWebPart" runat="server" SuppressWebPartChrome="true" Height="100%" Width="100%" />
- At this point, if I run the application, the WebPart container is created, but indicating an error ~ "The web part is not correctly configured"
- So, I set the ReportPath but my problem comes into place: "Sorry, this site hasn't been shared with you."
- This issue is happening for any value that I assign to the ReportPath. Either if I write a valid path to an.rdl file or if I write a dummy text, I get the same access denied result. I am accessing the application using the SharePoint site administrator account so for sure I have access to the website.
So, I have a few questions:
- First of all, can we use WebParts inside SharePoint Hosted applications ?
- Where should I continue my investigation in order to overcome the access denied issue ? Should I set additional parameters to the ReportViewerWebPart ? Should I wrap the ReportViewerWebPart in other containers ?
Any help or suggestion would be greatly appreciated!
Many thanks!