Login  
Search All Forums
Dart Home | PowerSNMP for .NET | Custom Development Reply | PowerSNMP for .NET Topics | Forums   
AuthorForum: PowerSNMP for .NET
Topic: Licensing Issue
WWSnmp
mithunbabu@gmail.com

From: 1155 Perimeter Center West, GA USA
Posts: 12
Member Since: 06/18/12
posted July 3, 2012 6:15 PM

Hi,

My organization recently bought the latest version of PowerSNMP.
We are trying to upgrade the existing PowerSnmp dlls to the new one.
We did the upgrade and moved code from development to a new QA box.
And we see the following error -

2012-07-0317:45:50.12372:-04 EventHandler::_GetInterfaceData System.ComponentModel.LicenseException: Thank you for using PowerSNMP for .NET 4.4.
Your free 7-day trial period has expired.
You can rebuild WanderingWiFi.AirWatch.Services.Sensor.PollingSvc.exe to reset the trial period.

Please contact Dart (dart.com or 315.790.5456)
for support and licensing.
  at Dart.Common.LicenseManager.h(String , Type , Environment , Boolean , String )
  at Dart.Common.LicenseManager.7(Type )
  at Dart.Snmp.Manager..ctor(IContainer container)
  at WanderingWiFi.AirWatch.Driver.SNMP.DartSnmpManager.GetSNMPValue(String ipAddress, Int32 port, MIBObjectEntity mib, String readCommunity, SNMPVersion snmpVersion) in C:\Dev2010\ww\WWmain\Main\Driver\src\DriverSln\WanderingWiFi.AirWatch.Driver\SNMP\DartSNMPManager.cs:line 122
  at WanderingWiFi.AirWatch.Driver.SNMP.SNMPHelper.GetSnmpValue(String ipAddress, Int32 port, MIBObjectEntity mib, String readCommunity, SNMPVersion snmpVersion) in C:\Dev2010\ww\WWmain\Main\Driver\src\DriverSln\WanderingWiFi.AirWatch.Driver\SNMP\SNMPHelper.cs:line 112
  at WanderingWiFi.AirWatch.Driver.Base.Driver.GetInterfaceData(ProtocolTypes protocolType) in C:\Dev2010\ww\WWmain\Main\Driver\src\DriverSln\WanderingWiFi.AirWatch.Driver\Base\Driver.cs:line 300
  at WanderingWiFi.AirWatch.Services.Sensor.BusinessImpl.EventHandler._GetInterfaceData(Driver driver, ProtocolTypes protocol, String& xml) in s:\src\awhotspot\Services\SensorV2\src\SensorV2Sln\WanderingWiFi.AirWatch.Services.Sensor.BusinessImpl\EventHandler.cs:line 479


It is evident that there is an issue with the way the license file was implemented.
We need some direction towards the correct process required to include the license file along with the build, which will get deployed to production.

The steps we followed were-
The product was activated from a developer machine.(Dev machine has SNMP sample dlls as well)
The new dll was referenced.
Placed Dart.Snmp.developer.dartlic in the bin folder, and when compiling the licx was asked to be created.
A file with name "licenses.licx", with the text "Dart.Snmp.Manager, Dart.Snmp" was created and placed under the .net solution and BuildAction was set to - Embedded Resource.
The project/solution compiled fine.

Now when we move the code from Dev box to QA, we get the error mentioned above.
We also tried deleting the bin & obj folder and let the solution create brand new dlls, but didn't work.
What are we missing here.
Do we have to install PowerSNMP on the server as well? Wouldn't the dlls alone work?
Please quide.

Thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 5, 2012 8:57 AM

Hello,

Can you please specify the path of where you placed the dartlic file?

Please copy here the event put in the Event Log when you compile your solution.

Are you able to create a new Wi
WWSnmp
mithunbabu@gmail.com

From: 1155 Perimeter Center West, GA USA
Posts: 12
Member Since: 06/18/12
posted July 5, 2012 2:58 PM

Hi Nick,

Thanks for the reply.

1. I picked the .darlic file from the folder which has the activated Dart.Snmp.dll
- C:\Program Files (x86)\Dart\PowerSNMP for .NET\4.4\Bin
Placed the .darlic in my project bin folder and compiled.
It was asking for a .licx, which I created with the text "Dart.Snmp.Manager, Dart.Snmp" and placed under the root project folder.

Also I picked the dlls from outside the Signed folder. There seems to be a Signed copy of dll, under 'Signed' folder.
Was I supposed to pick that one?

2. The Event Viewer shows the following message, while compiling -
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
 <Provider Name="Dart Components" />
 <EventID Qualifiers="0">0</EventID>
 <Level>4</Level>
 <Task>0</Task>
 <Keywords>0x80000000000000</Keywords>
 <TimeCreated SystemTime="2012-07-05T15:53:25.000000000Z" />
 <EventRecordID>78156</EventRecordID>
 <Channel>Application</Channel>
 <Computer>AWI10814.AirWatch.Corp</Computer>
 <Security />
 </System>
- <EventData>
 <Data>Thank you for using PowerSNMP for .NET 4.4. License key (****license key hidden****) added as a licensed resource on 7/5/2012 11:53:25 AM.</Data>
 </EventData>
 </Event>

3. I tried creating a WinForm project, and used a Manager control from the toolbox, compiled and ran without a trial message.
I am still able to use a web project on the DEV box, to retrieve SNMP values from a remote device.

PLEASE NOTE - All the above described scenarios, were tried on the local Dev box.
The actual issue is happening in our QA server right now.

