473,466 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Shared User Control - with Codebehind

Hi there!

I'm following this article
(http://www.codeproject.com/aspnet/ctrlreuse.asp -> "Share your user control
across multiple web applications".
It explains how to share user control with codebehind.

So, I have 2 projects: The first is my UserControl's project and the other
the Consumer's project.
I have put the assembly in GAC but I'm still getting this error at the
consumer: Could not load type 'SharedUserControl.CabecalhoPadrao'

In short, my consumer's project can achieve the usercontrol (in deeper
virtual directory) but that says can't "see" the class (CabecalhoPadrao)...

Any Ideas?

thanks so mutch
Marcos
Nov 18 '05 #1
3 1536
did you set a reference?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Marcos MOS" <ma***********@softway.com.br> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...
Hi there!

I'm following this article
(http://www.codeproject.com/aspnet/ctrlreuse.asp -> "Share your user control across multiple web applications".
It explains how to share user control with codebehind.

So, I have 2 projects: The first is my UserControl's project and the other
the Consumer's project.
I have put the assembly in GAC but I'm still getting this error at the
consumer: Could not load type 'SharedUserControl.CabecalhoPadrao'

In short, my consumer's project can achieve the usercontrol (in deeper
virtual directory) but that says can't "see" the class (CabecalhoPadrao)...
Any Ideas?

thanks so mutch
Marcos

Nov 18 '05 #2
Yes, I did.

If I cut out the Codebehind and Inherits tags and put the block code in aspx
file ... That error disappear...

thanks
Marcos
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem
news:ur**************@tk2msftngp13.phx.gbl...
did you set a reference?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Marcos MOS" <ma***********@softway.com.br> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...
Hi there!

I'm following this article
(http://www.codeproject.com/aspnet/ctrlreuse.asp -> "Share your user

control
across multiple web applications".
It explains how to share user control with codebehind.

So, I have 2 projects: The first is my UserControl's project and the other the Consumer's project.
I have put the assembly in GAC but I'm still getting this error at the
consumer: Could not load type 'SharedUserControl.CabecalhoPadrao'

In short, my consumer's project can achieve the usercontrol (in deeper
virtual directory) but that says can't "see" the class

(CabecalhoPadrao)...

Any Ideas?

thanks so mutch
Marcos


Nov 18 '05 #3
Hi!

Now It is working ok!
But I have to put that line <add assembly="WebProjectShared,
Version=1.0.1.2, Culture=neutral, PublicKeyToken=e76881568d417308"/>
into the machine.config, ok?
But Could you teach me How version issue works? I mean, if I rebuild my
assembly with the same version the Consumer project doen't see the changes,
right? Is there any way?

thanks
Marcos
"Marcos MOS" <ma***********@softway.com.br> escreveu na mensagem
news:ua**************@TK2MSFTNGP10.phx.gbl...
Hi there!

I'm following this article
(http://www.codeproject.com/aspnet/ctrlreuse.asp -> "Share your user control across multiple web applications".
It explains how to share user control with codebehind.

So, I have 2 projects: The first is my UserControl's project and the other
the Consumer's project.
I have put the assembly in GAC but I'm still getting this error at the
consumer: Could not load type 'SharedUserControl.CabecalhoPadrao'

In short, my consumer's project can achieve the usercontrol (in deeper
virtual directory) but that says can't "see" the class (CabecalhoPadrao)...
Any Ideas?

thanks so mutch
Marcos

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Alphonse Giambrone | last post by:
I have a web form with 2 user controls on it (UC1 and UC2). Each control has a bound datagrid with textboxes in the footer to add a new row. There are also requiredfieldvalidators in each footer....
0
by: Colin | last post by:
Hi there, I really need your help on this. I'm trying to learn to using the VS.2003 to create a User Control. In my aspx code has no problem to use the property "grossWaye" that has "register" in...
6
by: trinitypete | last post by:
I have a user control that is basically a login dialogue. If I add the user control to webpage1, can I access the properties directly from C# codebehind, or do I have to access the properties from...
6
by: Nehal Shah | last post by:
I've read that in the Page Directive of an aspx page, changing the CodeBehind attribute to Src saves you from having to compile the page before refreshing. This is preferable in a large...
13
by: Lloyd Sheen | last post by:
I have now spent 5 hours on google/msdn looking for something useful in the creation of user controls for asp.net. The VS 2003 has very limited support for things such as absolute positioning of...
3
by: Marcos MOS | last post by:
Hi there! I'm following this article (http://www.codeproject.com/aspnet/ctrlreuse.asp -> "Share your user control across multiple web applications". It explains how to share user control with...
11
by: tshad | last post by:
I am setting up some of my functions in a class called MyFunctions. I am not clear as to the best time to set a function as Shared and when not to. For example, I have the following bit...
3
by: Mr Newbie | last post by:
I am messing around with Web User Controls at present and (think) I have discovered the following. 1.) The identifier for the control in the code behind must match the ID for the control on the...
27
by: Javier Martinez | last post by:
Hi I have asp application in a machine with a virtual directory referring a shared directory in another machine When I try to load any aspx page of my portal I get the following error: ...
4
by: archana | last post by:
Hi all, i am having one user control. what i want is to add javascript which will gets called on button click of user control. but user control is not working if i add javascript in user...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.