Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom ActiveX DLL and ASP .NET

Status
Not open for further replies.

scottere

Programmer
Joined
May 4, 2005
Messages
2
Location
US
Hi,

I'm getting a bit lost in how to make use of a custom ActiveX DLL in my ASP .Net pages.

I've inherited a solution whereby an ActiveX DLL is created in VB6, which gets various system information, such as computer name (from kernel32), and other things from WMI. This seems to build ok into a DLL.

The plan is then to make use of this in an ASP .NET developed intranet site. The user visits the website, and after they've verified some information, the activeX DLL should be used to get the system information of the computer they're using to access the intranet.

I've looked around the web and I can't find a whole load of information on doing this.

Where I've got to so far is trying to use Javascript to call a function in the DLL. However, when the javascript runs, it gives an error saying that the Automation Server can't create the object.

I've used regsvr32 to register the DLL (is there a way around having to do this?), and still get the error. I think I have to insert the object into the HTML, but that requires a classid and the location of the DLL. The stuff I've inherited currently has this in the HTML:

<OBJECT id=T1
codeBase= height=26
width=270 align=center classid=clsid:43D5190E-9BAE-4FDA-877E-EBB2D61756B1
VIEWASTEXT>

Now, I'm testing this on my laptop, so can I just give a file path as the codeBase? And what's the easiest way of finding out the classid?

Sorry for this barrage of questions, I'm a bit stuck here and hopefully just need a point in the right direction.
 
You will probably get a better response to your question in the Microsoft: ASP .NET forum: forum855

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
Thanks for the reply, I eventually managed to get my head around what was going on.

I've now got things working (at least partially). The Active X object downloads and run perfectly on 1 NT machine, with IE 6.0.2600.0000.

However, I've tested on 3 other NT machines, all with IE 6.0.2600.1106, and get an error message when I try to call any methods within the control, saying "Object doesn't support this property or method".

Is this a known problem? Does anyone know of any way around it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top