Reputation: 63
I am not very familier with Windows servers and I was asked to put asp.net app and new windows server. As the app owner could not provide any documentation, I manage to set it up where I am stack at Exception error. The app page is just white screen and I get this error:
w3wp.exe Error: 0 : <19.09.2023 06:26:52> System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Reflection.TargetParameterCountException: Parameter count mismatch.
at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Core.Web.Controls.SmartView.SaveChildViewState()
at Core.Web.Controls.SmartView.SaveViewState()
at System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode)
at System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode)
at System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode)
at System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode)
at System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode)
at System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode)
at System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode)
at System.Web.UI.Page.SaveAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I understand that I need to check InnerException
but how to access it, if I don't know nothing about this app's code.
Upvotes: 0
Views: 650
Reputation: 1
Add below line of code to error message:-
errorMessage += "\n Inner Exception:" +ex.InnerException;
The InnerException property will give you more details about your error.
I hope it helps!
Upvotes: 0