Server Error in '/' Application.

Specified cast 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: Specified cast is not valid.

Source Error:


Line 22435:            get {
Line 22436:                try {
Line 22437:                    return ((decimal)(this[this.tableAssociados.FaxColumn]));
Line 22438:                }
Line 22439:                catch (global::System.InvalidCastException e) {

Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\31562542\9fa58fbc\App_SubCode_CSCode.g5u8swiu.17.cs    Line: 22437

Stack Trace:


[InvalidCastException: Specified cast is not valid.]
   AssociadosRow.get_Fax() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\31562542\9fa58fbc\App_SubCode_CSCode.g5u8swiu.17.cs:22437

[StrongTypingException: The value for column 'Fax' in table 'Associados' is DBNull.]
   AssociadosRow.get_Fax() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\31562542\9fa58fbc\App_SubCode_CSCode.g5u8swiu.17.cs:22440
   associado.Associado() in D:\HostingSpaces\gecorpa\gecorpa.pt\wwwroot\associado.aspx.vb:44
   associado.Page_Load(Object sender, EventArgs e) in D:\HostingSpaces\gecorpa\gecorpa.pt\wwwroot\associado.aspx.vb:14
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974