반응형 .Net49 .Net core - File Uplad Error 413.1 - Request Entity Too Large 파일 업로드 기능을 .Net Core로 구현한다면 가장 처음 봉착하는 에러이다. 먼저 .Net Core 답게 현재 구동하는 환경이 IIS Express인지 확인한다. IIS Express로 되어 있다면, .Net core는 자체적으로 웹서비스를 구동할 수 있기 때문에 현재 생성한 프로젝트 명으로 Debug를 변경하고, 다시 테스트를 진행해보자. 이제 2가지 방법으로 이를 해결 할 수 있다. 1. Controller에 추가 특정 기능만 필요하다면 API Action에 아래 구문을 추가하면 해결 된다. [RequestFormLimits(ValueLengthLimit = int.MaxValue, MultipartBodyLengthLimit = int.MaxValue)] [DisableRequestSizeLim.. 2020. 11. 5. The underlying connection was closed – REST API call over HTTPS https://www.youtube.com/watch?v=KW90zdq0il4 {System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at Sy.. 2020. 11. 4. .Net for Apache Spark 1.0 공개 최근에 .Net for Apache Spark 1.0을 공개하였습니다. 성능이 Python보다는 개선된 모습을 보이네요. Scala와는 비슷한 모습을 보여줌으로써 개발 언어로 사용한다고 가정할 때 빅데이터 전용 언어인 Scala보다는 유연하고 성능도 괜찮은 부분에서는 더욱 활용성이 높아지지 않았나 라는 생각이 듭니다. Apache Spark도 2.4/3.0을 지원하여 3.0 대 사용이 가능합니다. 자세한 내용은 다음 링크를 참고하세요. https://devblogs.microsoft.com/dotnet/announcing-version-1-0-of-net-for-apache-spark Announcing Version 1.0 of .NET for Apache Spark | .NET Blog Today w.. 2020. 11. 1. C# - DirectorySearcher search result more than 1000 When searching Active directory, DirectorySearcher will be used to retrieve information from Active Directory. Below is the code that gets the username information. string DomainPath = "LDAP://DC=domain,DC=com"; DirectoryEntry searchRoot = new DirectoryEntry(DomainPath); DirectorySearcher search = new DirectorySearcher(searchRoot); search.Filter = "(&(objectClass=user)(objectCategory=person))"; .. 2020. 11. 1. .Net core에서 .Net 5로 변화, Core, Framework 통합 .Net을 사용하는 개발자중 하나로써 Windows환경 귀속이 많이 아쉬웠는데, Microsoft에서 구상하는 그림이 점점 다가오는것 같습니다. 현재 .Net core가 3.1 버전까지 개발이 되어 공개된 시점입니다. 처음 .Net core 1.0이 발표되었을때 호환성이 너무 부족해서 쓰기 힘든 언어라, 얼리 어뎁터 들만 접하는 언어였죠. 그랬던 .Net core 가 3.1에서는 C# 의 대부분의 기능을 수용하고, 기존 라이브러리도 동일하게 사용이 가능합니다. 아마 C#을 사용해 보신 분은 아시겠지만, NewtSoft의 JSON은 C#에서 JSON 관련 라이브러리로 오래 사용되었는데 이를 .Net core 3.1 에서 완벽한 호환성으로 사용할 수 있습니다. https://www.youtube.com/wa.. 2020. 10. 30. C# - DllImport – Using the C ++ DLL / Windows API The strong point of C # is that it is easy to import Dll and Windows API developed in C ++ as well as .Net Framework. The part that provides this functionality is DllImport. DllImport is available under the following conditions. It must also be using System.Runtime.InteropServices in Microsoft Visual Studio https://docs.microsoft.com/ko-kr/dotnet/api/system.runtime.interopservices?view=netframew.. 2020. 10. 29. 이전 1 ··· 5 6 7 8 9 다음 반응형