Crainiate Community

Support and discussion for users of Crainiate component software products
Welcome to Crainiate Community Sign in | Join | Help
in Search

Reading the license file is slow.

Last post 11-23-2007 8:35 AM by James Westgate. 11 replies.
Page 1 of 1 (12 items)
Sort Posts: Previous Next
  • 09-12-2007 1:55 AM

    Reading the license file is slow.

    Hi,I am not good at English. I'm sorry.

    ERM Diagram To HelpFile...


    > When distributing your application, add the ERM4.License.xml file to your application and select Embedded Resource as the build action from the File properties window.

    executes -> License is OK!
    but..It is made to wait for About 15 seconds in the place where DiagramControl is made.

    this.ctlRulerHorizontal = new Crainiate.ERM4.Editing.Ruler(); ->15 sec
    this.ctlRulerVertical = new Crainiate.ERM4.Editing.Ruler(); -> 15 sec
    this.ctlFlowChart = new Crainiate.ERM4.Flowcharting.Flowchart(); -> 15 sec
    this.ctlPalette = new Crainiate.ERM4.Editing.Palette(); -> 15 sec

    It takes 60 seconds to start once....
    The phenomenon occurs only to the development machine.

    > The application folder e.g. the folder containing your application.
    It doesn't change.

    Help me.


    Environment:
    OS: WindowsXP SP2(.NET Framework2.0)
    ERM: Ver4.1.2780.38323

    Filed under:
    • 202.228.139.181
  • 09-12-2007 7:16 PM In reply to

    Re: Reading the license file is slow.

     I think the license file is invalid for the machine. 

    The license file needs to be generated with a host id for the machine if the machine is being used to recompile ie as a build machine. Instead of using the license file as an embedded resource you should place the file in the same folder as the Crainiate.ERM.dll assembly, or in the installation folder.

     If the machine is not being used to recompile then the embedded option should be fine.

    • 86.150.193.191
  • 09-13-2007 1:46 AM In reply to

    Re: Reading the license file is slow.

    hi,James.

    It is slow though the license file was arranged in the installation folder.

    C:\SAMPLE>dir
     2007/09/11  18:02         1,073,152 Crainiate.ERM4.dll
     2007/07/12  11:08             1,084 ERM4.License.xml
     2007/09/12  15:55           180,224 SAMPLE.exe

    Product Activation was done with the same machine.

    Filed under:
    • 202.228.139.181
  • 09-13-2007 7:08 PM In reply to

    Re: Reading the license file is slow.

    Please follow the following steps.

    1. Uninstall the product using Add/Remove programs.

    2. Remove all copies of Crainiate.ERM4.dll, Crainiate.ERM4.Layouts.dll and ERM4.License.xml from your machine

    3. Reinstall using the setup program.

    4. Reactivate using the "Product Activation" option (I have reset your activation count for this purpose)

    Compile and run your application from Visual Studio. Please let me know if the problem persists at this point.

    • 86.150.193.191
  • 09-25-2007 9:22 AM In reply to

    Re: Reading the license file is slow.

    It doesn't change though everything was executed.

    • 202.228.139.181
  • 10-03-2007 3:55 PM In reply to

    Re: Reading the license file is slow.

    I have the same problem.

     

    After activation starting my program has a considerable delay creating the Model (where the license is checked the first time).

    I copied the ERM4.License.xml to the bin directory where the application is built and have added a copy as an embedded resource.

    I use ERM4 in a control and have embedded the license in both the control and the main application and it still takes a long time.

    I prefer to embedded the license file, where should it go, in the control or in the application? 

    Filed under:
    • 69.221.86.182
  • 10-05-2007 7:51 AM In reply to

    Re: Reading the license file is slow.

    I understand your frustration and this is now critical for us to resolve this problem. Unfortuneately we are unable to reproduce this behaviour and I therefore ask if you can provide more information.

    After waiting a long time, is the component licensed or does the licensing screen popup?

    Are you using Windows Vista?

    Do you have administrator rights on the machine when this occurs?

    Does this behaviour occur in the development environment, at runtime, or both.

    Are you referencing the Crainiate.ERM4.Layouts.dll? Does this occur in projects with this reference removed? (possible c++ runtime issues here)

    The deal solution is the include the license file in the project and mark it as Embedded Resource in the properties dialog. When in design mode, this will require a unique license file for every developer, so ensure that this file is excluded when using products such a sourcesafe.

    Many thanks, James

    • 81.156.199.203
  • 10-05-2007 9:06 AM In reply to

    Re: Reading the license file is slow.

    hi,James. 

     

    Q.After waiting a long time, is the component licensed or does the licensing screen popup?

    A.pop up is not displayed.

    Q.Are you using Windows Vista?

    A.WindowsXP SP2

    Q.Do you have administrator rights on the machine when this occurs?

    A.Administrator

    Q.Does this behaviour occur in the development environment, at runtime, or both.

    A.yes.

    Q.Are you referencing the Crainiate.ERM4.Layouts.dll? Does this occur in projects with this reference removed? (possible c++ runtime issues here)

    A.not referencing Crainiate.ERM4.Layouts.dll.

     

    etc...

    • SecuritySoft : Symantec Norton AntiVirus (It doesn't change even if AutoProtect is invalidated. )
    • Network : The proxy server is used.
    • Development Application : ClickOnce(.NET Framework 2.0)

    Because development is delayed, it really embarrasses it. Please help.

    Filed under:
    • 202.228.139.181
  • 10-05-2007 4:02 PM In reply to

    Re: Reading the license file is slow.

    It is licensed, there is no pop-up.

    Using WinXP SP2 

    I am an admin

    It happens when I launch the program to debug it (haven't built an installer yet to try a release build)

     Referencing the following .NET assemlbies:

    Crainiate.ERM4
    Crainiate.ERM4.Layout
    <Our custom assembly>
    System
    System.Data
    System.Design
    System.Drawing
    System.Security
    System.Windows.Forms
    System.Xml

    I am the only developer working on this project, but the license file is an embedded resource so everyone will need to source control it.
    (Maybe change the format of the license file to include more than 1 license?)


     

     

     

    The delay is about 10 seconds where the model is created

          private void InitializeComponent()
          {
             this.myModel = new Crainiate.ERM4.Model();
             this.SuspendLayout();
     

    • 69.221.86.182
  • 10-15-2007 10:34 AM In reply to

    Re: Reading the license file is slow.

    We have created a licensing diagnostics tool which should help us to help you. Please contact me directly at support@crainiate.net for access to the tool and further details on it's usage.

    Many thanks, James

    • 86.43.88.2
  • 11-22-2007 10:41 AM In reply to

    Re: Reading the license file is slow.

    How did the situation become it though it answered in mail?
    With this, it is no use though ERM is used for the productivity improvement.

    Please help.


    ------------------------------------------------------------------

    License document aquired in 6 ms.
    License document verified in 15057 ms.
    License document product verified in 0 ms.
    License machine host verified in 1 ms.

    ------------------------------------------------------------------

    • 202.228.139.181
  • 11-23-2007 8:35 AM In reply to

    Re: Reading the license file is slow.

    We previously answered your email directly, perhaps there was a spam filter which prevented it reaching you. Im sorry for any delay this may have caused.

    The problem appears to be that the .Net Framework SignedXml class is trying to resolve a reference to www.w3.org. This times out after 15 seconds and the code continues. You can try provide access to this uri to determine if this resolves the problem.

    Alternatively, please find an updated license diagnostics tool attached which includes code to bypass the uri check. If this works, please let us know so that we can incorporate this in our next build.

    Many thanks,
    James

    Filed under:
    • 212.183.134.65
Page 1 of 1 (12 items)