简体   繁体   中英

report viewer not working when published

I get the error

An error occurred during local report processing.

The definition of the report 'Reports\\REpersAccDet.rdlc' is invalid.

An unexpected error occurred in Report Processing. Could not load file or assembly 'Microsoft.SqlServer.Types, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

CMIIW,

What I do in publishing an app which has report viewer, is installing report viewer redistributable package on your published computer (eg server or client computer). It depends on your IDE version.

If you use VS 2010, then you must install 2010 package (download here ).

If you use greater version (VS2012+), there two files you must install.

  1. Report viewer 2012 runtime (download here )
  2. SQLSysClrTypes (for x86 download here , for x64 download here )

Hope it can solve your problem.

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