473,385 Members | 1,311 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,385 software developers and data experts.

Help on <assemblies> key in web config file ???

Dear all,

I have read that instead of registering an assembly on the top a a page with
the Register directive we can use the <assembliea> section of Web config file
as follow :

<assemblies>
<add assembly="SharpUI.Input, Version=1.1.1.1220,
Culture=neutral,
PublicKeyToken=f517ee9424cd48d0"/>
</assemblies>

Then component within this assembly will be automatically register for
beeing used by all your application pages..

But then how can I use assembly components in my code? I thing I still need
to add my assembly as reference in my project or use the imports keywords ?

regards
serge
Nov 21 '05 #1
4 1730
I believe this merely registers the assemblies so that they are visable in
your code. Much like going into VS.Net and click "Add Reference".

I believe what you want is to Register a namespace/assembly which contains
controls.

In 2.0 you can do this from the web.config, not in 1.x. Here's how you do it
in 2.0:

<pages>
<controls>
<add tagPrefix="X" namespace="XX" assembly="XXX" />
</controls>
</pages>
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:55**********************************@microsof t.com...
Dear all,

I have read that instead of registering an assembly on the top a a page
with
the Register directive we can use the <assembliea> section of Web config
file
as follow :

<assemblies>
<add assembly="SharpUI.Input, Version=1.1.1.1220,
Culture=neutral,
PublicKeyToken=f517ee9424cd48d0"/>
</assemblies>

Then component within this assembly will be automatically register for
beeing used by all your application pages..

But then how can I use assembly components in my code? I thing I still
need
to add my assembly as reference in my project or use the imports keywords
?

regards
serge

Nov 21 '05 #2
No it is in ASP 1.1

What I have read is that for instance if you have an assembly in GAC and
components in this assembly will be used on several page in the web
application
then you should use the <add> key of the <assemblies> section in web.config
file.

It says that this way links the assembly to the application and make the
assembly availabale to all web form...

But then how to refer it in code as it is needed either to imports or add it
with reference ??

"Karl Seguin" wrote:
I believe this merely registers the assemblies so that they are visable in
your code. Much like going into VS.Net and click "Add Reference".

I believe what you want is to Register a namespace/assembly which contains
controls.

In 2.0 you can do this from the web.config, not in 1.x. Here's how you do it
in 2.0:

<pages>
<controls>
<add tagPrefix="X" namespace="XX" assembly="XXX" />
</controls>
</pages>
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:55**********************************@microsof t.com...
Dear all,

I have read that instead of registering an assembly on the top a a page
with
the Register directive we can use the <assembliea> section of Web config
file
as follow :

<assemblies>
<add assembly="SharpUI.Input, Version=1.1.1.1220,
Culture=neutral,
PublicKeyToken=f517ee9424cd48d0"/>
</assemblies>

Then component within this assembly will be automatically register for
beeing used by all your application pages..

But then how can I use assembly components in my code? I thing I still
need
to add my assembly as reference in my project or use the imports keywords
?

regards
serge


Nov 21 '05 #3
Ok karl by referecing it I miss explain myself.

What I means is explain here at this link:
http://msdn.microsoft.com/library/de...onassembly.asp

Starting from here, What is the idea toi link an assembly to your
application at runtime, becasue anyway you will have to add a reference to
your project for using it ? this is what I do not really catch

"Karl Seguin" wrote:
I believe this merely registers the assemblies so that they are visable in
your code. Much like going into VS.Net and click "Add Reference".

I believe what you want is to Register a namespace/assembly which contains
controls.

In 2.0 you can do this from the web.config, not in 1.x. Here's how you do it
in 2.0:

<pages>
<controls>
<add tagPrefix="X" namespace="XX" assembly="XXX" />
</controls>
</pages>
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:55**********************************@microsof t.com...
Dear all,

I have read that instead of registering an assembly on the top a a page
with
the Register directive we can use the <assembliea> section of Web config
file
as follow :

