TrabalhosGratuitos.com - Trabalhos, Monografias, Artigos, Exames, Resumos de livros, Dissertações
Pesquisar

PROGRAMA SOBRE FAMILIA

Exames: PROGRAMA SOBRE FAMILIA. Pesquise 860.000+ trabalhos acadêmicos

Por:   •  29/12/2014  •  238 Palavras (1 Páginas)  •  293 Visualizações

Server Error in '/' Application.

The added or subtracted value results in an un-representable DateTime.

Parameter name: value

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.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.

Parameter name: value

Source Error:

Line 4842: nDiasAviso = 30 '(dias * 30) \ 366

Line 4843:

Line 4844: dataInicioAvisoPrevio = DateAdd(DateInterval.DayOfYear, -nDiasAviso + 1, data2)

Line 4845:

Line 4846: 'dias = DateDiff(DateInterval.DayOfYear, data1, dataInicioAvisoPrevio) - 1

Source File: C:\inetpub\wwwroot\CalculoExato\App_Code\Calculos.vb Line: 4844

Stack Trace:

[ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.

Parameter name: value]

System.DateTime.AddTicks(Int64 value) +7668047

System.DateTime.Add(Double value, Int32 scale) +136

Microsoft.VisualBasic.DateAndTime.DateAdd(DateInterval Interval, Double Number, DateTime DateValue) +176

Calculos.calculaDiasDoAvisoPrevioTrabalhado(DateTime data1, DateTime data2, DateTime& dataInicioAvisoPrevio, String& txt1) in C:\inetpub\wwwroot\CalculoExato\App_Code\Calculos.vb:4844

Calculos.calculaRescisao(Single salario, DateTime dataFimContrato, String avisoPrevio, String feriasVencidas, Boolean empregadoDomestico) in C:\inetpub\wwwroot\CalculoExato\App_Code\Calculos.vb:4432

Calculos.TrabRescisao(ControlCollection cc, String& msg) in C:\inetpub\wwwroot\CalculoExato\App_Code\Calculos.vb:1024

ASP.parsecun_aspx.btnContinuar_Click(Object sender, EventArgs e) in C:\inetpub\wwwroot\CalculoExato\parsecun.aspx:419

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

...

Disponível apenas no TrabalhosGratuitos.com