Server Error in '/' Application.

Column 'Advertiser_ID' does not belong to table Table.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Column 'Advertiser_ID' does not belong to table Table.

Source Error:


Line 50:                 category_id = Convert.ToInt32(Request.QueryString["Category_ID"]);
Line 51: 
Line 52:             referrals = bReferral.SearchReferral(0, 0, 0, 0, "", "", 0);
Line 53: 
Line 54:             DataBind();

Source File: c:\Inetpub\wwwroot\share\referrals\default.aspx.cs    Line: 52

Stack Trace:


[ArgumentException: Column 'Advertiser_ID' does not belong to table Table.]
   System.Data.DataRow.GetDataColumn(String columnName) +1962843
   System.Data.DataRow.get_Item(String columnName) +10
   LocalExperts.Framework.Referral..ctor(DataRow dr) +404
   LocalExperts.Framework.ReferralCollection..ctor(DataTable dt) +213
   LocalExperts.Framework.bReferral.SearchReferral(Int64 Referral_ID, Int64 Listing_ID, Int64 Login_ID, Int32 Category_ID, String Latitude, String Longitude, Int32 Distance) +127
   referrals_default.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\share\referrals\default.aspx.cs:52
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433