Page 1 of 1

Name 'Steema' is not declared and similar errors

Posted: Tue Nov 24, 2009 3:31 am
by 15054069
I'm using VS2008 Pro Version 9.0.30729.1 SP with .NET 3.5 SP1.

I've got a project that used to be a VB6 app, but now needs to run in .NET. I upgraded the solution/project to the version of VS that I'm using. But the code doesn't want to compile.

I've added TeeChart.dll and AxInterop.TeeChart.dll as resources to the project. And now the code throws a bunch of compile errors:

Error 1 'The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)' C:\Projects\Plotter\LC HWKeyDataPlotter

Error 11 Type 'Steema.TeeChart.TChart' is not defined. C:\Projects\Plotter\frmMain.vb 94 34 HWKeyDataPlotter

Error 13 Name 'Steema' is not declared. C:\Projects\Plotter\frmMain.vb 406 45 HWKeyDataPlotter

And a bunch of repeats of these same errors.

So, what can I try to resolve these errors?

Re: Name 'Steema' is not declared and similar errors

Posted: Wed Nov 25, 2009 2:37 pm
by yeray
Hi vector,

I've made a test with a new simple application in VB6 with a single chart and a teecommander on the form. And the following code:

Code: Select all

Private Sub Form_Load()
  TeeCommander1.ChartLink = TChart1.ChartLink
 
  TChart1.Aspect.View3D = False
  TChart1.AddSeries scBar
  
  TChart1.Series(0).FillSampleValues 6
End Sub
I've saved the project and opened in VS2008. The upgrade wizard has converted the project without problems an the application works fine in the new environment. Note that AxInterop.TeeChart.dll and Interop.TeeChart.dll were added to the reference list automatically for me here.
Then I've removed both files from the references list and added the two dll from here and everything seems to continue working as expected:
"C:\Program Files\Steema Software\TeeChart Pro v8 ActiveX Control\Utilities\Vs.net\Strong Named DLLs"

Re: Name 'Steema' is not declared and similar errors

Posted: Sat Dec 05, 2009 10:04 pm
by 15054069
I have AxInterop.TeeChart.dll but not Interop.TeeChart.dll. Where is it located? Does it come with the ActiveX version?

My plan at the moment is to take the old desktop application and use xbap to make it available via the web. Will the dlls that are available with the ActiveX version license allow me to do that?

Thanks.

Re: Name 'Steema' is not declared and similar errors

Posted: Sat Dec 05, 2009 10:08 pm
by 15054069
The code that I'm converting looks like this.

Code: Select all

            With CType(.Series(PlotLines.Away), TeeChart.ILineSeries)
                .Title = "Away"
                .Color = Color.Blue
                .XValues.Order = Steema.TeeChart.Styles.Ascending
                .LinePen.Width = 1
                .ColorEachLine = True
                .Visible = options.ThingsToPlot.Away
            End With
            With CType(.Series(PlotLines.Elev), TeeChart.ILineSeries)
                .Title = "Elevation"
                .Color = Color.LimeGreen
                .XValues.Order = Steema.TeeChart.Styles.Ascending
                .LinePen.Width = 1
                .ColorEachLine = True
                .Visible = options.ThingsToPlot.Elev
            End With
All the Steema references are where everything is blowing up. Can you explain why? Thanks.

Re: Name 'Steema' is not declared and similar errors

Posted: Mon Dec 07, 2009 9:47 am
by Pep
Hello,

which TeeChart Pro ActiveX version are you using ?
You should be able to fin the dll's under :
E:\Program Files\Steema Software\TeeChart Pro ActiveX Control\Utilities\VS.NET\Strong Named DLLs

There you will also find a readme.txt with explanation.

Re: Name 'Steema' is not declared and similar errors

Posted: Mon Dec 07, 2009 9:35 pm
by 15054069
That's exactly where I looked. I have no Interop.TeeChart.dll in the directory. Is that the dll I need in order to make the errors go away?

Re: Name 'Steema' is not declared and similar errors

Posted: Wed Dec 09, 2009 8:54 am
by narcis
Hi vector,

This should be added automatically when dropping a TeeChart ActiveX component into a form. You could also added it manually from where Pep told you. Have you tried that? Did that help?
My plan at the moment is to take the old desktop application and use xbap to make it available via the web. Will the dlls that are available with the ActiveX version license allow me to do that?
You may need a Webserver runtime license for that. For clearing this issue please contact our Sales Dept. at sales at steema dot com with some details about the nature of your application.

Thanks in advance.

Re: Name 'Steema' is not declared and similar errors

Posted: Wed Dec 09, 2009 3:49 pm
by 15054069
I didn't drop it onto a form. I have an older desktop app written in VB6 that I'm trying to now make available via a browser. I'm hoping to do it with either xbap or ActiveX. Right now I'm just trying to get the code to compile in a .NET environment. I've added the references to the dlls but the code won't compile. Ideas? Suggestions?

Re: Name 'Steema' is not declared and similar errors

Posted: Wed Dec 09, 2009 4:06 pm
by narcis
Hi vector,

Have you added the assemblies to you project "References" section? Could you please attach a simple example project with which we can reproduce the problem here?

Thanks in advance.

Re: Name 'Steema' is not declared and similar errors

Posted: Wed Dec 09, 2009 4:17 pm
by 15054069
I'll put one together. Thanks.