Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 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 September 21st, 2009, 01:42 PM
Authorized User
 
Join Date: Sep 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default error related to MasterPage.master

i get a error at the first line of administration.aspx file (must be the same for other file using MasterPage.master) :

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="OneAfrik" %>

OneAfrik = PaidTimeOff

after several tries, it seems that the following line is concerned too :
<%@ Register Assembly="OneAfrik.FrameworkControls" Namespace="OneAfrik.FrameworkControls" TagPrefix="cc1" %>


something to do with the .master file.

the error : The type name 'FrameworkControls' does not exist in the type 'OneAfrik'
C:\Users\georges\Documents\Visual Studio 2008\Projects\OneAfrikSolution\OneAfrikUI\MasterPa ge.master

when i remove the line "<%@ Master...." the compilation goes fine. but of course there are errors at the runtime cause some initialization are missing.

i don't have any idea of why this error pops up. any help?

thx
Georges

Last edited by moulot; September 21st, 2009 at 02:33 PM..
 
Old September 23rd, 2009, 09:58 AM
Authorized User
 
Join Date: Sep 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default solution to the strange error

i finally find what was the cause of the error :

i change on of the projects in the solution to OneAfrik.FrameworkControls.
i also called the master page OneAfrik.master, so the auto generated class in the .master.cs file is also called OneAfrik.

the confusion comes when i need to add a reference to the BLL project : OneAfrik.BLL.Framework or for the controls (MenuTabs and MenuTree) : OneAfrik.FrameworkControls.

changing the master page name solved the issue.

thank you





Similar Threads
Thread Thread Starter Forum Replies Last Post
MasterPage.master - where does MainMenu Class get declared? kiwibrit BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 August 17th, 2009 04:26 PM
[newbie]network-related or instance-specific error occurred jon80 BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 1 March 15th, 2009 04:02 PM
[newbie]A network-related or instance-specific error... jon80 BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 0 March 14th, 2009 07:43 AM
error related to vb6 Rajesh Pachouri Pro VB 6 0 September 16th, 2006 03:14 AM
Generics Related error in my code, I think??? rodmcleay Generics 1 August 3rd, 2006 12:02 AM





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