Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Licensing

Licensing

Scheduled Pinned Locked Moved Visual Basic
sysadminhelp
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    The Limey
    wrote on last edited by
    #1

    Has anyone had any problems with the licensing. All I am trying to do is license a server control, it should be easy but the control can't find the license everytime. Even the most basic LicFileLicenseProvider does not work. The steps I take 1) Decorate the class [LicenseProvider(typeof... 2) add the LicenseMangager.Validate in the constructor 3) add the MyNamespace.MyClass.lic file 4) Compile it 5) Run it Any help appreciated

    P 1 Reply Last reply
    0
    • T The Limey

      Has anyone had any problems with the licensing. All I am trying to do is license a server control, it should be easy but the control can't find the license everytime. Even the most basic LicFileLicenseProvider does not work. The steps I take 1) Decorate the class [LicenseProvider(typeof... 2) add the LicenseMangager.Validate in the constructor 3) add the MyNamespace.MyClass.lic file 4) Compile it 5) Run it Any help appreciated

      P Offline
      P Offline
      Patrick Lassalle
      wrote on last edited by
      #2

      In the project folder of the application that uses your control, you should have a licenses.licx file. This file must be included in the project and it must contain a line identifying your control. If this is not the case, this is the reason of your problem.

      T 1 Reply Last reply
      0
      • P Patrick Lassalle

        In the project folder of the application that uses your control, you should have a licenses.licx file. This file must be included in the project and it must contain a line identifying your control. If this is not the case, this is the reason of your problem.

        T Offline
        T Offline
        The Limey
        wrote on last edited by
        #3

        I have the licenses.licx file in the folder, forgot to mention that. There is something wierd happening that I am missing, and cant see what it is. The controls are for web based applications and after tracing it through it seems to be in the getLicense method which is called from Validate. have tried the basic LicFileLicenseProvider in both C# and VBNet without success. I am using Runtime 1.1 Thnx

        P 1 Reply Last reply
        0
        • T The Limey

          I have the licenses.licx file in the folder, forgot to mention that. There is something wierd happening that I am missing, and cant see what it is. The controls are for web based applications and after tracing it through it seems to be in the getLicense method which is called from Validate. have tried the basic LicFileLicenseProvider in both C# and VBNet without success. I am using Runtime 1.1 Thnx

          P Offline
          P Offline
          Patrick Lassalle
          wrote on last edited by
          #4

          Is your licensed control in the GAC or in a normal directory? Do you use your control in an application or a DLL (class library, wrapping control)?

          T 1 Reply Last reply
          0
          • P Patrick Lassalle

            Is your licensed control in the GAC or in a normal directory? Do you use your control in an application or a DLL (class library, wrapping control)?

            T Offline
            T Offline
            The Limey
            wrote on last edited by
            #5

            Its not in the GAC. It is also a web control Library Assembly specifically for Internet apps. Inside of the library I have a standard web control and a second class inherited from the base control class which has no interface. Neither of the controls can be licensed. I wrote a real basic test server control added licensing LicFileLicenseProvider, Validate, Dispose, [namespace].[class].lic, Compiled it. Created Host Web app, added the control and a license file in the bin same as the lic file in the component, added licenses.licx. Compiled and run, Got the error "A license could not be found...", take out the validate method call control works fine in design and runtime. Tried it in C# and VBNet both the same. Thnx for your help

            P 1 Reply Last reply
            0
            • T The Limey

              Its not in the GAC. It is also a web control Library Assembly specifically for Internet apps. Inside of the library I have a standard web control and a second class inherited from the base control class which has no interface. Neither of the controls can be licensed. I wrote a real basic test server control added licensing LicFileLicenseProvider, Validate, Dispose, [namespace].[class].lic, Compiled it. Created Host Web app, added the control and a license file in the bin same as the lic file in the component, added licenses.licx. Compiled and run, Got the error "A license could not be found...", take out the validate method call control works fine in design and runtime. Tried it in C# and VBNet both the same. Thnx for your help

              P Offline
              P Offline
              Patrick Lassalle
              wrote on last edited by
              #6

              In your first message, you asked if anyone had any problems with the licensing. I have the following problem: - I create a basic Windows Forms Control with a basic licensing (LicFileLicenseProvider). Let us call it Dummy.dll. - If I use it in a windows application (DummyTest.exe), the licensing is working correctly - If I wrap dummy in a another unlicensed control (DummyWrap.dll) and if I use DummyWrap in a windows application (DummyWrapTest.exe), the licensing does not work anymore (Notice that DummyWrap has a licenses.licx file since it uses Dummy.) - Then if I add a licenses.licx file to DummyWrapTest itself, the licensing is working again. (I thought initially that the licenses.licx file was not necessary because DummyWrapTest is only using DummyWrap. It does not see Dummy. - However there are cases where I cannot add the licenses.licx file to the application, for instance if this application is ASP.NET (I have not its source code!). I don't know what to do here to avoid the "license not found" message.

              T 1 Reply Last reply
              0
              • P Patrick Lassalle

                In your first message, you asked if anyone had any problems with the licensing. I have the following problem: - I create a basic Windows Forms Control with a basic licensing (LicFileLicenseProvider). Let us call it Dummy.dll. - If I use it in a windows application (DummyTest.exe), the licensing is working correctly - If I wrap dummy in a another unlicensed control (DummyWrap.dll) and if I use DummyWrap in a windows application (DummyWrapTest.exe), the licensing does not work anymore (Notice that DummyWrap has a licenses.licx file since it uses Dummy.) - Then if I add a licenses.licx file to DummyWrapTest itself, the licensing is working again. (I thought initially that the licenses.licx file was not necessary because DummyWrapTest is only using DummyWrap. It does not see Dummy. - However there are cases where I cannot add the licenses.licx file to the application, for instance if this application is ASP.NET (I have not its source code!). I don't know what to do here to avoid the "license not found" message.

                T Offline
                T Offline
                The Limey
                wrote on last edited by
                #7

                In your case I can see whay the licenses.licx is required. Even although you have wrapped the original control in a dummyshell it is probable that the dummyshell actualy creates an instance of the control anyway, which causes the licensing to kick in. The licensing is in the constructor. The theory I have in my case is something to do with the path of the lic file being in a web. The License provider seems not to deal with this situation. Originally I wrote new license providers assuming that the implementation would be a walk in the park. Just to get it right I decided to do a quick test using the basic license provider and it didn't work!!. I am probable wasting time trying to get the basic license provider working and should just launch straight into implementing my custom provider. Hope my comments helped in your case. Thansk for your efforts anyway.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups