Blog :: SSRS-SQL Server Reporting Services :: SSRS - Problem displaying #error when proview in the report when use custom assembly in report.
- เมื่อ 1 เมษายน 2014 เวลา 12 นาฬิกา 20 นาที
- 1,449 Read
- 0 Comment
- 1 Like
- 0 Follower
ปัญหาเวลาใช้ dll ที่สร้างเองใน reporting service เวลา preview report จะเกิด error เกี่ยวกับ permission
Warning 1 [rsRuntimeErrorInExpression] The Value expression for the textrun ‘date_confirmed3.Paragraphs[0].TextRuns[0]’ contains an error: Request for the permission of type 'System.Security.Permissions.RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. C:\SOURCE\namfonu\oztix\solOztixBI\Oztix.BI.Reports.External\SubRpt All Customer Orders in last 24 Hours.rdl 0 0

สาเหตุเกิดจาก
ไม่ได้ add dll file ใน GAC(C:\Windows\assembly)
(สำหรับ window 7)
วิธี add ก็ตามนี้เลย
1. จะต้องเป็น administrator group
2. command prompt run as administrator
3. navigate to path C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64
4. ตามด้วย command : gacutil -i full path of dll file
5. ก็จะสามารถ preview report ได้ตามปกติค่ะ
Warning 1 [rsRuntimeErrorInExpression] The Value expression for the textrun ‘date_confirmed3.Paragraphs[0].TextRuns[0]’ contains an error: Request for the permission of type 'System.Security.Permissions.RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. C:\SOURCE\namfonu\oztix\solOztixBI\Oztix.BI.Reports.External\SubRpt All Customer Orders in last 24 Hours.rdl 0 0
สาเหตุเกิดจาก
ไม่ได้ add dll file ใน GAC(C:\Windows\assembly)
(สำหรับ window 7)
วิธี add ก็ตามนี้เลย
1. จะต้องเป็น administrator group
2. command prompt run as administrator
3. navigate to path C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64
4. ตามด้วย command : gacutil -i full path of dll file
5. ก็จะสามารถ preview report ได้ตามปกติค่ะ
0 Comment
- Have no comment.