Server Error in '/cursos' Application.

Investimento_DS_0

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.IndexOutOfRangeException: Investimento_DS_0

Source Error:


Line 46:                 curso.Promocao = 1;
Line 47: 
Line 48:                 if (VerboJuridico.RN.Cursos.ExistirProduto(ref curso))
Line 49:                 {
Line 50:                     List<VerboJuridico.EN.PromocaoFormasPagamentos> lstPromocao = new List<VerboJuridico.EN.PromocaoFormasPagamentos>();

Source File: a:\C_\inetpub\verboeducacional.com.br\Web\cursos\Promocao.aspx.cs    Line: 48

Stack Trace:


[IndexOutOfRangeException: Investimento_DS_0]
   VerboJuridico.RN.Cursos.ExistirProduto(Cursos& cursos) in C:\Users\Ricardo Traub Fries\Desktop\Projetos Verbo\DeltaEduc\VerboEcommerceCursos\VerboJuridico\VerboJuridico\RN\Cursos.cs:299
   Promocao.Page_Load(Object sender, EventArgs e) in a:\C_\inetpub\verboeducacional.com.br\Web\cursos\Promocao.aspx.cs:48
   System.Web.UI.Control.OnLoad(EventArgs e) +104
   System.Web.UI.Control.LoadRecursive() +112
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2164


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.9224.0