Results 1 to 11 of 11

Thread: Pls help with "Class is not licensed for use" error

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769

    Pls help with "Class is not licensed for use" error

    Hi,

    I am using mscomm in my vb.net project. When using on my development machine, all is fine. When distribute the the app I get "Class is not licensed for use" error. I checked that the component is installed. When I use a vb6 project that uses the same mscomm component, there is no error.

    Does anyone have a solution for me?

    Thanks

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: Pls help with "Class is not licensed for use" error

    I looks like the component isn't registered . Try to register it , might help you out !

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    Sorry bud! I checked that it is registered correctly, and yes it.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Here's the same problem and maybe a clue to solve it . http://www.dotnetforums.net/t69650.html

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    SWEAT THANKS!!!!!

    Tis exactly what I'm looking for. Will give it a try and post results....

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    I have just tried installing the mscomm32.ocx off of the vb6 cd. This also works for some reason ....

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    Next problem!

    The control sends data without a problem, but I am not receiving anything back.

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    I have just found this very helpful page for those that encounter the same problem as I...

    Realy helpful mscomm link

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    It is official.... I am a moron. I am receiving data, I just wasn't catching the event.

  10. #10
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Glad you got it figured out . We hope MS releases a similar .NET Control rather than working backward .

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    K! Here is the final solution...

    You cannot just create a variable of type mscomm. This will result in the licensing error. You must place the control on a form. If you do it this way, you will not have to install the vb6 development environment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width