Home All Groups Group Topic Archive Search About

Elevating trust for a UserControl displayed on a web page

Author
25 Sep 2006 5:09 PM
Craig P
I would like to create an "ActiveX" object to display on a web page using C#
in Visual Studio 2005.  It appears the only straightforward way to do this is
to create a UserControl and display it with the object tag.  This works fine
as long as no extended permissions are required.  I need to control to be
able to read multiple (photo) files on the client system so they can be
uploaded in one batch.  What I would like in the old standard ActiveX
approach where the user is asked once to authorize the download from a
trusted publisher.  I can't find a way to do this with a UserControl.

Author
1 Oct 2006 2:04 PM
Nicole Calinoiu
Additional CAS permissions will need to be granted for your control on the
client machine.  While you can provide a script to do this (using caspol.exe
to drive the permissions modification), it will need to be run under an
administrator account.  If you're deploying over an intranet, you may wish
to talk to your network administrator about setting up automated deployment
of the CAS permissions modifications.  Some options for this are described
at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/entsecpoladmin.asp.


Show quoteHide quote
"Craig P" <Craig P@discussions.microsoft.com> wrote in message
news:28290DC6-7C08-4824-8852-16B212B5D453@microsoft.com...
>I would like to create an "ActiveX" object to display on a web page using
>C#
> in Visual Studio 2005.  It appears the only straightforward way to do this
> is
> to create a UserControl and display it with the object tag.  This works
> fine
> as long as no extended permissions are required.  I need to control to be
> able to read multiple (photo) files on the client system so they can be
> uploaded in one batch.  What I would like in the old standard ActiveX
> approach where the user is asked once to authorize the download from a
> trusted publisher.  I can't find a way to do this with a UserControl.