View Single Post
  #1 (permalink)  
Old September 13th, 2013, 07:46 PM
EDGY EDGY is offline
Authorized User
Points: 203, Level: 4
Points: 203, Level: 4 Points: 203, Level: 4 Points: 203, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2012
Location: Mesquite Texas
Posts: 45
Thanks: 11
Thanked 0 Times in 0 Posts
Default CH 30-15: Could not load type 'NorthwindDataContext'.

Ch30-15 Listing: Dynamic Data Manager example
(Built on top of 30-8)

Error Message: Could not load type 'NorthwindDataContext'.

It Builds successfully/ No errors; 30-8,..12,13,14 work fine using the same Northwind.dbml file.

The Northwind.dbml properties show name= "NorthwindDataContext" ; but Content & entity namespace Are blank.
Properties header = NorthwindDataContext DataContext

The global.aspx file use "NorthwindDataContext" as in 30-9 listing.

Northwind.dbml file IS not in an App_Code folder, just in root...

Anybody got any Ideas ?

Thanks, Edgy

    <form id="form1" runat="server">
        <asp:GridView ID="GridView1" runat="server" AllowPaging= "True" 
         AutoGenerateColumns = "True" DataKeyNames="CustomerID" DataSourceID="LinqDataSource1" >

        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="NorthwindDataContext"
        EntityTypeName= "" OrderBy="CompanyName" TableName="Customers" >

        <asp:DynamicDataManager ID="DynamicDataManager1" runat="server">
            <asp:DataControlReference ControlID="GridView1" />