Error on loading

Stimulsoft Reports.NET discussion
Post Reply
fabio
Posts: 6
Joined: Thu Oct 09, 2008 2:25 pm
Location: brasil

Error on loading

Post by fabio »

Hi !

When I try to run my app a get the following error:
Object of type 'Stimulsoft.Report.Components.StiPage' cannot be converted to type 'Stimulsoft.Report.Components.StiPage'.

The code is:

Code: Select all

1      Dim relatorio As StiReport = New StiReport()
2      Dim caminho As String = HttpContext.Current.Server.MapPath(String.Empty)
3      Dim arquivo As String = caminho + "/boletoBancario1.mrt"
4
5      relatorio.Load(arquivo)
6      relatorio.RegData("tb_local", tb_local)
7
8      relatorio.Compile()
9      relatorio.Render()
This error rises on line 5 (load)
The file exists and the path is correct.

Thank's in advance

Fábio Marcos
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Error on loading

Post by Vital »

Hello Fabio,

On your computer exist two different version of SR, for example one in GAC, one in reference. Please update all locations of SR assemblies.

Thank you.
fabio
Posts: 6
Joined: Thu Oct 09, 2008 2:25 pm
Location: brasil

Error on loading

Post by fabio »

Ok.
Thank's !
You are right.... but....

How do a I do this ?
"...Please update all locations of SR assemblies."
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Error on loading

Post by Edward »

Hello, Fabio.

The folders which contain Stimulsoft assemblies are the following:

C:\Program Files\Stimulsoft ...

Please scan all those folders and replace all dlls there with new versions of Stimulsoft*.dll files.

Also please clear the GAC. For that open 'C:\windows\assembly' folder using Windows Explorer and delete all dlls from there which have 'Stimulsoft' in the beginning of their names.

Thank you.
Post Reply