My VB.net 2010 project is running under .net framework 2.0. It has reportviewer control displaying rdlc report (local report).
The references of the reports included in the project are Microsoft.ReportViewer.Common.dlland Microsoft.ReportViewer.WinForms.dll. There is no proplem running the program in my computer.
When the excutable file of the project plus the the references were save on another machine, the program runs ok except when displaying the report with the reportviewer. The exception indicates theMicrosoft.ReportViewer.ProcessingObjectModel.dll is missing.
I then copy the file Microsoft.ReportViewer.ProcessingObjectModel.dllto the same directory of the excutable file. When displaying the report, is still give exception. This time the exeption is differnet.
The excepiton is not shown in the excepiton window but at the reportviewer control.
The exception reads like this:
An error occured during local report processing.
Failed to load expression host assembly.
Details: Request for the permission of type 'System.Permissions.SecurityPermission, mscorlib,
Version-2.0.0.0, Culture=neutral,PublicKey Token=b77a5c561934e089' failed.
What can go wrong here? I copied the Microsoft.ReportViewer.ProcessingObjectModel.dllto the program directory. Is it the right way to sovle the missing dll file problem?
Kindly advise.
Thank you in advance.
TS Lim