Server Error in '/' Application.

News configuration section could not be found

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.InvalidOperationException: News configuration section could not be found

Source Error:


Line 57: 
Line 58:             If _providersSection Is Nothing Then
Line 59:                 Throw New InvalidOperationException(Messages.NewsConfigSectionNotFound)
Line 60:             End If
Line 61: 

Source File: C:\Inetpub\vhosts\staniforths.co.uk\httpdocs\App_Code\News\News.vb    Line: 59

Stack Trace:


[InvalidOperationException: News configuration section could not be found]
   News.Initialize() in C:\Inetpub\vhosts\staniforths.co.uk\httpdocs\App_Code\News\News.vb:59
   News.get_Provider() in C:\Inetpub\vhosts\staniforths.co.uk\httpdocs\App_Code\News\News.vb:29
   News.GetAllNews() in C:\Inetpub\vhosts\staniforths.co.uk\httpdocs\App_Code\News\News.vb:39

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +87
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +101
   System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +660
   System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1608
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +22
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   System.Web.UI.WebControls.GridView.DataBind() +9
   NewsPage.Page_Load() in C:\Inetpub\vhosts\staniforths.co.uk\httpdocs\News.aspx.vb:18
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9870557
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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