|
Declaratively using custom controls from the GAC: msg#00119windows.devel.dotnet.web
I have some custom controls that will be used by multiple web apps. So I placed them in an assembly that installs in the GAC. If I want to use the custom controls declaratively, I need to add something like the following directive to my page: <%@ Register TagPrefix="cc2" Namespace="SomeCompany.Web.UI.WebControls" Assembly="SomeCompany.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1234567890123456" %> The problem is that the version binding happens at code writing time. If the version of the SomeCompany.Web assembly changes, I need to change the aspx file by hand. However, if you use the custom controls dynamically (from the code behind page), then the version binding happens at compile time. That's the behavior I want for my declarative usage as well. Somehow this behavior happens for the System.Web assembly. I don't have to have a Register directive for the System.Web assembly and the version binding happens at compile time. This is especially problematic where you have nightly builds that auto increment the version numbers. Anyone else come across this annoyance? Is there some way to still use the controls declaratively without specifying the version at code writing time? Thanks, Russ =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Please comment!: 00119, Adam Sills |
|---|---|
| Next by Date: | Re: Declaratively using custom controls from the GAC: 00119, Christopher Reed |
| Previous by Thread: | Please comment!i: 00119, Daniel Schaffer |
| Next by Thread: | Re: Declaratively using custom controls from the GAC: 00119, Ryan Reid |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |