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

Master Pages

We have used master pages for our website and everything works fine until we
need to update one of the dll files. When a new dll is added or an old one is
updated the website gives an error message that can be corrected by making a
small change to the master page file(such as adding a space and saving).

Compiler Error Message: BC30260: '__control2' is already declared as
'Private Dim __control2 As System.Web.UI.HtmlControls.HtmlLink' in this class.

Source Error:
Line 2: <%@ Register TagPrefix="Sagara" Namespace="Sagara.BreadCrumbs"
Assembly="BreadCrumbs" %>
Line 3: <html>
Line 4: <head runat=server>
Line 5: <meta http-equiv="content-type"
content="text/html;charset=ISO-8859-1">
Line 6: <link rel="stylesheet" type="text/css" href="/iris.css">
Source File: E:\TestSite\includes\NoRight.Master

What would cause this error and how can this be prevented?
Nov 19 '05 #1
3 3203
You should be able to control this by specifying that the web application
automatically uses a new version of the DLL. If you are going to use 1.x
methodologies (compiling assemblies) with 2.0 (assuming so, since you are
talking master pages), you should compile the site to deploy and deploy that
code whenever changes are made. You get a couple of benefits:

1. The actual pages are not deployed, so you have less likelihood of someone
stealing any source.

2. The site, precompiled, will run quicker, at least in theory.

One other option is to use the new .axd file (precompile.axd or compile.axd)
which will rewalk the site and ensure all use the new DLL. This may still
require telling the app it needs to use a new version of the DLL (in the
config), but I do not think so.

If this is 1.x, the majority of the advice above still works, although you
do not have precompile, etc., but have to use config to indicate new versions
are to be used by your app.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"TBocchino" wrote:
We have used master pages for our website and everything works fine until we
need to update one of the dll files. When a new dll is added or an old one is
updated the website gives an error message that can be corrected by making a
small change to the master page file(such as adding a space and saving).

Compiler Error Message: BC30260: '__control2' is already declared as
'Private Dim __control2 As System.Web.UI.HtmlControls.HtmlLink' in this class.

Source Error:
Line 2: <%@ Register TagPrefix="Sagara" Namespace="Sagara.BreadCrumbs"
Assembly="BreadCrumbs" %>
Line 3: <html>
Line 4: <head runat=server>
Line 5: <meta http-equiv="content-type"
content="text/html;charset=ISO-8859-1">
Line 6: <link rel="stylesheet" type="text/css" href="/iris.css">
Source File: E:\TestSite\includes\NoRight.Master

What would cause this error and how can this be prevented?

Nov 19 '05 #2
Something to keep in mind, if you are using Master Pages for ASP.Net 2.0 and
making your web site public you are violating the license. Currently you
can't deploy ASP.Net solutions publically. There will be a go-live license
sometime at the beginning of the year that will let you do that.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"TBocchino" <TB*******@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
We have used master pages for our website and everything works fine until
we
need to update one of the dll files. When a new dll is added or an old one
is
updated the website gives an error message that can be corrected by making
a
small change to the master page file(such as adding a space and saving).

Compiler Error Message: BC30260: '__control2' is already declared as
'Private Dim __control2 As System.Web.UI.HtmlControls.HtmlLink' in this
class.

Source Error:
Line 2: <%@ Register TagPrefix="Sagara" Namespace="Sagara.BreadCrumbs"
Assembly="BreadCrumbs" %>
Line 3: <html>
Line 4: <head runat=server>
Line 5: <meta http-equiv="content-type"
content="text/html;charset=ISO-8859-1">
Line 6: <link rel="stylesheet" type="text/css" href="/iris.css">
Source File: E:\TestSite\includes\NoRight.Master

What would cause this error and how can this be prevented?

Nov 19 '05 #3
Currently we are using Master Pages for ASP.NET 2.0 on our test site for
development and it is causing the test site to go down when the dlls are
updated on that site.

"Mark Fitzpatrick" wrote:
Something to keep in mind, if you are using Master Pages for ASP.Net 2.0 and
making your web site public you are violating the license. Currently you
can't deploy ASP.Net solutions publically. There will be a go-live license
sometime at the beginning of the year that will let you do that.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"TBocchino" <TB*******@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
We have used master pages for our website and everything works fine until
we
need to update one of the dll files. When a new dll is added or an old one
is
updated the website gives an error message that can be corrected by making
a
small change to the master page file(such as adding a space and saving).

Compiler Error Message: BC30260: '__control2' is already declared as
'Private Dim __control2 As System.Web.UI.HtmlControls.HtmlLink' in this
class.

Source Error:
Line 2: <%@ Register TagPrefix="Sagara" Namespace="Sagara.BreadCrumbs"
Assembly="BreadCrumbs" %>
Line 3: <html>
Line 4: <head runat=server>
Line 5: <meta http-equiv="content-type"
content="text/html;charset=ISO-8859-1">
Line 6: <link rel="stylesheet" type="text/css" href="/iris.css">
Source File: E:\TestSite\includes\NoRight.Master

What would cause this error and how can this be prevented?


Nov 19 '05 #4

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

Similar topics

1
by: Sasha | last post by:
Hi all asp.net proffesionals out there, How do you implement master pages in your applications? What libraries do you use and what have been your experience? Sasha
5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
20
by: Alan Silver | last post by:
Hello, In classic ASP, I used to use two include files on each page, one before and one after the main content, to provide a consistent layout across a web site. That way I could just change the...
1
by: Alan Silver | last post by:
Hello, I am just experimenting with master pages, and am trying to add a content placeholder in the <head> section, so that individual pages can set their own page title and meta tags. The...
17
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
8
by: JT | last post by:
Hi, I have done a fair amount of style editing inline in ASP. I'm now using VS 2005 with a standard web project (not Web Application Project). This is my first foray into CSS in a style sheet...
3
by: Rich | last post by:
Hi, I want to use 2 master pages, one for the main part of the site, the other for the admin pages. They are quite similar, with many shared elements. Ideally I would like to have a parent...
13
by: Kirk | last post by:
I have been reading Scott Allen's article on Master Pages (http:// odetocode.com/Articles/450.aspx) but I am having problems understanding a concept. Specifically, I have created a property...
6
by: Mickey | last post by:
Coming from a Dreamweaver/ASP/PHP background. Planning to use Visual Studio 2008 for a website. Complete newbie question here (please be gentle!): Do master pages work similar to Dreamweaver...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.