Nano Hash - криптовалюты, майнинг, программирование

Отчеты RDLC не отображаются после развертывания на сервере IIS. Он работает в той же системе, где я разрабатываю приложение.

Отчет RDLC не отображается после публикации сайта на сервере IIS. Если я публикую в той же системе, где я разрабатываю приложение, оно отображается.

Внешний код asp.net выглядит следующим образом:

<div class="center-block c-report">
    <asp:UpdatePanel ID="upReport" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
                   CssClass="HideWhenReset" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt"
                   Style="text-align: center" SizeToReportContent="True" Width="100%" Height="100%"
                   InteractiveDeviceInfos="(Collection)">
                   <LocalReport ReportPath="Reports\Total_Report.rdlc">
                   </LocalReport>
            </rsweb:ReportViewer>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>

Внутренний код выглядит следующим образом:

private void BindReport(string ReportPath, DataTable Table)
{
    this.ReportViewer1.LocalReport.ReportPath = ReportPath;
    this.ReportViewer1.LocalReport.DataSources.Clear();
    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", Table));
    if (ReportPath != "Reports\\InformationReports\\MembersMailingLabels.rdlc")
        this.ReportViewer1.LocalReport.SetParameters(new ReportParameter("CompanyName", SystemConfig.GetSystemKeyValue("ClientNameAr", false)));
    this.ReportViewer1.LocalReport.Refresh();
}

Из журнала событий получаю следующее исключение:

