Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84604members
353879posts

DDK Driver - 'Server Status' reports 'Bad Version Info'

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

Solved
Experimentalist
Ensign
Ensign
0 Likes
8
1791

DDK Driver - 'Server Status' reports 'Bad Version Info'

I am currently writing an EcoStruxure Geo SCADA Expert driver using the DDK for Geo SCADA Expert version 6.81.7488, Geo SCADA Expert 2019 June 2020 update.

 

When I start the server the  DBStartup log reports:

 

[DRV] <Driver Name> Version = 6.81.7488.1, Publisher = Aaawesome Solutions Ltd

[DRV] <Driver Name> ** Bad version info (<Driver Name>)

 

where <Driver Name> is the name of my driver

 

The driver is built using .Net Framework 4.5.2

 

The above log entries are all I have to go on at present.

 

Has anyone any idea what can cause this error? 


Accepted Solutions
AndrewScott
Commander
Commander
0 Likes
4
1748

Re: DDK Driver - 'Server Status' reports 'Bad Version Info'

The Bad Version Info error occurs if the version information in the driver assembly is missing a version number, a company or a support link: These correspond to the following attributes in the AssemblyInfo file:

  • AssemblyCompany
  • AssemblySupportLink
  • AssemblyVersion / AssemblyFileVersion

 

https://docs.microsoft.com/en-us/dotnet/standard/assembly/set-attributes 


Andrew Scott, Lead Engineer, AVEVA

See Answer In Context

8 Replies 8
BevanWeiss
Spock
Spock
0 Likes
2
1769

Re: DDK Driver - 'Server Status' reports 'Bad Version Info'

The DDK 'help' has some info on this, have you walked through all the steps in that?

 

I'd normally start with the Sample DDK driver.  Just compile this and make sure that it installs and runs correctly.

Then you can modify the appropriate module / driver projects to do what you need of it.

 

It's been quite a while since I did any DDK development, but there were a couple of other causes that resulted in the Bad Version.  From memory this would happen if your driver (the DBModule portion anyway) was throwing any Exception during initialisation also, meaning it might not be exactly a 'Bad Version'.

 

Try to cut it down so that you just have the module (i.e. no objects etc) and see if that runs, if it does, then you can slowly add objects (commenting out any interdependencies) until you've got the whole thing working.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
AdamWoodland
Commander Commander
Commander
0 Likes
0
1757

Re: DDK Driver - 'Server Status' reports 'Bad Version Info'

I don't believe it is a driver (exe) issue, too early in the startup process. Looks more like module (dll) issue.

 

My first guess would be missing or incorrect third party dlls being referenced from your module. Does your driver reference anything beyond the .NET and Geo SCADA dlls? For example Newtonsoft for some JSON handling? If one of those is not in the same path or there's a version mismatch it'll cause the module to fail to load

AndrewScott
Commander
Commander
0 Likes
4
1749

Re: DDK Driver - 'Server Status' reports 'Bad Version Info'

The Bad Version Info error occurs if the version information in the driver assembly is missing a version number, a company or a support link: These correspond to the following attributes in the AssemblyInfo file:

  • AssemblyCompany
  • AssemblySupportLink
  • AssemblyVersion / AssemblyFileVersion

 

https://docs.microsoft.com/en-us/dotnet/standard/assembly/set-attributes 


Andrew Scott, Lead Engineer, AVEVA
Experimentalist
Ensign
Ensign
0 Likes
0
1743

Re: DDK Driver - 'Server Status' reports 'Bad Version Info'

Andrew

 

Thanks, that was the issue, is this documented anywhere?

 

Regards

Andy

Experimentalist
Ensign
Ensign
0 Likes
0
1742

Re: DDK Driver - 'Server Status' reports 'Bad Version Info'

Thanks for taking the time to reply. I could find no reference to that in the help file. Which help are you referring to?

 

 

MikeDash
Ensign
Ensign
0 Likes
2
633

Re: DDK Driver - 'Server Status' reports 'Bad Version Info'

I know this is an old thread, but this still appears to be an issue.

 

In the video tutorial by @sbeadle he mentions this is a issue. (See video at 5:00min mark)

https://www.youtube.com/watch?v=tVEIMkj9PnM

But I don't think it is mentioned in any documentation elsewhere.

 

