logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
erick233  
#1 Posted : Wednesday, July 12, 2017 11:18:15 PM(UTC)
erick233

Rank: Newbie

Groups: Registered
Joined: 10/20/2015(UTC)
Posts: 3
Mexico
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:

epf  
#2 Posted : Thursday, July 13, 2017 6:49:57 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

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.
erick233  
#3 Posted : Thursday, July 13, 2017 2:17:03 PM(UTC)
erick233

Rank: Newbie

Groups: Registered
Joined: 10/20/2015(UTC)
Posts: 3
Mexico
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?
epf  
#4 Posted : Thursday, July 13, 2017 3:49:59 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

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.
erick233  
#5 Posted : Friday, July 14, 2017 5:20:30 PM(UTC)
erick233

Rank: Newbie

Groups: Registered
Joined: 10/20/2015(UTC)
Posts: 3
Mexico
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.
erick233  
#6 Posted : Friday, July 14, 2017 6:39:15 PM(UTC)
erick233

Rank: Newbie

Groups: Registered
Joined: 10/20/2015(UTC)
Posts: 3
Mexico
Location: Mexico

I use the C: \ Program Files (x86) \ Seal Report library, or do I have to add the entire project?
epf  
#7 Posted : Saturday, July 15, 2017 6:49:03 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
First make it work with the solution got from GitHub
Users browsing this topic
Guest (2)
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.