Import of a User Control in GAC

M

Manuel Lopez

Hello,

I am trying to share User Controls.

I want all the codehind of a User Control to be a compiled DLL and
have this DLL in the GAC.

I have this declarative in the user control:

<%@ Control Language="vb" AutoEventWireup="false"
Inherits="UserControls.Header"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>

I have omited the codehind and placed the UserControls DLL in the GAC.
From my web application i reference the usercontrols.dll, and since
it´s in the GAC it doesn´t copy the DLL to the BIN folder, which is
what it´s supposed to do.

But when i execute the web application it complains that it can´t find
the dll.

This is fixed by placing the dll in the BIN folder.(Which doesn´t help
since we would have to copy this dll to all the all the applications.

Is there a way to to make a user control to inherit from a dll in the
GAC?

Many Thanks.
Manuel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,573
Members
45,046
Latest member
Gavizuho

Latest Threads

Top