|
-
Jan 13th, 2003, 03:44 PM
#1
Thread Starter
New Member
can a .net windows control query...
I am attempting to create a user-defined windows control that is hosted by a web page (read .net activex control) that uses the Process Class to get a list of all the current processes that are running on the client machine.
When I attempt to access the page that contains the dll, I receive a System.Reflection.TargetInvocationException...the problem is that the exception is either thrown by IE or by the CRL because I am unable to capture the exception in a Try-Catch...
The dll is signed and hosted by a trusted server. The current user is in the ADMIN group on the client pc.
Any suggestions?
Can I do this in code?
Programming today is a race between software engineers
striving to build bigger and better idiot- proof programs,
and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning.
-- Rich Cook
-
Jan 13th, 2003, 03:54 PM
#2
In Control Panel > Adminstrative Tools > .Net Configuration Wizard
Trust the assembly.
-
Jan 13th, 2003, 04:37 PM
#3
One thing to remember is that asp.net or web controls in the .net framework run server side, so it probably can't query the processes on the client side.
-
Jan 13th, 2003, 04:46 PM
#4
Thread Starter
New Member
Forgive my .net ignorance (or is that ignorance.net?) but does that mean that there is no direct correlation between a vb6 OCX-based usercontrol (activex control) that ran locally and .net dll-based usercontrols in .net?
Programming today is a race between software engineers
striving to build bigger and better idiot- proof programs,
and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning.
-- Rich Cook
-
Jan 13th, 2003, 06:12 PM
#5
The .NET web controls don't work like activeX controls in ASP.NET for instance activeX controls had to be installed on the client to be viewed in the web page but ASP.NET does all the work server side so installing the control is not needed. BUT that means also that it is harder to get special client info. If you can install things on the client computers then you may like into Remoting or maybe Web Services can do what you need.
Please if something i said is incorrect someone let me know, but this is the way I understand it.
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
|