Results 1 to 2 of 2
  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007

    Cannot create activex component

    Can not create activex component


    hi friends,

    i have an activex control made on VB 6.0.
    i am using this component in a ASP .net
    i have add the reference of the NDEMO.OCX file of VB
    in my web applicationwhich in turn becomes
    Interop.NDEMO.dll in ASP.net .
    all this works fine when i run this program on VS .NET
    development server.But when i run this on local host on IIS
    than it gives an error on line as

    Server Error: Can not create ActiveX Component ,on code line

    -> newobj=createobject("NDEMO.NGDEMO")

    Any body Can please give idea to resolve this out.

    Thanks in advance.

  2. #2
    ASP.NET Moderator mendhak's Avatar
    Join Date
    Feb 2002
    Ulaan Baator GooGoo: Frog

    Re: Cannot create activex component

    Why do that? Since you're using Interop, you should have a reference to it. So simply declare the object as you would any other

    NDemo.NgDemo nd = new NDemo.NgDemo();

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