Solved

activex control for obtaining system info

Posted on 2006-11-09
7
272 Views
Last Modified: 2010-04-23
Maybe one already exists - I'm looking for an activex control that could be run from a web site that would pull back asset information, environment/configuration, etc from the device.
I have some wmi code that does this in a vbscript, but am being asked for an activex control...how difficult would this be/
0
Comment
Question by:sirbounty
  • 4
  • 2
7 Comments
 
LVL 10

Expert Comment

by:Kinger247
ID: 17908578
can you not just wrap it up in a dll ?
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17908638
What do you mean?
Writing my own dll and/or activex control would be something I'd need a kick start on... I'm afraid I've not had much experience there...hopefully that doesn't make it impossible...?
0
 
LVL 13

Expert Comment

by:AngryBinary
ID: 17915904
What's your development environment?

.NET provides Web controls as opposed to true ActiveX, which under the 2.0 framework would require security policies and whatnot to be set on the client machine in order to allow any sending of information over the wire (can be handled via MSI), which is a big ol' pain in the butt for most users. Since this doesn't sound like an intranet app, so I doubt your client would accept that.

Older versions (pre-2003) of visual studio provide ActiveX templates. VS6 might be the safest bet, if that's available to you. Translating from VBScript to VB ought to be a breeze. Once the OCX has been built, you need to insert the an html tag that embeds the control in your page.

Here's more info on using ActiveX in .NET and in pre-.NET:

http://www.c-sharpcorner.com/Code/2003/March/ActiveXInNet.asp

http://cuinl.tripod.com/tutorials/ocx-12.htm

Cheers,
--Randall
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 67

Author Comment

by:sirbounty
ID: 17915960
I'm using .net 2005
It may be an impossibility, as I understand security will be tight.
The company is allowing an external company to access a intranet site by opening a couple of ports in the firewall, so access will be quite limited.
I do have access to vb6 as well, if that makes it easier (though I'm not real proficient in creating an OCX either. :(

Sound 'doable' at this point, or should I abandon all hopes?
0
 
LVL 13

Accepted Solution

by:
AngryBinary earned 400 total points
ID: 17916259
It is doable. VS 6 has support for OCX development. I've never developed one before, but if after looking over that tutorial at http://cuinl.tripod.com/tutorials/ocx-12.htm, it doesn't appear very tricky.

If you are working in .NET 2005, you cannot develop an ActiveX control. I have developed custom controls in .NET that work LIKE activeX control, and it was pretty simple until it came to deployment. Adding the control to the page was a piece of cake, but getting it would throw exceptions when I tried to chat with a web service, and eventually I wound up having to create an additional security policy installer (which is much easier than it sounds... you set up the security policy in your .NET config, and do a single right click to export the settings to your installer package) for users to download and install.

If ALL the control must do is gather environment information, so long as the .NET methods to do so fall in the set of allowed permissions for the Internet Trust Security Zone, then it will be a friendly, easy thing to develop, and the information you pull can be gathered via javascript calls to public properties in the control.

--Randall
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17937499
But you're saying it would be simpler/easier to do this in vb6?
I think I can pull from my current wmi scripting and should be able to pull that into vb okay.  I can't get to that site from here, but will check it out from home.
Thanx!
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17962755
A lot easier than I thought it would be...perfect!

One final question, if you don't mind - I'm storing my data in UserControl.SysData
I believe the users will need to grant that the control be able to run in their browser (I did), but I'm wondering how difficult it will be to pull back that property on the other side of the house?

No biggie if you don't answer, but if you have an idea at least, let me know and I can easily open a new thread on it...thanx again!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Datagridview control last row back color red vb.net 4 38
Iterate a dictionnary to change values 4 53
vb.net checkbox 7 41
Close tabpage of custom control 9 24
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now