Server Error in '/' Application.

Value cannot be null.
Parameter name: source

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.ArgumentNullException: Value cannot be null.
Parameter name: source

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: source]
   System.Linq.Enumerable.Where(IEnumerable`1 source, Func`2 predicate) +644
   MaMenu.buildMenuItemList(List`1 webSiteMenuItens, Int32 idpai, String idioma) in C:\Repositorios\madigital-website-2021\MaService\MaMenu.cs:236
   MaMenu.GetMenu(String nomeMenu, String idioma) in C:\Repositorios\madigital-website-2021\MaService\MaMenu.cs:206
   MaMenu.GetMenu(TipoMenu tipo, String idioma, String nomemenu) in C:\Repositorios\madigital-website-2021\MaService\MaMenu.cs:158
   MA.modulos.modulo_footer2.init(Int32 id, String idioma) in C:\Repositorios\madigital-website-2021\MAWebsite\modulos\masterpage\modulo-footer2\modulo-footer2.ascx.cs:66
   MaEstrutura.AppendModulo(PlaceHolder plc, ModulosPagina moduloInfo, String idioma, Int32 IdTipoPagina) in C:\Repositorios\madigital-website-2021\MaService\MaEstrutura.cs:188
   Default404.Page_Load(Object sender, EventArgs e) in C:\Repositorios\madigital-website-2021\MAWebsite\404.aspx.cs:60
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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