473,395 Members | 2,151 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,395 software developers and data experts.

@Register - Assembly Parameter

This is an extension of a post I made in microsoft.public.dotnet.general.

In my aspx file, there when I need to use a web control on the page and the
web control is in an assembly which in turn is in the Global Assembly Cache,
the Assembly attribute of the @Register directive is automatically populated
by the .Net IDE with the full name of the assembly (including the version).
Is there a way I can tell the framework to use the most recent version found
in the GAC at compile time?

Thanks,
Mythran
Mar 26 '07 #1
2 1820


"Mythran" <ki********@hotmail.comwrote in message
news:eZ**************@TK2MSFTNGP03.phx.gbl...
This is an extension of a post I made in microsoft.public.dotnet.general.

In my aspx file, there when I need to use a web control on the page and
the web control is in an assembly which in turn is in the Global Assembly
Cache, the Assembly attribute of the @Register directive is automatically
populated by the .Net IDE with the full name of the assembly (including
the version). Is there a way I can tell the framework to use the most
recent version found in the GAC at compile time?

Thanks,
Mythran

Found out how to do this on my own using MSDN (gotta love that library).
Anywho, in web.config:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<qualifyAssembly
partialName="MyLibrary"
fullName="Fullname with version information"
/>
</assemblyBinding>
</runtime>
</configuration>

Now I don't have to specify the version #'s in the individual asp file...my
problem now is that the IDE still inserts the version #'s automatically and
I still have to manually remove them from the aspx file...is there a way to
prevent this?

Thanks,
Mythran
Mar 27 '07 #2
Howdy,

Yes, you can with policy file. Please check following links:

http://msdn.microsoft.com/library/de...assemblies.asp

http://msdn2.microsoft.com/en-us/lib...29(VS.71).aspx

hope this helps
--
Milosz
"Mythran" wrote:
This is an extension of a post I made in microsoft.public.dotnet.general.

In my aspx file, there when I need to use a web control on the page and the
web control is in an assembly which in turn is in the Global Assembly Cache,
the Assembly attribute of the @Register directive is automatically populated
by the .Net IDE with the full name of the assembly (including the version).
Is there a way I can tell the framework to use the most recent version found
in the GAC at compile time?

Thanks,
Mythran
Mar 28 '07 #3

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

Similar topics

0
by: Naresh Sharma | last post by:
I have dot net framework version 1.1, .NET VS 2002 installed on my machine and also I have the administrator role assigned to me. I wrote a simple console application class which I derived from...
2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
0
by: Boomessh | last post by:
Hai all, can any one help me in solving he following problem? I am registering a COM+ component in a machine. While registering i am getting the following error. ...
3
by: Max | last post by:
Is there a way to register an assembly programatically?
18
by: Praveen Ramesh | last post by:
Hi, Is there any way to add the @Assembly reference to the aspx files programmatically from inside a custom control (when it gets dropped on to the page from the toolbox)? I have a custom...
8
by: Umut Tezduyar | last post by:
I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly. My question is, if i create a custom web...
0
by: trini32 | last post by:
and another problem which just wont work as I planned.. I created an aspx site (report) as follows: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Report.aspx.cs"...
0
by: pankajprakash | last post by:
Hi all I am using the Ajax control toolkit and want to the fill the gridview but at the time of rendering it occurs the error "Sys.ArgumentNullException: Value cannot be null. Parameter name:...
6
by: Piotrekk | last post by:
Hi In my solution I have two projects. First is Library project. The second project uses this library ( dll ). I am registering this assembly in global assembly cache ( by .net configuration...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.