The server eventViewer says-
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
 <Provider Name="Dart Components" />
 <EventID Qualifiers="0">0</EventID>
 <Level>2</Level>
 <Task>0</Task>
 <Keywords>0x80000000000000</Keywords>
 <TimeCreated SystemTime="2012-07-05T18:20:48.000000000Z" />
 <EventRecordID>430410</EventRecordID>
 <Channel>Application</Channel>
 <Computer>ATL01QAAPP355.airwatch.qa</Computer>
 <Security />
 </System>
- <EventData>
 <Data>Thank you for using PowerSNMP for .NET 4.4. Your free 7-day trial period has expired. You can rebuild WanderingWiFi.AirWatch.Services.Sensor.PollingSvc.exe to reset the trial period. Please contact Dart (dart.com or 315.790.5456) for support and licensing.</Data>
 </EventData>
 </Event>

Also is it required to install & activate the product - "PowerSNMP" on the servers as well?

Please let me know.

Thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 5, 2012 4:25 PM

Hello,

The dartlic file only needs to be in C:\Program Files (x86)\Dart\PowerSNMP for .NET\4.4\Bin.

You do not need to use the signed dlls.

Everything indicates that your development machine is successfully compiling with the development license. Since you're receiving this message, it appears that your deployment to your QA server is not getting updated. Alternatively, another part of your project/solution that utilizes our component's functionality or references our component is not being recompiled with the licensing information.

You do not need to install and activate PowerSNMP on your server.

If you continue to have an issue; can you explain how your solution is set up? How is our component being used (structurally)? Dart.Snmp.dll, referenced in a class library, referenced by a service? Your service directly references our component?
WWSnmp
mithunbabu@gmail.com

From: 1155 Perimeter Center West, GA USA
Posts: 12
Member Since: 06/18/12
posted July 5, 2012 5:34 PM

Hi Nick,

The way our solution is structured is as follows-
- Dart.Snmp.dll is copied from "C:\Program Files (x86)\Dart\PowerSNMP for .NET\4.4\Bin" and placed in a SNMP folder.
All references to Dart.Snmp.dll in our projects are from here.

- Util Project
Dart.Snmp.dll is referenced and used in class SNMPUtil, which is part of a project "UtilProject".
It is in SNMPUtil, that the actual SNMP call happens.
Lets call the output of the project Util.dll
The project also has licenses.licx as part of the project(Embedded Resource).

- The output of Util Project is copied over to a "Common" Folder.
The files copied are
Util.dll
Util.dll.config
Util.pdb
Util.XmlSerializers.dll

- Now there is a Windows Service called, PollingSvc.exe
POllingSvc.exe references Util.dll from "Common" project.
POllingSvc.exe initiates the SNMP call in Util.dll
Here PollingSvc does not directly use Dart.Snmp.dll, but still we have added reference to Dart.Snmp.dll
in PollingSvc.exe
Also to successfully compile POllingSvc, we have added licenses.licx under PollingSvc project(as Embedded Resource).


The error happens when PollingSvc, tries calling Util.dll to make the SNMP call.
Please note that this setup was working for us since many years, with PowerSNMP 1.2.
We had to upgrade to PowerSNMP 4.4 because we recently upgraded to .net Version 4.0.

Please let us know if we are something missing.

Thanks,
Mithun
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 6, 2012 10:34 AM

Hello,

UtilProject does not require a licenses.licx. PollingSvc has either not been completely recompiled (force licensing update by deleting bin and obj folders), has been compiled on a machine without a license, or the recompiled PollingSvc has not been successfully redeployed to your QA server.
WWSnmp
mithunbabu@gmail.com

From: 1155 Perimeter Center West, GA USA
Posts: 12
Member Since: 06/18/12
posted July 12, 2012 9:33 AM

Hey Nick,

Sorry for the late response.
Looks like the issue has been resolved.
It was the re-building the different projects in order, which helped.
Thanks for your time and help, as always.

Thanks!
WWSnmp
mithunbabu@gmail.com

From: 1155 Perimeter Center West, GA USA
Posts: 12
Member Since: 06/18/12
posted July 20, 2012 8:51 AM

Hey Nick,

We did as you had suggested and re-deployed the code in Production, and it looked like it was working.
But looks like exactly after a week, we start getting this exception again, pasted below.
Could you help us fix this please.
Dev box is running Windows 7
QA box is running Windows 2008(stopped working there too)
Prod box is running Windows 2003.

 2012-07-2008:26:40.12208:-04 EventHandler::_GetInterfaceData System.ComponentModel.LicenseException: Thank you for using PowerSNMP for .NET 4.4.
Your free 7-day trial period has expired.
You can rebuild WanderingWiFi.AirWatch.Services.Sensor.PollingSvc.exe to reset the trial period

Have send a screen shot of the Event Viewer details to support@dart.com
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 20, 2012 10:13 AM

Hello,

We haven't received your email yet, but this usually indicates that the machine WanderingWiFi.AirWatch.Services.Sensor.PollingSvc.exe was compiled on does not have a license installed on it, is using an invalid license file, or the license file is in the incorrect location.

If you run 'Activate PowerSNMP for .NET' from the start menu program group on your build machine, does PowerSNMP for .NET 4.4 have "(activated)" after it in the listview?

I'll update you if I notice anything in your email once we receive it.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 20, 2012 11:27 AM

You may also want to check the event viewer on the build machine when you build WanderingWiFi.AirWatch.Services.Sensor.PollingSvc.exe to see if the license is compiled in.
Reply | PowerSNMP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX