License error occurs at runtime

Posted by: stevem-fp on 8 September 2017, 3:09 pm EST

  • Posted 8 September 2017, 3:09 pm EST



    Normal
    0




    false
    false
    false

    EN-US
    X-NONE
    X-NONE



























    I recently installed Spread .NET 6 and have upgraded my
    WinForms project (.NET 4.0) to use the new controls. 
    Here's what I've done:





    1.  Removed all the
    references to the old Version 5 controls



    2.  Deleted the
    .licx files



    3.  Added
    references to the Version 6 controls





    Everything seems to be working just fine in design
    mode.  However, when I run the
    application (from either inside VS 2010 or via the EXE file) and open the form
    containing the Spread control, I get a dialog that says:





    An appropriate license has not been given to the program.
    License for the Spread cannot be found in the
    program.  Please make sure that
    license.licx exists in your project and check its validity before you try
    building the program again.
    Component assembly name: Farpoint.Win.Spread
    Component assembly version: 6.0.3501.2008





    Inside my license file I have the entry:  FarPoint.Win.Spread.FpSpread, FarPoint.Win.Spread,
    Version=6.0.3501.2008,Culture=neutral,PublicKeyToken=327c3516b1b18457





    I have removed references, deleted .licx, re-added references, restarted VS 2010, etc a number of times as discussed in posts I found via Google.  No luck with anything.

    A few other notes...

      this project exists on a closed
      network, so the info I included above was hand-typed into this post versus
      cut-and-paste, just in case there are typos.

      the Spread control is in a DLL that is referenced from the main
      EXE, just in case that figures into the situation.

      I am using VS 2010 Ultimate on Windows 7 64-bit





    I am pretty much dead in the water until I get this figured out.

    Thanks...  Steve

















































































































































    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}

  • Replied 8 September 2017, 3:09 pm EST

    A-ha!  I just happened across this thread - http://www.clubfarpoint.com/Forums/forums/thread/108068.aspx - and discovered that my main EXE project needs to have the FarPoint entry in its license.licx file.  I don't believe that was a requirement with Spread .NET Version 5, was it?  If it was, I never needed to have it.  Anyway, I think everything is working OK now.  I'll reply to this thread again if more issues come up.

    Steve

  • Replied 8 September 2017, 3:09 pm EST

    Hello,


    Glad to know that your issue has been resolved.

    Feel free

    to contact us in case of any further queries.

    Regards,

    Reeva

  • Marked as Answer

    Replied 8 September 2017, 3:09 pm EST

    SteveM FP,

    You're a lifesaver.

    I was having problems with one of the projects in my solution. I didn't need it for testing so I unloaded it from the solution. When I reloaded it, I received the license error when trying to run it. Adding the license.licx to the main exe project folder solved the problem. Thanks!
  • Replied 8 September 2017, 3:09 pm EST

    Hello,

    We are glad to know that your issue is resolved.

    Thanks.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels