Dipal Bhavsar

Dipal Bhavsar

  • NA
  • 367
  • 927

How can i solve this error

Jun 10 2016 3:27 AM

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

Line 20:             DataForproduct(); Line 21:             ReportViewer1.ProcessingMode = ProcessingMode.Local; Line 22:             ReportViewer1.LocalReport.ReportEmbeddedResource = "ReportForStock.rdlc"; Line 23:             ReportViewer1.LocalReport.ReportPath = @"AdminLTE-master\ReportForStock.rdlc"; Line 24:             //ReportViewer1.LocalReport.ReportPath = Server.MapPath("ReportForStock.rdlc");

Answers (3)