Page 1 of 1

Error on loading

Posted: Mon Oct 13, 2008 8:49 am
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

Error on loading

Posted: Mon Oct 13, 2008 9:16 am
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.

Error on loading

Posted: Mon Oct 13, 2008 9:24 am
by fabio
Ok.
Thank's !
You are right.... but....

How do a I do this ?
"...Please update all locations of SR assemblies."

Error on loading

Posted: Tue Oct 14, 2008 12:26 pm
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.