Name 'Steema' is not declared and similar errors

TeeChart for ActiveX, COM and ASP
Post Reply
vector
Newbie
Newbie
Posts: 7
Joined: Mon Aug 10, 2009 12:00 am

Name 'Steema' is not declared and similar errors

Post by vector » Tue Nov 24, 2009 3:31 am

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?

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

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

Post by Yeray » Wed Nov 25, 2009 2:37 pm

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"
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

vector
Newbie
Newbie
Posts: 7
Joined: Mon Aug 10, 2009 12:00 am

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

Post by vector » Sat Dec 05, 2009 10:04 pm

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.

vector
Newbie
Newbie
Posts: 7
Joined: Mon Aug 10, 2009 12:00 am

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

Post by vector » Sat Dec 05, 2009 10:08 pm

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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Mon Dec 07, 2009 9:47 am

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.

vector
Newbie
Newbie
Posts: 7
Joined: Mon Aug 10, 2009 12:00 am

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

Post by vector » Mon Dec 07, 2009 9:35 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

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

Post by Narcís » Wed Dec 09, 2009 8:54 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

vector
Newbie
Newbie
Posts: 7
Joined: Mon Aug 10, 2009 12:00 am

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

Post by vector » Wed Dec 09, 2009 3:49 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

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

Post by Narcís » Wed Dec 09, 2009 4:06 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

vector
Newbie
Newbie
Posts: 7
Joined: Mon Aug 10, 2009 12:00 am

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

Post by vector » Wed Dec 09, 2009 4:17 pm

I'll put one together. Thanks.

Post Reply