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 June 10th, 2009, 02:55 PM
Authorized User
 
Join Date: Jun 2009
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Default missing using directive or assembly reference

per recommendation, code is used directly from the book's download.
please explain why this error is occurring.

Code:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using V2.PaidTimeOffBLL.Framework;
 
 
public partial class Administration_Workflows : BasePage
{
    private const int COL_INDEX_ACTION = 0;
    private const int COL_INDEX_WORKFLOW_NAME = 1;
    private const int COL_INDEX_OBJECT_NAME = 2;
 
    protected void Page_Load(object sender, EventArgs e)
    {
        Master.AddButton_Click += new PaidTimeOffEditGrid.ButtonClickedHandler(Master_AddButton_Click);
 
        if (!IsPostBack)
        {
            //Tell the control what class to create and what method to call to load the class.
            cgvWorkflows.ListClassName = typeof(ENTWorkflowEOList).AssemblyQualifiedName;
            cgvWorkflows.LoadMethodName = "Load";
 
        }
    }

and here's what it's referring to, showing there IS a ENTWorkflowEOList there:

Code:
    [Serializable()]
    public class ENTWorkflowEOList : ENTBaseEOList<ENTWorkflowEO>
    {
        public override void Load()
        {
            LoadFromList(new ENTWorkflowData().Select());
        }
 
        private void LoadFromList(List<ENTWorkflow> eNTWorkflows)
        {
            if (eNTWorkflows.Count > 0)
            {
                foreach (ENTWorkflow eNTWorkflow in eNTWorkflows)
                {
                    ENTWorkflowEO newENTWorkflowEO = new ENTWorkflowEO();
                    newENTWorkflowEO.MapEntityToProperties(eNTWorkflow);
                    this.Add(newENTWorkflowEO);
                }
            }
        }
    }
}
the same thing happens with ALL of the "workflow" pages that you try to add to the solution under that Admin folder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
missing a using directive or an assembly reference zhshqzyc ASP.NET 2.0 Basics 3 January 13th, 2008 03:50 AM
Assembly Reference Problem jazzcatone ASP.NET 2.0 Basics 4 June 13th, 2007 11:38 PM
missing directive with simple datagrid pbarbalias ASP.NET 1.0 and 1.1 Basics 1 October 17th, 2006 07:48 PM
What missing reference rjp Access 4 December 7th, 2004 01:16 PM
IsBroken vs Missing Reference tlwaltz BOOK: Access 2003 VBA Programmer's Reference 1 August 5th, 2004 10:43 PM





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