UpFile ขึ้น server แล้วจะรันหน้าที่เป็นรายงาน .rpt แล้ว Error
Error in File C:\WINDOWS\TEMP\referNew {28FA1413-F5D8-4821-BD76-5CB6BCAD5EFA}.rpt:
Access to report file denied. Another program may be using it.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Error in File C:\WINDOWS\TEMP\referNew {28FA1413-F5D8-4821-BD76-5CB6BCAD5EFA}.rpt:
Access to report file denied. Another program may be using it.
Source Error:
Line 43:
Line 44: Dim rpt As New ReportDocument()
Line 45: rpt.Load(Server.MapPath("~/referNew.rpt"))
Line 46: rpt.SetDataSource(dt)
Line 47: Me.CrystalReportViewer1.ReportSource = rpt