简体   繁体   中英

Report Services crashes in visual studio debugger for local report when page number parameters are added

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?

This is a bit of a shot in the dark but my next move would be to disable the Visual Studio hosting process.

  • Right Click on project and select Properties
  • Go to the Debug Tab
  • Uncheck "Enable 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 :) ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM