사용자 코드에서 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/
프로그래밍/ASP.NET
2011. 9. 15. 15:03
중복된 배열값 제거
// 중복된 배열 값 제거 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);
프로그래밍/C샵
2011. 9. 2. 13:24