473,769 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.H tmlControls.Htm lLink' in this class.

Source Error:
Line 2: <%@ Register TagPrefix="Saga ra" Namespace="Saga ra.BreadCrumbs"
Assembly="Bread Crumbs" %>
Line 3: <html>
Line 4: <head runat=server>
Line 5: <meta http-equiv="content-type"
content="text/html;charset=IS O-8859-1">
Line 6: <link rel="stylesheet " type="text/css" href="/iris.css">
Source File: E:\TestSite\inc ludes\NoRight.M aster

What would cause this error and how can this be prevented?
Nov 19 '05 #1
3 3271
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.H tmlControls.Htm lLink' in this class.

Source Error:
Line 2: <%@ Register TagPrefix="Saga ra" Namespace="Saga ra.BreadCrumbs"
Assembly="Bread Crumbs" %>
Line 3: <html>
Line 4: <head runat=server>
Line 5: <meta http-equiv="content-type"
content="text/html;charset=IS O-8859-1">
Line 6: <link rel="stylesheet " type="text/css" href="/iris.css">
Source File: E:\TestSite\inc ludes\NoRight.M aster

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*******@disc ussions.microso ft.com> wrote in message
news:0A******** *************** ***********@mic rosoft.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.H tmlControls.Htm lLink' in this
class.

Source Error:
Line 2: <%@ Register TagPrefix="Saga ra" Namespace="Saga ra.BreadCrumbs"
Assembly="Bread Crumbs" %>
Line 3: <html>
Line 4: <head runat=server>
Line 5: <meta http-equiv="content-type"
content="text/html;charset=IS O-8859-1">
Line 6: <link rel="stylesheet " type="text/css" href="/iris.css">
Source File: E:\TestSite\inc ludes\NoRight.M aster

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*******@disc ussions.microso ft.com> wrote in message
news:0A******** *************** ***********@mic rosoft.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.H tmlControls.Htm lLink' in this
class.

Source Error:
Line 2: <%@ Register TagPrefix="Saga ra" Namespace="Saga ra.BreadCrumbs"
Assembly="Bread Crumbs" %>
Line 3: <html>
Line 4: <head runat=server>
Line 5: <meta http-equiv="content-type"
content="text/html;charset=IS O-8859-1">
Line 6: <link rel="stylesheet " type="text/css" href="/iris.css">
Source File: E:\TestSite\inc ludes\NoRight.M aster

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
1627
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
2438
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 web part page? Does it take place at the page level? ...or the content area level? 3. Where is the Web Part Manager instantiated? ...in the Master Page? ....Content Page? ...elsewhere?
20
2428
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 include files to change the layout. When I came to ASP.NET, I used user controls to do a similar thing. I have just been looking at master pages, and it looks like they do the same thing. If so, is there any advantage in using them over the...
1
1873
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 master page looks like this... <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
17
3160
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 pages? Kinda sorta a critical point no? Am I missing something? Rob. P.S. the day I find a book that actually is useful rather than just a
7
8730
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 remain the same. I am interested to know your opinions/suggestions in finding an easy way of doing it. In asp one could have something like this:
8
6701
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 and also my first true attempt at using master pages. I tried setting up a style sheet with a simple setting to float an image to the right and it had no effect on the image. Then, I tried putting the style code in my ASPX file as such,
3
5974
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 master page, which both of these child master pages are based on, and in turn the final pages are based on one of these child master pages.
13
5316
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 (called "CurFlag") on my master page that can be accessed from content pages, but not from separate code modules. I tried doing something like this in my VB code module: Dim myMaster As MasterPage = CType(ProjectMgmt.Master, MasterPage)
6
1691
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 templates in that when the master page is updated, all the child pages created from the master page are updated and then they all need to be uploaded to the server? Or do you only have to upload the master page after an update?
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10045
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9994
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8870
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.