Wrox Programmer Forums
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 22nd, 2012, 04:53 PM
Authorized User
Join Date: Feb 2006
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default Chap 19, p710: Publish Web Site

Hi Imar,
After doing TIO p707, Copy Web Site, which proceeded with no errors, I tried to use the Publish Web Site -- but this failed because of the only error:
"Controls_ContactForm is ambiguous" in file "Contact.aspx", Line 11:

Contact.aspx markup is given below, line 11, being the line just before the closing: </asp:Content> at the bottom.

HTML Code:
<%@ Page Title="Contact Us" Language="VB" MasterPageFile="~/MasterPages/Frontend.master" 
                      AutoEventWireup="false" CodeFile="Contact.aspx.vb" Inherits="About_Contact" %>
<%@ Register src="../Controls/ContactForm.ascx" tagname="ContactForm" tagprefix="ucmk" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="cpMC" Runat="Server">
            <%--using a 'user control' --%>
            <ucmk:ContactForm ID="ContactForm1" runat="server" />
Any suggestions?
Old August 22nd, 2012, 05:04 PM
Authorized User
Join Date: Feb 2006
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post

Sorry -- there was another file, Copy of Contact.aspx that must have caused the problem. Once I excluded it from the project, Publishing finished with no problem.
Old August 22nd, 2012, 05:06 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Yes, that explains it, as both files probably shared the same code behind class name.

Glad to hear it's working fine.


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!

Similar Threads
Thread Thread Starter Forum Replies Last Post
UNABLE TO PUBLISH WEB SITE JORGEMAL Visual Studio 2005 0 April 2nd, 2008 06:09 PM
Publish Web Site & Copy Web Site angshujit ASP.NET 2.0 Basics 1 June 15th, 2007 09:21 AM
publish web site error mazhiguo_1219 ASP.NET 2.0 Professional 3 June 6th, 2007 10:05 AM
Web site administration tool (publish) swifty_programmer ASP.NET 2.0 Professional 1 May 9th, 2007 06:31 AM
How to publish my web site online? johnsonlim026 ASP.NET 1.0 and 1.1 Professional 5 October 28th, 2005 05:49 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.