Results 1 to 2 of 2

Thread: Cannot create activex component

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    1

    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
    application.
    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
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    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