emad elsherbiny
emad elsherbiny

Reputation: 3

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.

Upvotes: 0

Views: 3710

Answers (1)

Andrianto Dwi Laksono
Andrianto Dwi Laksono

Reputation: 91

CMIIW,

What I do in publishing an app which has report viewer, is installing report viewer redistributable package on your published computer (e.g 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.

Upvotes: 1

Related Questions