Insufficient stack to continue executing the program safely

alattin (17018) 7 yıl önce sordu

Asp.Net MVC uygulamasında Layout içinde çağrılan Html.RenderAction aşağıdaki hataya sebep oluyor:

Insufficient stack to continue executing the program safely. This can happen from having too many functions on the call stack or function on the stack using too much stack space.

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.InsufficientExecutionStackException: Insufficient stack to continue executing the program safely. This can happen from having too many functions on the call stack or function on the stack using too much stack space.

asp.net mvc Insufficient stack to continue executing the program safely hatasının çözümü nedir?

Toplam 1 cevap


alattin (17018) 7 yıl önce cevapladı

Asp.Net MVC Insufficient stack to continue executing the program safely  hatasının çözümü nedir?

Asp.net MVC'de Programı güvenli bir şekilde yürütmek için yığın yetersiz hatası alıyorsanız  Html.RenderAction ile çağırdığınız metodun döndürdüğü PartialView içinde Layout tanımlı kalmış olabilir. 

Genelde dalgınlıkla veya başka sayfalardan kopyalama ile PartialView içinde kalan Layout tanımlaması bu soruna yol açar. Sayfadan silindiğinde Layout içine yerleştirilmiş RenderAction metodu hata vermeden çalışacaktır.