Muralidharand
asked on
Microsoft ReportViewer in Sharepoint
I have a creating a .aspx page in VS2008 with a reportviewer control and a .rdlc report file with the data coming from a DataSet.XSD file. This report is connecting to a SQL server. When i run the page on my development machine everything works great. But when i place the file in the web directory inside sharepoint it gives me this error:
The control type 'Microsoft.Reporting.WebFo rms.Report Viewer' is not allowed on this page. The type is not registered as safe.
I added the assembly Microsoft.Reporting.WebFor ms to the web.config file in the web directory. I also added the SafeControl tag for the assemly.
<add assembly="Microsoft.Report Viewer.Web Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A" />
<SafeControl Assembly="Microsoft.Report Viewer.Web Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
When i added the safecontrol tag the page gives me this error:
This page has encountered a critical error. Contact your system administrator if this problem persists.
Are there other steps i need to do inorder to get the report viewer to work on a sharepoint page??
The control type 'Microsoft.Reporting.WebFo
I added the assembly Microsoft.Reporting.WebFor
<add assembly="Microsoft.Report
<SafeControl Assembly="Microsoft.Report
When i added the safecontrol tag the page gives me this error:
This page has encountered a critical error. Contact your system administrator if this problem persists.
Are there other steps i need to do inorder to get the report viewer to work on a sharepoint page??
Well for one a typical ASP.NET page won't run natively in SharePoint. Was there a web link that convinced you this would work?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Please review
Be aware that with an upgrade or even update to SharePoint your manual changes to the web.config file can be wiped out. SharePoint likes to *own* the configuration files and DLL's used in the installation.
ASKER
We have to add Reportviewer control in the safe control list in sharepoint web.config file.