473,327 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

how to share user controls across apps

dx
I have 3 vb.net web applications. I would like all 3 to have access to a
library of user controls. server controls wouldn't cause a problem but these
are user controls (ascx.) From each solution I reference the user control
library project and create a virtual directory under each applicatoin that
links to the folder that contains the ascx files but I get a runtime error
like:

Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'Reg.AffFooter'.

Any ideas? Much thanks in advance.

Stan
Nov 19 '05 #1
4 1428
User controls are easy to create, but there is no supported way to share
them across projects.

Conversly, Custom controls are easier to use and to reuse across projects
because they are compiled into separate DLLs.

Here's more info:
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"dx" <de*********@yahoo.com> wrote in message
news:Pn******************@fe05.lga...
I have 3 vb.net web applications. I would like all 3 to have access to a
library of user controls. server controls wouldn't cause a problem but
these are user controls (ascx.) From each solution I reference the user
control library project and create a virtual directory under each
applicatoin that links to the folder that contains the ascx files but I get
a runtime error like:

Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'Reg.AffFooter'.

Any ideas? Much thanks in advance.

Stan

Nov 19 '05 #2
You can accomplish this in a "pretty ugly way".
Try publishing your user controls in GAC.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:uJ**************@TK2MSFTNGP09.phx.gbl...
User controls are easy to create, but there is no supported way to share
them across projects.

Conversly, Custom controls are easier to use and to reuse across projects
because they are compiled into separate DLLs.

Here's more info:
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"dx" <de*********@yahoo.com> wrote in message
news:Pn******************@fe05.lga...
I have 3 vb.net web applications. I would like all 3 to have access to a
library of user controls. server controls wouldn't cause a problem but
these are user controls (ascx.) From each solution I reference the user
control library project and create a virtual directory under each
applicatoin that links to the folder that contains the ascx files but I
get a runtime error like:

Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'Reg.AffFooter'.

Any ideas? Much thanks in advance.

Stan


Nov 19 '05 #3
dx

Steve,

Thanks for the reply. I'm going to have (another) decent sized project if I
have to rewrite our user controls as server controls.

I found this article yesterday evening. Anyone have experience with this
approach?

http://www.codeproject.com/aspnet/ctrlreuse.asp

Thank You and have a great weekend,
stan


"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:uJ**************@TK2MSFTNGP09.phx.gbl...
User controls are easy to create, but there is no supported way to share
them across projects.

Conversly, Custom controls are easier to use and to reuse across projects
because they are compiled into separate DLLs.

Here's more info:
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"dx" <de*********@yahoo.com> wrote in message
news:Pn******************@fe05.lga...
I have 3 vb.net web applications. I would like all 3 to have access to a
library of user controls. server controls wouldn't cause a problem but
these are user controls (ascx.) From each solution I reference the user
control library project and create a virtual directory under each
applicatoin that links to the folder that contains the ascx files but I
get a runtime error like:

Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'Reg.AffFooter'.

Any ideas? Much thanks in advance.

Stan


Nov 19 '05 #4
dx

Thanks for your reply Felipe. I'm curious, do you consider this ugly due to
performance degredation or some other reason?

Thanks again!

stan

"Felipe Garcia" <#> wrote in message
news:Ob**************@tk2msftngp13.phx.gbl...
You can accomplish this in a "pretty ugly way".
Try publishing your user controls in GAC.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:uJ**************@TK2MSFTNGP09.phx.gbl...
User controls are easy to create, but there is no supported way to share
them across projects.

Conversly, Custom controls are easier to use and to reuse across projects
because they are compiled into separate DLLs.

Here's more info:
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"dx" <de*********@yahoo.com> wrote in message
news:Pn******************@fe05.lga...
I have 3 vb.net web applications. I would like all 3 to have access to a
library of user controls. server controls wouldn't cause a problem but
these are user controls (ascx.) From each solution I reference the user
control library project and create a virtual directory under each
applicatoin that links to the folder that contains the ascx files but I
get a runtime error like:

Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse
error details and modify your source file appropriately.

Parser Error Message: Could not load type 'Reg.AffFooter'.

Any ideas? Much thanks in advance.

Stan



Nov 19 '05 #5

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

Similar topics

3
by: Newbee Adam | last post by:
anyone have any secrets or pearls about vb.net you want to share I was asked by my company to begin teach an introductory VB.Net course 2 day seminar. I had been teaching an sql server 2000...
1
by: mg | last post by:
I took the following steps to share a user control across applications but was unsuccessful. WebUserControl: <%@ Control Language="c#" AutoEventWireup="false" ClassName="WebUserControl1" %>...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
2
by: Eric | last post by:
I have a header server(.ascx) control that I want to use with all my existing seperate web apps. These web apps are configured as seperate web apps in IIS but when I try to build my solutiuon...
3
by: Chad A. Beckner | last post by:
Hey everyone, Ok. I have a "template and skin" setup on the beginnings of a new portal site. In this site, there are going to be many applications, which will be store underneath the "master"...
1
by: Martin | last post by:
Hi, How can I share config data between different web apps? If I have 2 sub apps, can they inherit the config of the parent app? Is this the best way to share config between different web...
5
by: Raed Sawalha | last post by:
We have a web application with at least 570 Pages and 10's of user controls ....all under project name LinkDevProject ...recently we start separating the project into multiple projects ....the...
4
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients...
4
by: DaveOnSEN | last post by:
I love how easy it is to develop ASP.NET user controls. They are fast to make and easy to reuse within your web application. However, sometimes I want to make controls that I use in one web...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.