![]() In ()ĭescription: The process terminates due to an unhandled exception.Įxception information: System.NullReferenceException In (ExecutionContext ExecutionContext, ContextCallback callback, Object State, Boolean preservesyncctx) In (ExecutionContext ExecutionContext, ContextCallback callback, Object State, Boolean Preservesyncctx) ![]() the end of the stack trace in the previous location where the exception was thrown. In .RunCallback (ContextCallback callback, Object State, task& Currenttask) In (SendOrPostCallback callback, Object State) In (SendOrPostCallback callback, Object State Message: An object reference is not set to an instance of an object. aspx file of the Notify () method was not deleted from the server at the time the publication was invoked.Īfter the release, the ASP.net program crashes (crash) for a while, specifically:Ī 503 errors were found in accessing the website ī The corresponding application pool is displayed in the IIS Manager stop State Ĭ The following three errors were found in the Windows event log:Īn unhandled exception has occurred and the process has been terminated. This release was meant to replace WebForms with MVC, but the. Now call it asynchronously in the MVC Controller action:Īwait msgservice.notify (title, body, userId) Void Page_Load (Object sender, EventArgs e) It was called synchronously in WebForms (. Public static Async Task Notify (string title, string content, int recipientid) Public static void Notify (string title, string content, int recipientid) This was the case when an asynchronous ASP.net program was released, with a synchronization method: result, resulting in the collapse of the entire ASP.net application, the experience of synchronous/asynchronous fire and fire difficult capacity. Yesterday an accidental situation caused the Async method to be invoked in the synchronization method and was not used. Result waits for the call results, resulting in a thread deadlock (deadlock). ![]() You only know that when you call an asynchronous (Async) method in a synchronization method, if you use the.
0 Comments
Leave a Reply. |