TroubleShooting 5

parameters describe an un representable datetime

🔥 문제발생parameters describe an un representable datetime초기 일자 설정 오류 (오늘날짜 ~ 한달 뒤)2025-10-31이면 2025-11-31이 없기에 에러. ⭐ 해결방법무조건 월말로 설정.2025-11-31이면 2025-12-01로 설정.DateTime today = DateTime.Today;int nextMonth = today.Month == 12 ? 1 : today.Month + 1;int nextYear = today.Year == 12 ? today.Year + 1 : today.Year;DateTime startDate = sDate ?? today;DateTime endDate = eDate ?? new DateTime(nextYear, nex..

TroubleShooting 2025.11.27

VS SSL 인증서 오류

🔥 문제발생mmc에서 로컬 컴퓨터 → 개인용 → 인증서(localhost)를 삭제 했더니 VS에서 크롬이 실행이 되지 않았다. ⭐ 해결방법VS를 다시 재설치 했다.다시 실행하면 다음과 같은 안내문이 나온다. 예를 눌러 실행한다.3. 그러면 다음과 같이 나온다.4. 비공개 해결은 다음과 같이 하였다. 5. 재부팅 후 확인해보니 잘 되었다. 📖 ReferenceVS SSL 인증서 설치https://stackoverflow.com/questions/67811355/setting-up-ssl-certificate-in-visual-studio연결 비공개 설정 해결https://answers.microsoft.com/ko-kr/windows/forum/all/연결이/11514735-4718-4c7b-88d..

TroubleShooting 2025.11.27

DB 값 SetValue를 이용해 값 Insert

🔥 문제발생값이 여러개가 존재한다. (List)DB에서는 컬럼이 여러개로 나뉘어 Insert 하도록 해야한다.처음 값을 Insert 한 후, 뒤에 값은 동일한 키를 비교하여 update를 해야한다.코드가 너무 길어지는 문제가 발생한다.⭐ 해결방법결과 값을 반복문을 통해 Reflaction 하여 값을 entity에 넣어준다.for (int i = 0; i x.Name.Equals("ResultValue" + (i + 1))); //property.SetValue(entity, splitStr[1]); entity.GetType().GetProperties().FirstOrDefault(x => x.Name.Equals("ResultValue" + (i + 1))).SetValu..

TroubleShooting 2025.11.25

DB Multi-Insert

DB : MySQL🔥 문제발생여러 인식 결과값을 DB에 Insert 하는 과정에서 오류 발생for문을 통해 하나씩 DB Insert 하였지만 오류 발생 or 마지막 하나의 값만 Insert 되는 현상 발생기존에는 전역변수로 entity를 선언하여 여러 인식 값을 for을 통해 DB에 Insert하려 했다.public class Process(){ public Process(DBContext context) { _context = context; } var entity = new ResultModel(); ... // process result type is List // process result name is rstList for (int i =..

TroubleShooting 2025.11.25