首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Azure Web作业中的LocalReport呈现

Azure Web作业中的LocalReport呈现
EN

Stack Overflow用户
提问于 2017-10-30 19:49:29
回答 1查看 416关注 0票数 1

我有一个MVC web应用程序运行在Azure。我们使用Microsoft.Reporting.WebForms.LocalReport实例来针对web应用程序使用的数据库运行报表。有些数据集非常大,呈现可能需要很长时间。因此,我们决定将报表的呈现作为Web作业卸载到一个单独的App中。应用程序在我的开发环境中正确运行,但当它作为web作业上载时,它会崩溃,web作业日志中有以下异常:

代码语言:javascript
复制
[10/30/2017 17:16:48 > 81a023: ERR ] Unhandled Exception: Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ---> Microsoft.Reporting.DefinitionInvalidException: The definition of the report '' is invalid. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.TypeInitializationException: The type initializer for 'Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatVersion' threw an exception. ---> System.ArgumentException: The path is not of a legal form.
[10/30/2017 17:16:48 > 81a023: ERR ]    at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
[10/30/2017 17:16:48 > 81a023: ERR ]    at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
[10/30/2017 17:16:48 > 81a023: ERR ]    at System.IO.Path.GetFullPathInternal(String path)
[10/30/2017 17:16:48 > 81a023: ERR ]    at System.IO.Path.GetFullPath(String path)
[10/30/2017 17:16:48 > 81a023: ERR ]    at System.Diagnostics.FileVersionInfo.GetFullPathWithAssert(String fileName)
[10/30/2017 17:16:48 > 81a023: ERR ]    at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)
[10/30/2017 17:16:48 > 81a023: ERR ]    at Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatVersion.<>c__DisplayClass1.<.cctor>b__0()
[10/30/2017 17:16:48 > 81a023: ERR ]    at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.<>c__DisplayClass1.<Run>b__0(Object state)
[10/30/2017 17:16:48 > 81a023: ERR ]    at System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback callback, Object state)
[10/30/2017 17:16:48 > 81a023: ERR ]    at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.Run(ContextBody callback)
[10/30/2017 17:16:48 > 81a023: ERR ]    at Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatVersion..cctor()

调用LocalReport.Render()方法时会引发错误。

报表定义是从数据库中的表中读取的,因此如果需要对报表进行更改,则不需要重新编译或重新发布任何内容。

我的问题是,为什么会发生这种情况,我该如何解决?

提前谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-11-01 08:46:48

未处理异常: Microsoft.Reporting.WinForms.LocalProcessingException:

根据Azure 正式文件,Microsoft不支持在本地处理模式下配置的reportViewer。

在Microsoft中不支持在本地处理模式下配置的ReportViewer。 我的问题是,为什么会发生这种情况,我该如何解决?

由于Azure WebApp是沙盒,如果Cloudservice是可以接受的,请尝试使用Cloudservice。关于如何从Visual迁移Web应用程序并将其发布到Azure,我们可以参考这个文档

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47023126

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档