Exit with code 1 due to network error: RemoteHostClosedError
Rotativa PDF 생성 기능을 사용하던 중에 발생된 오류이다.
System.Exception:Error:Failed loading page
https://test.com/Survey/ReportPrint?enckey=b975eb3fb2b42d7c86d0fa1b6c3a1a9f&date=2019-05-28 
sometimes it will work just to ignore this error with –load-error-handling ignore) 
Exit with code 1 due to network error: RemoteHostClosedError 
위치 :Rotitiva.WkhtmltopdfDriver.Convert(String wkhtmltopdfPath, String switches, String html) 
……………….
[백엔드 코드]
string CustomOpton = string.Empty; 
string fileName = string.Empty; 
string fileName2 = string.Empty;
Rotativa.UrlAsPdf actionPDF; 
byte[] PDFData = null;   
CustomOpton = “–print-media-type  –javascript-delay 5000”; 
fileName =  “보고서_” + DateTime.Now.Date.ToString(“yyyy-MM-dd”) + “_” +  “.pdf”; 
//사용자페이지를 호출
actionPDF = new Rotativa.UrlAsPdf(Config.GetValue(“RealURL”) + “/Survey/ReportPrint?enckey=” + userInfoData.EncHraPK + “&date=” + userInfoData.HraDate) 
{ 
    IsJavaScriptDisabled = false, 
    PageOrientation = Rotativa.Options.Orientation.Portrait,  // 세로 
    PageSize = Rotativa.Options.Size.A4, 
    PageMargins = { Left = 0, Right = 0, Top = 5, Bottom = 5 }, 
    CustomSwitches = CustomOpton, 
    MinimumFontSize = 12 
}; 
PDFData = actionPDF.BuildPdf(ControllerContext); 
if (PDFData != null && PDFData.Length > 0) 
{ 
……………………….
}
테스트서버에서는 정상적으로 동작하던 기능이 실서버 배포 후 동작하지 않았다.
원인을 알 수 없어 유관부서에 문의하였다.
URL로 호출하는 사이트가 접근이 불가능한 것 같아 확인요청을 해둔 상태이다.
관리자사이트 서버에서 접근이 막힌 것으로 생각된다.(RemoteHostClosedError)

