전체 글167 C# Visual Studio에서 Could not load file or assembly ...... or one of its dependencies 프로그램을 잘못된 형식으로 로드하려고 합니다. C# Visual Studio에서 실행시에 아래와 같은 오류 발생 "Could not load file or assembly ...... or one of its dependencies 프로그램을 잘못된 형식으로 로드하려고 합니다." 똘똘똘 프로젝트 속성 > 빌드 탭 > 플랫폼 대상을 Any CPU 로 변경 하면 됨. (오류 날때는 x64로 되어 있었음) 2024. 3. 29. microsoft.office.interop.excel.dll 설치 Visual Studio 에 microsoft.office.interop.excel.dll 참조를 하려는데 어디에도 없음. 내 PC는 엑셀 설치 되어 있는데도 microsoft.office.interop.excel.dll 이 없음. 설치 할때 뭔 옵션이 빠졌었나... 하여간 해당 dll 이 없을 경우 해결 방안은 Nuget! 도구 > Nuget 패키지 관리자 > 솔루션용 Nuget 패키지 관리 여기에서 해당 dll 찾아보기 해서 프로젝트 지정해서 설치 하면 완료. 끝. 2024. 3. 11. DevExpress XtraGrid에서 데이타 찾기 기능 데브익스프레스 그리드에서 특정값을 찾아서 해당 행을 찾고자 할 경우 사용하는 함수 2개. 1. LocateByValue("FieldName", "찾을값") 2. LocateByDisplayText(시작행, 컬럼명, 찾을값) : 이게 더 잘되는듯. 2024. 1. 8. ASP.NET MVC FileStreamResult Example ASP.NET MVC FileStreamResult Example. Controller 프로젝트. // /FileStream public FileStreamResult Stream() { var fileContent = new byte[] { Ascii.one, Ascii.Comma, Ascii.two, Ascii.Comma, Ascii.three }; var stream = new MemoryStream(fileContent); var fileStreamResult = new FileStreamResult(stream, mimeType); fileStreamResult.FileDownloadName = "FileStreamExample.csv"; return fileStreamResult; } // F.. 2024. 1. 8. 이전 1 2 3 4 ··· 42 다음