Re: Delphi 2007 for Win32 Update #1 is Available



I tried to go "the traditional route". Unfortunately, when
I try to log in, I get this error screen.

-----------------------------------------------------------------------
Object cannot be cast from DBNull to other types.Server Error in '/'
Application.


Object cannot be cast from DBNull to other types.
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: Object cannot be cast from
DBNull to other types.

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:


[InvalidCastException: Object cannot be cast from DBNull to other types.]
System.DBNull.System.IConvertible.ToInt64(IFormatProvider provider) +48
System.Convert.ToInt64(Object value) +36
login.TLoginForm.ButtonLogin_Click(Object sender, EventArgs e)
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1281




Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300
------------------------------------------------------------------------------------------------

--
Charles Appel
"The kind of man who wants the government to adopt and enforce
his ideas is always the kind of man whose ideas are idiotic."

H. L. Mencken


.



Relevant Pages

  • Re: Delphi 2007 for Win32 Update #1 is Available
    ... Exception Details: System.InvalidCastException: Object cannot be cast from DBNull to other types. ... Information regarding the origin and location of the exception can be identified using the exception stack trace below. ... System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 ...
    (borland.public.delphi.non-technical)
  • Re: Delphi 2007 for Win32 Update #1 is Available
    ... Exception Details: System.InvalidCastException: Object cannot be cast from DBNull to other types. ... Information regarding the origin and location of the exception can be identified using the exception stack trace below. ... System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 ...
    (borland.public.delphi.non-technical)
  • RE: Cant addnew in child grids
    ... your description, I understand that you're receiving an exception, which ... someone is trying to cast a DBNull value to other types like int. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: D2007 Update #1
    ... Exception Details: System.InvalidCastException: Object cannot be cast from DBNull to other types. ... Information regarding the origin and location of the exception can be identified using the exception stack trace below. ... System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 ...
    (borland.public.delphi.non-technical)
  • Re: What does it mean?
    ... There certainly are reasons to cast versus ... > an exception or create the appropriate object. ... The code example given is most definitley a runtime type check. ... control array is a particular control. ...
    (microsoft.public.dotnet.languages.csharp)