-
May 23rd, 2007, 04:41 AM
#1
Thread Starter
New Member
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.
-
May 23rd, 2007, 03:20 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|