An error occurred during local report processing. When Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession ()
 When Microsoft.Reporting.WebForms.LocalReport.SetParameters (IEnumerable`1 parameters)
 When MembersDataReport.BindReport (String ReportPath, DataTable Table) in D: \ PublishedWebsite \ asd \ \ InformationReports \ MembersDataReport.aspx.cs: Line 174
 when MembersDataReport.GetData () in D: \ PublishedWebsite \ asd \ Reports \ InformationReports \ MembersDataReport.aspx.cs: Line 144
 at MembersDataReport.btnSearch_Click (Object sender, EventArgs e) in D: \ PublishedWebsite \ asd \ Reports \ InformationReports \ MembersDataReport.aspx.cs: Line 87
 at System.Web.UI.WebControls.Button.OnClick (EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent (String eventArgument) at System .Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) The definition of the report 'Reports \ InformationReports \ MembersDataReport.rdlc' is invalid. When Microsoft.Reporting.ReportCompiler.CompileReport (ICatalogItemContext, Byte [] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ControlSnapshot & snapshot) (When Microsoft.Reporting.LocalService.GetCompiledReportService.GetCompiledReport), Microsoft.Reporting.LocalService.GetCompiledReport (PreviewItemContext. ) When Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession () an unexpected error occurred in Report Processing. When Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat (PublishingContext reportPublishingContext) When Microsoft.Reporting.ReportCompiler.CompileReport (ICatalogItemContext context, Byte [] ReportDefinition, BooleanExpress & GenerationHostWithRithRefusedPermissions, the Microsoft ReportDefinition, BooleanExpress & generateHostWithRithRefusedPermissions could not load Microsoft.Reporting. = 14.0.0.0, Culture = neutral, PublicKeyToken = 89845dcd8080cc91 'or one of its dependencies. The system cannot find the file specified. On Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatWriter.Write (Object obj, Boolean verify, Boolean assertOnInvalidType) When Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.ReportIntermediateFormat.Persistence.IntermediateFormatWriter. At Microsoft.ReportingServices.ReportPublishing.ReportPublishing.InternalCreateIntermediateFormat (Stream definitionStream, String & description, String & language, ParameterInfoCollection & parameters, DataSourceInfoCollection & dataSources, DataSetInfoCollection & sharedDataSetReferences,An error occurred during local report processing. When Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession () When Microsoft.Reporting.WebForms.LocalReport.SetParameters (IEnumerable`1 parameters) When MembersDataReport.BindReport (String ReportPath, DataTable Table) in D: \ PublishedWebsite \ asd \ \ InformationReports \ MembersDataReport.aspx.cs: Line 174 when MembersDataReport.GetData () in D: \ PublishedWebsite \ asd \ Reports \ InformationReports \ MembersDataReport.aspx.cs: Line 144 at MembersDataReport.btnSearch_Click (Object sender, EventArgs e) in D: \ PublishedWebsite \ asd \ Reports \ InformationReports \ MembersDataReport.aspx.cs: Line 87 at System.Web.UI.WebControls.Button.OnClick (EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent (String eventArgument) at System .Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) The definition of the report 'Reports \ InformationReports \ MembersDataReport.rdlc' is invalid. When Microsoft.Reporting.ReportCompiler.CompileReport (ICatalogItemContext, Byte [] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ControlSnapshot & snapshot) (When Microsoft.Reporting.LocalService.GetCompiledReportService.GetCompiledReport), Microsoft.Reporting.LocalService.GetCompiledReport (PreviewItemContext. ) When Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession () an unexpected error occurred in Report Processing. When Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat (PublishingContext reportPublishingContext) When Microsoft.Reporting.ReportCompiler.CompileReport (ICatalogItemContext context, Byte [] ReportDefinition, BooleanExpress & GenerationHostWithRithRefusedPermissions, the Microsoft ReportDefinition, BooleanExpress & generateHostWithRithRefusedPermissions could not load Microsoft.Reporting. = 14.0.0.0, Culture = neutral, PublicKeyToken = 89845dcd8080cc91 'or one of its dependencies. The system cannot find the file specified. On Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatWriter.Write (Object obj, Boolean verify, Boolean assertOnInvalidType) When Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.ReportIntermediateFormat.Persistence.IntermediateFormatWriter. At Microsoft.ReportingServices.ReportPublishing.ReportPublishing.InternalCreateIntermediateFormat (Stream definitionStream, String & description, String & language, ParameterInfoCollection & parameters, DataSourceInfoCollection & dataSources,
DataSetInfoCollection & sharedDataSetReferences,
18.10.2020

  • Было бы полезно получить дополнительную информацию. Вы видите ошибки? Если да, включите их в свой ответ. Включите любой соответствующий код, конфигурацию, версии и т. д. Чем больше информации, тем выше ваши шансы на ответ. 18.10.2020
  • Вы используете тот же SQL Server? RDLC должен быть загружен в диспетчер отчетов сервера. 18.10.2020

Ответы:


1

Убедитесь, что все файлы, связанные с RDLC, присутствуют в опубликованных файлах. Если его нет, скопируйте и вставьте его из файла проекта. вы можете попробовать следующие шаги.

  • Скопируйте папку .rdlc в папку bin в каталоге проекта.
  • Снова разверните проект на сервере.
19.10.2020

2

В дополнение к тому, что файлы действительно находятся на сервере, вы должны правильно сопоставить пути в ASP.NET, используя HttpServerUtility.MapPath.

// Assuming ReportPath is something like '/Reports/MyReport.rdlc'
this.ReportViewer1.LocalReport.ReportPath = HttpContext.Current.Server.MapPath(ReportPath);
19.10.2020
Новые материалы

Кластеризация: более глубокий взгляд
Кластеризация — это метод обучения без учителя, в котором мы пытаемся найти группы в наборе данных на основе некоторых известных или неизвестных свойств, которые могут существовать. Независимо от..

Как написать эффективное резюме
Предложения по дизайну и макету, чтобы представить себя профессионально Вам не позвонили на собеседование после того, как вы несколько раз подали заявку на работу своей мечты? У вас может..

Частный метод Python: улучшение инкапсуляции и безопасности
Введение Python — универсальный и мощный язык программирования, известный своей простотой и удобством использования. Одной из ключевых особенностей, отличающих Python от других языков, является..

Как я автоматизирую тестирование с помощью Jest
Шутка для победы, когда дело касается автоматизации тестирования Одной очень важной частью разработки программного обеспечения является автоматизация тестирования, поскольку она создает..

Работа с векторными символическими архитектурами, часть 4 (искусственный интеллект)
Hyperseed: неконтролируемое обучение с векторными символическими архитектурами (arXiv) Автор: Евгений Осипов , Сачин Кахавала , Диланта Хапутантри , Тимал Кемпития , Дасвин Де Сильва ,..

Понимание расстояния Вассерштейна: мощная метрика в машинном обучении
В обширной области машинного обучения часто возникает необходимость сравнивать и измерять различия между распределениями вероятностей. Традиционные метрики расстояния, такие как евклидово..

Обеспечение масштабируемости LLM: облачный анализ с помощью AWS Fargate и Copilot
В динамичной области искусственного интеллекта все большее распространение получают модели больших языков (LLM). Они жизненно важны для различных приложений, таких как интеллектуальные..