Hello,
I have deployed my asp.net MVC application in IIS.
Suddenly my application is not working.
It is serving login page after clicking the login button it is showing the error.
Its showing the error before connecting to the database.
Then I restarted the IIS then application working fine.
Can anybody tell me what is the problem? Please help me to resolve it?
Thanks,
Hanusha
Uttam KumarPosted Apr 27, 2022, 1:53 PM
Amit MohantyPosted Apr 27, 2022, 11:23 AM
For example, on HomeController for the AtionResult Error, the View is missing. Now if we call the Home/Error on the browser, then you will get this error. To solve this issue just add the missing View or Layout.
AnuPosted Apr 25, 2022, 9:33 AM
Hi,
I am getting the error before it connects to the database
Please find the error which I got from event viewer: Can someone please check it.
Event code: 3005b__1(IAsyncResult asyncResult)b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState)b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState)
Event message: An unhandled exception has occurred.
Event ID: bd3bf8203ea34403ba4b93bf4b7adfd7
Event sequence: 251
Event occurrence: 9
Event detail code: 0
Exception information:
Exception type: InvalidOperationException
Exception message: The view 'Error' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/UserLogin/Error.aspx
~/Views/UserLogin/Error.ascx
~/Views/Shared/Error.aspx
~/Views/Shared/Error.ascx
~/Views/UserLogin/Error.cshtml
~/Views/UserLogin/Error.vbhtml
~/Views/Shared/Error.cshtml
~/Views/Shared/Error.vbhtml
at System.Web.Mvc.ViewResult.FindView(ControllerContext context)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.<>c.
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.<>c.
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
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)
Uttam KumarPosted Apr 25, 2022, 9:08 AM
Hi Hanusha,
There could be multiple reasons why it is happening. Can you share more error details from developer tools, event viewer?
Anoop Kumar SharmaPosted Apr 25, 2022, 8:20 AM