From fffbfa85765f604528c2d172007639f44bd4ce00 Mon Sep 17 00:00:00 2001 From: JORGE LUIS CAUDILLO ESPARZA Date: Mon, 13 Dec 2021 05:41:07 -0700 Subject: [PATCH] --- App_Code/ClsRH.vb | 4 ++-- Ashx/SIGWeb.ashx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/App_Code/ClsRH.vb b/App_Code/ClsRH.vb index bf54663e5..5c1b1d796 100644 --- a/App_Code/ClsRH.vb +++ b/App_Code/ClsRH.vb @@ -1974,10 +1974,10 @@ chkAplicaVacacion As Boolean, chkAplicaIncapacidad As Boolean, chkAplicaRetardo ElseIf Ex1.Message.Contains("dbo.Vw_Val_Nom_Curps") Then Alert(String.Format("El nuevo personal no se guardo, ya existe un personal con esta curp '{0}'", CURP), TipoMensaje.MsgAdvertencia) Else - Me.OnError("Ocurrió un error al guardar el nuevo Personal.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + Me.OnError("Ocurrió un error al guardar el nuevo personal.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) End If Catch ex As Exception - OnError("Ocurrió un error al guardar el nuevo Personal.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + OnError("Ocurrió un error al guardar el nuevo personal.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) End Try Return Retorno diff --git a/Ashx/SIGWeb.ashx b/Ashx/SIGWeb.ashx index 38951930a..281f03674 100644 --- a/Ashx/SIGWeb.ashx +++ b/Ashx/SIGWeb.ashx @@ -1360,6 +1360,7 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState End Function #End Region + Private Function GetFilesDirectory(ByVal context As HttpContext) As String Dim retorno As String = "" Dim urlhost As String = context.Request.Url.Host.ToUpper() @@ -1376,7 +1377,7 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState Next xmlarchivos.Add(xfolder) retorno = xmlarchivos.ToString() - context.Response.ContentType = "text/xml" + context.Response.ContentType = "application/xml" context.Response.Write(retorno) context.Response.StatusCode = 200 Else