Server Error in '/' Application.

Nullable object must have a value.

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: Nullable object must have a value.

Source Error:


Line 567:                    IDIdiomaActual = intIDIdioma
Line 568:                End If
Line 569:                Current.Session(String.Format("{1}-{0}", Constantes.kIDIdiomaActual, Current.Request.Url.Host)) = intIDIdioma.Value
Line 570:
Line 571:            ElseIf EsPaginaDispongo() Then

Source File: C:\home\site\wwwroot\App_Code\CMS\Portal.vb    Line: 569

Stack Trace:


[InvalidOperationException: Nullable object must have a value.]
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +60
   System.Nullable`1.get_Value() +24
   Portal.get_IDIdiomaActual() in C:\home\site\wwwroot\App_Code\CMS\Portal.vb:569
   CODDefault.GetIDPagina(Nullable`1 intIDUsuario, IDbConnection cnn) in C:\home\site\wwwroot\App_Code\CMS\CODDefault.vb:906
   CODDefault.SetPaginaPaginaIdioma(PageDispongo objPage) in C:\home\site\wwwroot\App_Code\CMS\CODDefault.vb:125
   CMS_Default.CargarControl() in C:\home\site\wwwroot\CMS\Default.aspx.vb:208
   CMS_Default.OnLoad(EventArgs e) in C:\home\site\wwwroot\CMS\Default.aspx.vb:124
   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.4690.0