Results 1 to 5 of 5

Thread: can a .net windows control query...

  1. #1

    Thread Starter
    New Member dougw's Avatar
    Join Date
    Jan 2003
    Location
    Ohio
    Posts
    12

    Question 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

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    In Control Panel > Adminstrative Tools > .Net Configuration Wizard

    Trust the assembly.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  4. #4

    Thread Starter
    New Member dougw's Avatar
    Join Date
    Jan 2003
    Location
    Ohio
    Posts
    12
    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

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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
  •  



Click Here to Expand Forum to Full Width