.Net Framework Standard

다중 모니터 사용시 주 모니터 쪽에서 응용프로그램이 시작되며 Form이 열리는 것이 불편할 수 있어 사용. private static void SetStartPosition(Form frm) { frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual; System.Windows.Forms.Screen screen = System.Windows.Forms.Screen.FromPoint(System.Windows.Forms.Cursor.Position); System.Drawing.Rectangle rectangle = screen.WorkingArea; var d = screen.WorkingArea.Location; frm.Left = d.X..
Microsoft.Identity.Client.MsalServiceException: 'AADSTS1002016: You are using TLS version 1.0, 1.1 and/or 3DES cipher which are deprecated to improve the security posture of Azure AD. Your TenantID is: {0}. Please refer to https://go.microsoft.com/fwlink/?linkid=2161187 and conduct needed actions to remediate the issue. For further questions, please contact your administrator. Trace ID: {0} Corr..
Clickonce 배포 후 실행시 하기 오류가 발생하는 경우 System.Security.SecurityException System.Threading.Thread.set_CurrentCulture 프로젝트 속성 -> 보안 -> ClickOnce 보안 설정 사용 (체크) -> 완전 신뢰 응용 프로그램(L) 선택
FormBoardStyle이 None 일때 Form을 이동하기 위한 방법입니다. Item_MouseMove 이벤트 함수를 컨트롤의 MouseMove 이벤트에 등록해서 사용하게되며 필요한 하위 컨트롤에 등록해서 함께 사용합니다. public const int WM_NCLBUTTONDOWN = 0xA1; public const int HT_CAPTION = 0x2; [System.Runtime.InteropServices.DllImportAttribute("user32.dll")] public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); [System.Runtime.InteropServices.DllImportAtt..
SoapExtension을 상속받아 오류를 전역 단에서 예외처리 하는 부분입니다. WebService 2.0 인 .asmx는 http 500 에러가 발생할 경우 Global.aspx의 Application_Error 에서 캡쳐가 선행되지 않고 클라이언트로 내려 갑니다. 가끔 보안상의 이유로 오류 세부 내용을 감춰야 하는 등의 처리나 별도 로그를 남기기 위해 사용됩니다. ※ SoapExceptionHandler.cs public class SoapExceptionHandler : SoapExtension { Stream _oldStream; Stream _newStream; public override Stream ChainStream(Stream stream) { _oldStream = stream; _..
ClickOnce로 배포를 하다 보면 - 한 Site 당 운영/품질/개발 서버에 각각 게시를 하다 설치/업데이트 Url이 바뀌어 설치가 안되거나 - 서명을 혼동하여 설치가 안되거나 - 프로그램 정보를 잘못 입력하여 설치가 안되는 경우가 가끔 있습니다. (* 그래서 ※ 게시용 프로젝트를 별도 생성하여 사용하는 것을 추천합니다.) 이에 따른 처리 방법에 대해서 이야기 하고자 합니다. (제어판에서 버전을 되돌리거나 삭제후 설치되는건 제외 하겠습니다.) 기본적으로 두가지 방법에 대해서 이야기 하고자 합니다.설치된 폴더를 전체 삭제하는 방법과 Registry에서 일부를 삭제 하는 방법 입니다. 1. 기본적으로 오류가 발생하는 프로그램을 포함한 모든 ClickOnce 배포 프로그램을 삭제하는 방법 시작은 실행창, ..
달빛에취하다
'.Net Framework Standard' 카테고리의 글 목록 (2 Page)