사용자 코드에서 System.Security.Cryptography.CryptographicException이(가) 처리되지 않았습니다. 해결 방법. 1. 해당 웹사이트의 응용프로그램 풀 선택 2. 고급설정 3. 사용자 프로필 로드 를 true로 설정 참고 http://blogs.msdn.com/alejacma/archive/2007/12/03/rsacryptoserviceprovider-fails-when-used-with-asp-net.aspx http://social.msdn.microsoft.com/forums/en-US/clr/thread/7ea48fd0-8d6b-43ed-b272-1a0249ae490f/
// 중복된 배열 값 제거 public T[] GetDistinctValues(T[] array) { List tmp = new List(); List tmpDuplication = new List(); for (int i = 0; i < array.Length; i++) { if (tmp.Contains(array[i])) { tmpDuplication.Add(array[i]); continue; } tmp.Add(array[i]); } return tmp.ToArray(); } 사용 string[] arrAA = aa.Split(','); arrAA = GetDistinctValues(arrAA);
create function dbo.fn_GetSplitValue ( @Param varchar(max) -- 대상 문자열 , @Div varchar(1) -- 구분자 , @ArrayIndex int -- 위치 ) returns varchar(max) as begin declare @Index int declare @Pos int declare @Order int declare @Output varchar(max) set @Index = 1 set @Pos = 1 set @Order = 1 while @Order 0 begin set @Pos = charindex(@Div, @Param, @Index) if @Pos = 0 or @Order = @Arra..
WPF에서는 thread를 크게 두가지로 나눕니다. 하나는 UI thread, 다른 하나는 비 UI thread 입니다. 첫번째 Thread => UI Thread = UI를 담당하는 Threade. 두번째 Thread => 비 UI Thread = WPF에서 별도로 생성하지 않고 이미 돌아가고 있는 프로세스 Thread 비 UI Thread에서 UI Thread에 그냥 접근하려 하면 런타임에러가 발생한다. 결방법은 Dispatcher.Invok함수를 사용하는 것! public delegate void InvokeTest(int temparg); public void function_name(int temparg) { //할 ui 작업 } Canvas cv;//접근할 canvas // 이벤트 처리 : ..
public static string postXMLHTTP(string sURL, string sParam, string requestType) { string contentType = string.Empty; if (requestType.Equals("UTF-8")) contentType = "text/xml;charset=UTF-8"; else postXMLHTTP(sURL, sParam); try { HttpWebRequest HttpRequest = (HttpWebRequest)WebRequest.Create(sURL); HttpRequest.Method = "POST"; string postData = sParam; System.Text.ASCIIEncoding encoding = new Sys..