Cute Editor License not working!

  •  07-14-2006, 12:29 PM

    Cute Editor License not working!

    Hi,
    We are using CuteeEditor components for ASP.Net 2.0. We have a requirement to create an ASPX page using a utility (windows application in .NET) that would finally be integrated with a Web Application. We have inherited from the Editor class and created a custom class that emits the appropriate markup for the page (markup for the CuteEditor control) based on certain inputs. However whenever we try to instantiate an object of that class (using the new keyword) it throws an error (stating some issue with the license file) when invoked form the utility. However when we run the same code from a webpage, it doesn't throw any error. The license file was present in the folder from where we were executing the utility. Please read below for the code segment we are trying to execute.
    We have a class that looks like this,
     
    public class MyEditor : CuteEditor.Editor
    {
       public string EmitMarkupForAspx(Hashtable  ht)
       {
          // We have our logic here
       }
    }
     
    When we do the following,
     
    MyEditor editor = new MyEditor();
     
    we get the following error,
    System.NullReferenceException occurred
    Message="Object reference not set to an instance of an object."
    Source="CuteEditor"
    StackTrace:
    at CuteEditor.Impl.d.a()
    at CuteEditor.Impl.d.b(Type A_0)
    at CuteEditor.Impl.d.a(Type A_0)
    at CuteEditor.Impl.d.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
    at CuteEditor.EditorLicenceProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
    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 CuteEditor.Editor..ctor()
    at CustomControls.MyEditor..ctor()

    Please let us know if the CuteEditor components works in the WebContext only.
     
View Complete Thread