Server Error in '/' Application.

Conversion from type 'DBNull' to type 'String' is not valid.

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.InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.

Source Error:


Line 194:        Get_Site_Map.Gvar_LinkTable = "AFM_CATEGORIES"
Line 195:        'Response.Write(Get_Site_Map.Gvar_strFileName)
Line 196:        LabSiteMap.Text = (Get_Site_Map.Get_Label_Site_Map)
Line 197:        LabPageName.Text = Get_Site_Map.Gvar_labPageName
Line 198:        Get_Site_Map.Gvar_Admin = Request("Admin")

Source File: C:\htdocs\AFMEngBiz\A_Main_Master_Page.master    Line: 196

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +1033
   Get_Site_Map_Dll.Get_Site_Map.Get_Site_Map.Get_Label_Site_Map() +896
   ASP.a_main_master_page_master.Page_Load(Object sender, EventArgs e) in C:\htdocs\AFMEngBiz\A_Main_Master_Page.master:196
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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