Name 'Steema' is not declared and similar errors
Name 'Steema' is not declared and similar errors
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?
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
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:
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"
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
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,
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |
Re: Name 'Steema' is not declared and similar errors
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.
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
The code that I'm converting looks like this.
All the Steema references are where everything is blowing up. Can you explain why? Thanks.
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
Re: Name 'Steema' is not declared and similar errors
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.
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.
Pep Jorge
http://support.steema.com
http://support.steema.com
Re: Name 'Steema' is not declared and similar errors
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?
-
- 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
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?
Thanks in advance.
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?
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.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 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 |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Re: Name 'Steema' is not declared and similar errors
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?
-
- 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
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.
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 |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Re: Name 'Steema' is not declared and similar errors
I'll put one together. Thanks.