Dear all,
Pls help. the error message as stated below.
Thanks
Note : when i look at SqlServerMajorVersionAsShort method, there is a SERVERPROPERTY('productversion'), i run it on my query analyzer, it returns '8.00.194', so when the program try to parse PARSENAME(CONVERT(VARCHAR(20), SERVERPROPERTY('productversion')),4)), it returns Null. is that the cause of the problem? how to solve it?
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.ToUInt16(IFormatProvider provider) +56
System.Convert.ToUInt16(Object value) +28
YAF.Classes.Data.DB.SqlServerMajorVersionAsShort() +79
YAF.Classes.Data.DB.system_initialize_executescripts(String script, String scriptFile, Boolean useTransactions) +77
YAF.Install._default.ExecuteScript(String scriptFile, Boolean useTransactions) +240
YAF.Install._default.UpgradeDatabase(Boolean fullText) +74
YAF.Install._default.Wizard_NextButtonClick(Object sender, WizardNavigationEventArgs e) +976
System.Web.UI.WebControls.Wizard.OnNextButtonClick(WizardNavigationEventArgs e) +108
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +418
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +19
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Thanks
Edited by user
14 years ago |
Reason: Not specified