Server Error in '/' Application.

Column 'name' does not belong to table select * from NETCARIB_SocialMediaSettings.

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 'name' does not belong to table select * from NETCARIB_SocialMediaSettings.

Source Error:


Line 97:             Dim dt As DataTable = dsSocialMedia.Tables(0)
Line 98:             For Each row As DataRow In dt.Rows
Line 99:                 Dim socialMediaName = row("name").ToString().Trim()
Line 100:                Dim socialMediaUrl = row("Url").ToString().Trim()
Line 101:                Select Case socialMediaName

Source File: C:\inetpub\wwwroot\netcarib\App_Code\CommonHelper.vb    Line: 99

Stack Trace:


[ArgumentException: Column 'name' does not belong to table select * from NETCARIB_SocialMediaSettings.]
   System.Data.DataRow.GetDataColumn(String columnName) +62
   System.Data.DataRow.get_Item(String columnName) +17
   CommonHelper.InitSocialLinks() in C:\inetpub\wwwroot\netcarib\App_Code\CommonHelper.vb:99
   MobileMasterPage.MobileMasterPage_Init(Object sender, EventArgs e) in C:\inetpub\wwwroot\netcarib\MobileMasterPage.master.vb:125
   System.Web.UI.Control.OnInit(EventArgs e) +99
   System.Web.UI.Control.InitRecursive(Control namingContainer) +454
   System.Web.UI.Control.InitRecursive(Control namingContainer) +219
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1719


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4718.0