license error when creating Cute Editor dynamically from within a Custom Webpart or Class Library

Last post 05-01-2007, 6:32 AM by johnb. 4 replies.
Sort Posts: Previous Next
  •  04-26-2007, 5:51 AM 28857

    license error when creating Cute Editor dynamically from within a Custom Webpart or Class Library

    Folks,

    I get a license error when creating Cute Editor dynamically from within a Custom Webpart:

    ‘A valid license cannot be granted for the type CuteEditor.Editor. Contact the manufacturer of the component for more information’

    The Custom Webpart is in a class library, referenced by the Website.
    I can
    create the Cute Editor dynamically OK in a Web Form on the Website that hosts the Custom Webpart

    I get the same error if I try to create the Cute Editor dynamically in a class in a standard class library (the class is called from the same Website)

    I have only the evaluation license that comes with the download - could this be the problem?

    I've given the class libraries in question references to the CuteEditor dlls, and put the cuteeditor.lic in the same bin folder as the dlls.

    Any ideas?
    Regards, johnb




  •  04-26-2007, 12:54 PM 28883 in reply to 28857

    Re: license error when creating Cute Editor dynamically from within a Custom Webpart or Class Library

    johnb,
     
    >>I have only the evaluation license that comes with the download - could this be the problem?
     
    No.
     
    It looks like for some reasons the control can't find the license file. Can you put the cuteeditor.lic into the bin folder of the root directory?
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-27-2007, 3:35 AM 28911 in reply to 28883

    Re: license error when creating Cute Editor dynamically from within a Custom Webpart or Class Library

    Thanks Adam,

    I had cuteeditor.lic in the bin folder, but inspired by your answer I tried putting cuteeditor.lic into same folder as the compiled Custom Webpart library dll (ie in the obj\debug folder of the Webpart library project) - that has fixed the license problem!

    The only issue now is that it's only showing a plain textarea rather than the normal toolbars - could this be because it's instanced in the Custom Webpart, so it doesn't 'know' where the CuteSoft_Client folder is?

  •  04-30-2007, 2:23 PM 28999 in reply to 28911

    Re: license error when creating Cute Editor dynamically from within a Custom Webpart or Class Library

    johnb,
     
    Can you post a screenshot showing the problem?
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-01-2007, 6:32 AM 29028 in reply to 28999

    Re: license error when creating Cute Editor dynamically from within a Custom Webpart or Class Library

    This turned out to be a missing Me.Controls.Add(CuteEdit), so Cute Editor now displays OK initially in the Web Part thanks.
    However, when I switch the WebPartManager to Edit mode , The toolbars do not render correctly:



    Also, I have a second separate instance of Cute Editor in the Web Editor Part, which also displays as above. If I do not create the Cute Editor instance above in the 'main' Web Part, the Editor Part displays like this:

    Any Ideas? John B


View as RSS news feed in XML