ritesh srivastava

Hi friends,

i am making a web application on .Net . In this application i am using

an activex control which is made in VB 6.0. Now when i run this program

on VS .NET development server. it works fine But when i run this program

on IIS using local host.

it gives an error

Server Error Can not create ActiveX component.

the line of the error is

myobj=createobject("NDEMO.NGDEMO")

Any body can Please help me.

Thanks in advance.




Re: .NET Base Class Library Cannot Create ActiveX Component

nobugz

You'll need to install and register the VB6 component with regsvr32.exe. You'll also need the VB6 runtime files installed.

Please post ASP.NET questions to forums.asp.net and VB6 questions to a non-Microsoft forum site. This forum is reserved for .NET framework library questions.





Re: .NET Base Class Library Cannot Create ActiveX Component

ritesh srivastava

hi,

thanks for giving answer.

but i want to tell you that i have vb6 component and vb run times

installed on my machine.

If any body please give some more ideas to resolve this out.

Thanks in advance.






Re: .NET Base Class Library Cannot Create ActiveX Component

Martin Xie - MSFT

Here is one reference create ActiveX Control.





Re: .NET Base Class Library Cannot Create ActiveX Component

Ting Wang - MSFT

Have you registered the file with "RegSvr32"

If yes, please also try creating a .VBS file with the following code:

myobj=createobject("NDEMO.NGDEMO")

Would it work

Please also verify whether the ProgID "NDEMO.NGDEMO" is correct or not.






Re: .NET Base Class Library Cannot Create ActiveX Component

ritesh srivastava

first of all thanks, For giving answer

i have not registered the file with regsvr32.

here i am using .CAB file to download the component

because this is web application .However .CAB file( NDEMO.CAB) file is

installed on my machine properly but give still gives error on code line ->

myobj=createobject("NDEMO.NGDEMO")

can not create activex component.

please try and resolve this issue.

Thanks Very much in advance.






Re: .NET Base Class Library Cannot Create ActiveX Component

Ting Wang - MSFT

CAB file is ususally used to install ActiveX controls on the client side machines. From the error, you are using the control with server side code. Please register the control on the web server. The test script code should be the following:

Set myObj = CreateObject("NDMO.NGDEMO")

MsgBox "Done"

If you cannot get the script above working on the server side, the ActiveX control is still not installed properly.