在此处输入图像描述我想将现有的旧 Reportviewer 升级到新的 Reportviewer 2016。我正在使用 .net framework 4.6 并且它在旧版本中完美运行。
现在,当我升级到版本 14 时,它会给出运行时错误(无异常)。
值不能为 null 或空。参数名称:elementID
我已经进行了所有必要的更改,但仍然收到此错误。我在下面提到了 URL。
- https://docs.microsoft.com/en-us/sql/reporting-services/application-integration/integrating-reporting-services-using-reportviewer-controls-get-started
- https://social.msdn.microsoft.com/Forums/sqlserver/en-US/07b569ac-af15-4092-bd42-6aa826b39463/issue-with-report-viewer-control-v14?forum=sqlreportingservices
错误信息:
Server Error in '/' Application.
Value cannot be null or empty.
Parameter name: elementID
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Value cannot be null or empty.
Parameter name: elementID
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Value cannot be null or empty.
Parameter name: elementID]
System.Web.UI.ScriptComponentDescriptor..ctor(String type, String elementID) +127
Microsoft.Reporting.WebForms.ReportViewerClientScript.SetViewerInfo(ReportViewer viewer, String reportAreaId, String promptAreaRowId, String docMapAreaId, String fixedTableId, String topLevelUpdatePanelId, String docMapUpdatePanelId, String promptSplitterId, String docMapSplitterId, String docMapHeaderOverflowId, String directionCacheId, String browserModeCacheId, ClientPrintInfo clientPrintInfo) +163
Microsoft.Reporting.WebForms.ReportViewer.OnPreRender(EventArgs e) +4335
System.Web.UI.Control.PreRenderRecursiveInternal() +162
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6925
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2103.2