添加页码参数时,Report Services 在本地报表的 Visual Studio 调试器中崩溃
我有一份如下所示的报告:
该报告没有什么特别之处,这是我的第一份报告已经为我的应用程序提供了报告服务(我们正在从水晶报告过渡)。
这是一个本地报告,在视觉工作室之外运行良好。但是,如果我在 Visual Studio 中使用右下角文本框(表达式为 =Globals.PageNumber & " of " & Globals.TotalPages
)运行它,它就会崩溃。如果我移除盒子,它就会运行。
它崩溃并显示以下错误代码:
具有显示名称的程序集 '表达式_主机_9191d5a6e4724724b792f551d1c7a8e9' 无法在“LoadFrom”中加载 AppDomain 的绑定上下文 ID 1. 失败原因是: System.IO.FileNotFoundException:可以 不加载文件或程序集 '表达式_主机_9191d5a6e4724724b792f551d1c7a8e9, 版本=11.2.30319.1,文化=中立, PublicKeyToken=null' 或其之一 依赖关系。系统找不到 指定的文件。
有谁知道我做错了什么?
I have a report that looks like this:
There isn't anything really special about the report, it's my first report I've made with reporting services for my application (we're transitioning from crystal reports).
It's a local report that runs fine outside of visual studio. However, if I run it inside visual studio with that bottom right corner textbox (the expression is =Globals.PageNumber & " of " & Globals.TotalPages
) it crashes. If I remove the box, it runs.
It crashes with this error code:
The assembly with display name
'expression_host_9191d5a6e4724724b792f551d1c7a8e9'
failed to load in the 'LoadFrom'
binding context of the AppDomain with
ID 1. The cause of the failure was:
System.IO.FileNotFoundException: Could
not load file or assembly
'expression_host_9191d5a6e4724724b792f551d1c7a8e9,
Version=11.2.30319.1, Culture=neutral,
PublicKeyToken=null' or one of its
dependencies. The system cannot find
the file specified.
Does anyone know what I'm doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这有点盲目,但我的下一步行动是禁用 Visual Studio 托管进程。
此特定项目类型可能不支持托管进程,在这种情况下它将显示为灰色(我会错的: ))。
This is a bit of a shot in the dark but my next move would be to disable the Visual Studio hosting process.
It's possible this particular project type doesn't support the hosting process in which case it will be grayed out (and I'll be wrong :) ).