<assemblies>
<add assembly="SharpUI.Input, Version=1.1.1.1220,
Culture=neutral,
PublicKeyToken=f517ee9424cd48d0"/>
</assemblies>

Then component within this assembly will be automatically register for
beeing used by all your application pages..

But then how can I use assembly components in my code? I thing I still
need
to add my assembly as reference in my project or use the imports keywords
?

regards
serge


Nov 21 '05 #4
Serge:
I'm answering this in your other thread, 'cuz I think it's more relevant.

Anyone interested should look for Serge's post entitiled "Simple Question :
reference vs Register"

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:43**********************************@microsof t.com...
Ok karl by referecing it I miss explain myself.

What I means is explain here at this link:
http://msdn.microsoft.com/library/de...onassembly.asp

Starting from here, What is the idea toi link an assembly to your
application at runtime, becasue anyway you will have to add a reference to
your project for using it ? this is what I do not really catch

"Karl Seguin" wrote:
I believe this merely registers the assemblies so that they are visable
in
your code. Much like going into VS.Net and click "Add Reference".

I believe what you want is to Register a namespace/assembly which
contains
controls.

In 2.0 you can do this from the web.config, not in 1.x. Here's how you do
it
in 2.0:

<pages>
<controls>
<add tagPrefix="X" namespace="XX" assembly="XXX" />
</controls>
</pages>
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:55**********************************@microsof t.com...
> Dear all,
>
> I have read that instead of registering an assembly on the top a a page
> with
> the Register directive we can use the <assembliea> section of Web
> config
> file
> as follow :
>
> <assemblies>
> <add assembly="SharpUI.Input, Version=1.1.1.1220,
> Culture=neutral,
> PublicKeyToken=f517ee9424cd48d0"/>
> </assemblies>
>
> Then component within this assembly will be automatically register for
> beeing used by all your application pages..
>
> But then how can I use assembly components in my code? I thing I still
> need
> to add my assembly as reference in my project or use the imports
> keywords
> ?
>
> regards
> serge


Nov 21 '05 #5

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

Similar topics

8
by: Bob Rock | last post by:
Hello, is there a tool around that given an assembly shows the referenced assemblies??? Any code snippet to do this programmatically??? Regards, Bob Rock
7
by: Randy Paez | last post by:
I installed a control that i got rid of. Now when i try and run another project i get an Access is Denied {to that control}. It highlites <add assembly="*"> from the machine.config file. How can i...
2
by: Jiho Han | last post by:
This has been asked many times before but it seems there haven't been clear answers. I have an application root at http://localhost and subdirectories http://localhost/app1
8
by: Subra Mallampalli | last post by:
Hi, I am trying to use <runtime> section within the web.config file. However, the contents of the <runtime> section seem to be ignored. What am i missing here? Is <runtime> section not used by...
3
by: ctk70 | last post by:
I'm trying to run a ASP.NET 1.1 app on a Windows 2003 server. The app runs fine on my local workstation (Windows 2000 SP4). Both the server and workstation have Visual Studio .NET 2003 installed. ...
6
by: Prodip Saha | last post by:
I am trying to load a shared component like DataAccess from GAC and not been able to successfully get it working for my asp.net application. The dll is loading from the GAC with correct version and...
1
by: ad | last post by:
I find an assemblies section in web.config. There are some PublicKey in it. What do these PublicKey do? What does <assembliessession do? <assemblies> <add...
5
by: =?Utf-8?B?U3RldmVuIEJlcmtvdml0eg==?= | last post by:
Hi there, I am having a strange problem which I have actually seen on 2 different servers now. The problems manifests itself as a ConfigurationException, and upon inspection, a new...
0
by: Gregory Gadow | last post by:
We have a number of development machines in our IT department, all running the same version of VS 2005 sp 1. Our company website and several compiled components were all written in VB.Net 2.0 using...
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.