Rank: Newbie
Groups: Registered
Joined: 10/20/2015(UTC) Posts: 3 Location: Mexico
|
I need sealreport add to my project asp.net (VB), i add SealLibrary.dll, and i try to load file .srex to simple method, but i have error.
This is my code:
Imports Seal Imports Seal.Model
Public Class ReporteSeal Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim repository As Repository = Repository.Create()
Dim report As Report = Report.LoadFromFile("C:\ProgramData\Seal Report Repository\Reports\Dashboard - Sales.srex", repository)
Dim execution As New ReportExecution()
'report = report
execution.Execute()
While (report.Status <> ReportStatus.Executed)
System.Threading.Thread.Sleep(100)
Dim result As String = Execution.GenerateHTMLResult
Process.Start(result)
End While
End Sub End Class
This is the error:
Error de servidor en la aplicación '/'.
Unable to read the file 'C:\ProgramData\Seal Report Repository\Reports\Dashboard - Sales.srex'. Error al reflejar el tipo 'Seal.Model.Report'. Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.
Detalles de la excepción: System.Exception: Unable to read the file 'C:\ProgramData\Seal Report Repository\Reports\Dashboard - Sales.srex'. Error al reflejar el tipo 'Seal.Model.Report'.
Error de código fuente:
Línea 18: Línea 19: Línea 20: Dim report As Report = Report.LoadFromFile("C:\ProgramData\Seal Report Repository\Reports\Dashboard - Sales.srex", repository) Línea 21: Línea 22:
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
The exception is: System.Exception: Unable to read the file 'C:\ProgramData\Seal Report Repository\Reports\Dashboard - Sales.srex'. It is probably a problem of rights of the user executing IIS to read or location.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/20/2015(UTC) Posts: 3 Location: Mexico
|
Im not sure, because i put the file in the directory "C:\inetpub\wwwroot\cyb" where is my web and is the same error. What other proof can I make to validate other than by permits? Will it be the dll?
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
To check security, an easy try is to configure your application Pool with a local Admnistrator and to configure the IIS User as with also a local Administrator to see if the error remains.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/20/2015(UTC) Posts: 3 Location: Mexico
|
I am running from the source code, not yet published in the IIS, I am administrator, and is the same error. Publish the web application and when start display an error in the SealLibrary.dll library. It does not recognize it as dll.
What library should I consider? Maybe not use the correct library.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/20/2015(UTC) Posts: 3 Location: Mexico
|
I use the C: \ Program Files (x86) \ Seal Report library, or do I have to add the entire project?
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
First make it work with the solution got from GitHub
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.