It might be nice to update the error message in GeoSCADA to something like "Unable to load metadata", and/or provide a few more details in the log.

 

My issue is, some of those properties are not available in .NET version 4.8 AssemblySupportLink, AssemblyHelpLink, AssemblyUpdateInformation

 

The example here:

https://github.com/GeoSCADA/Sample-DataFeeder

does not include those 3 attributes, and I get the "Bad Version Error" when I compile it.

When I try to add AssemblySupportLink I get the Visual Studio error:

"Error CS0246 The type or namespace name 'AssemblySupportLinkAttribute' could not be found (are you missing a using directive or an assembly reference?) DataFeeder C:\Users\Parasyn\Source\Repos\Sample-DataFeeder\DataFeeder\Properties\AssemblyInfo.cs"

 

AndrewScott
Commander
Commander
0 Likes
0
607

Re: DDK Driver - 'Server Status' reports 'Bad Version Info'

@MikeDash These properties are not related to the .NET Framework version.

NB. None of the released version of Geo SCADA use .NET Framekwork 4.8, the upcoming Geo SCADA 2021 release will be the first version using .NET Framework 4.8.

 

C# Example

 

[assembly: AssemblyTitle("<title>")]
[assembly: AssemblyDescription("<description>")]
[assembly: AssemblyConfiguration("<configuration>")]
[assembly: AssemblyCompany("<company>")]
[assembly: AssemblyProduct("<product>")]
[assembly: AssemblyCopyright("<copyright>")]
[assembly: AssemblyTrademark("<trademark>")]
[assembly: AssemblyCulture("<culture>")]
[assembly: AssemblySupportLink("<link>")]
[assembly: AssemblyHelpLink("<link>")]
[assembly: AssemblyUpdateInformation("<link>")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

 

 

VB.NET Example

 

<Assembly: AssemblyTitle("<title>")> 
<Assembly: AssemblyDescription("<description>")> 
<Assembly: AssemblyCompany("<company>")> 
<Assembly: AssemblyProduct("<product>")> 
<Assembly: AssemblyCopyright("<copyright>")> 
<Assembly: AssemblyTrademark("<trademark>")> 
<Assembly: AssemblySupportLink("<link>")> 
<Assembly: AssemblyHelpLink("<link>")> 
<Assembly: AssemblyUpdateInformation("<link>")> 

<Assembly: AssemblyVersion("1.0.0.0")> 
<Assembly: AssemblyFileVersion("1.0.0.0")> 

 


Andrew Scott, Lead Engineer, AVEVA
BevanWeiss
Spock
Spock
0 Likes
0
592

Re: DDK Driver - 'Server Status' reports 'Bad Version Info'


@MikeDash wrote:

...

The example here:

https://github.com/GeoSCADA/Sample-DataFeeder

does not include those 3 attributes, and I get the "Bad Version Error" when I compile it.

When I try to add AssemblySupportLink I get the Visual Studio error:

"Error CS0246 The type or namespace name 'AssemblySupportLinkAttribute' could not be found (are you missing a using directive or an assembly reference?) DataFeeder C:\Users\Parasyn\Source\Repos\Sample-DataFeeder\DataFeeder\Properties\AssemblyInfo.cs"

 


I don't believe those are Geo SCADA Expert Drivers.  They are just client applications, so they don't need to match versions 1:1 with the Geo SCADA Expert server (nor expose the Assembly properties mentioned by Andrew).

 

It's important to note the distinction between a Client Application and a Driver in the Geo SCADA Expert world.

In general, Client Applications are much nicer to develop (the build/deploy/debug cycle is much easier, and faster).

In terms of functional capabilities, they are really quite similar.

It's more in the coupling that they are different, the driver is tightly coupled into Geo SCADA Expert (in terms of in service configuration and also in terms of the build / deploy process), so it's really only for that reason that you might favour the creation of a driver instead of just a client application.

 

Given the Geo SCADA Expert release cadence, developing (and supporting) out of tree drivers is becoming quite labour intensive.  Unless there's really a strong reason to have some development as a driver (i.e. its behaviour/configuration would need to be synchronised between servers and has a reasonably high turnover in configuration data... like it's for a currently unsupported protocol or similar.. in which case the limitations of the Simple Drive model might cause frustrations anyway), you'd likely be better off developing it as a stand alone application (whether user driven, or service model).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..