Home All Groups Group Topic Archive Search About

UserControl on Web Page - can I use dependent assemblies on client

Author
7 Oct 2006 8:50 PM
Craig P
I want to display a UserControl on a web page using an <object> tag.  The
control has dependent assemblies that are quite large.  These assemblies are
installed on the client, but I don't see a way to use them.  The dependent
assemblies are always download from the web server resulting in intolerable
performance.  I have tried using an application configuration file, but the
Fusion log reports that it won't probe the specified client location because
that is outside the appbase. 

The ideal solution would be to put the UserControl assembly on the client
too, but the object codebase will not allow a file:// location.

Author
17 Oct 2006 2:23 AM
Bryan Phillips
Show quote Hide quote
"Craig P" <Cra***@discussions.microsoft.com> wrote in message
news:F58C72D0-5C6E-4335-9A38-C715E8E9E356@microsoft.com:

> I want to display a UserControl on a web page using an <object> tag.  The
> control has dependent assemblies that are quite large.  These assemblies are
> installed on the client, but I don't see a way to use them.  The dependent
> assemblies are always download from the web server resulting in intolerable
> performance.  I have tried using an application configuration file, but the
> Fusion log reports that it won't probe the specified client location because
> that is outside the appbase.
>
> The ideal solution would be to put the UserControl assembly on the client
> too, but the object codebase will not allow a file:// location.
Author
17 Oct 2006 2:29 AM
Bryan Phillips
It would be a good idea to look into using ClickOnce to deploy the
dependent assemblies.  You could control the deployment from the hosted
UserControl using the classes in the System.Deployment.Application
namespace.  Keep in mind that programmatically controlling ClickOnce
deployments requires Full Trust permissions to execute, but you probably
already have the permissions if you are hosting a .Net control in an
object tag.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com




Show quoteHide quote
"Craig P" <Cra***@discussions.microsoft.com> wrote in message
news:F58C72D0-5C6E-4335-9A38-C715E8E9E356@microsoft.com:

> I want to display a UserControl on a web page using an <object> tag.  The
> control has dependent assemblies that are quite large.  These assemblies are
> installed on the client, but I don't see a way to use them.  The dependent
> assemblies are always download from the web server resulting in intolerable
> performance.  I have tried using an application configuration file, but the
> Fusion log reports that it won't probe the specified client location because
> that is outside the appbase.
>
> The ideal solution would be to put the UserControl assembly on the client
> too, but the object codebase will not allow a file:// location.