Dart Home | PowerTCP Mail for ActiveX | Custom Development | Reply | PowerTCP Mail for ActiveX Topics | Forums |
Author | Forum: PowerTCP Mail for ActiveX Topic: Obnoxious licensing error |
bfbegy From: Chicago, IL USA Posts: 9 Member Since: 05/20/04 |
posted May 24, 2004 1:39 PM Well, I forked over the money and bought tcpmail for .net and I still can't use the smtp component. I have no troubles with pop, but smtp reports a licensing failure. [System.ComponentModel.LicenseException]: {System.ComponentModel.LicenseException} HelpLink: Nothing InnerException: Nothing Message: "This PowerTCP product has not been added to the project's licenses.licx file. If your project does not have a licenses.licx file already, you must create a text file named "licenses.licx" and add it to your project. You must then add the line: 'Dart.PowerTCP.Mail.Smtp, Dart.PowerTCP.Mail' to the file. If the project already contains a licenses.licx, simply append this line to the file. For more information, please see the "Creating the Licenses.licx File" page in the Online Help. Do not forget to REBUILD your project." Source: "Dart.PowerTCP.Mail" StackTrace: " at ag.a(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3) at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) at System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) at System.ComponentModel.LicenseManager.Validate(Type type) at Dart.PowerTCP.Mail.Smtp.h() at Dart.PowerTCP.Mail.Smtp..ctor() at TankMonBO.EmailSender.smtp() in C:\Consulting\Catalyst\TankMonBO\EmailSender.vb:line 20 at TankMonBO.EmailSender.SendMessage(String Recipient, String Subject, String Body) in C:\Consulting\Catalyst\TankMonBO\EmailSender.vb:line 41" TargetSite: {System.Reflection.RuntimeMethodInfo} > My licenses file is included in the project, set to embedded resource and contains the requisite lines: Dart.PowerTCP.Mail.Pop, Dart.PowerTCP.Mail Dart.PowerTCP.Mail.Smtp, Dart.PowerTCP.Mail I tried rebuilding, deleteing pdb files, etc. So why doesn't it work? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 24, 2004 1:53 PM 99.99% of time, when someone reports this, it's because of one of these reason: 1) They added the licx to the solution instead of the project 2) They are rebuilding the solution instead of the project 3) They built a DLL that uses our DLL, then they are using their DLL in another project and did not add the licx to the second project. If none of these apply, then try to build the sample smtp client and see if that works. |
bfbegy From: Chicago, IL USA Posts: 9 Member Since: 05/20/04 |
posted May 24, 2004 2:05 PM Ok, the problem was that I have the smtp dll embedded in my custom dll. So I have to include a license file on *anything* that uses my custom dll? Isn't one of the principles of OO programming that you don't have to worry about the internal details of another object? |
bfbegy From: Chicago, IL USA Posts: 9 Member Since: 05/20/04 |
posted May 24, 2004 2:17 PM Let me suggest that your help people add your 99.99% tests to the help file in a prominent place. A "this is weird but..." note about the need to license both business object dlls *AND* any user interface that uses them would also help, since it is strange (but understandable from a licensing/business perspective). It would have saved me posting to this forum and wasting your time. |
Reply | PowerTCP Mail for ActiveX Topics | Forums |
This site is powered by
![]() |