asp.net api 생성에 web.config파일이 생성되지 않아 403 에러가 발생했음csproj 파일은 아래처럼 Project Sdk="Microsoft.NET.Sdk.Web"> PropertyGroup> TargetFramework>net8.0TargetFramework> AspNetCoreHostingModel>InProcessAspNetCoreHostingModel> Nullable>enableNullable> ImplicitUsings>enableImplicitUsings> IsWebConfigRequired>trueIsWebConfigRequired> WinExe --> PropertyGroup> ItemGroup> PackageReference Include="Microsoft.AspNe..
✅ 구현 전략 요약 미들웨어에서 클라이언트 IP 확인DB에서 차단된 IP 목록 조회요청이 차단된 IP에서 온 경우 403 Forbidden 반환✅ 1. 미들웨어 방식 (가장 추천) ASP.NET Core의 커스텀 미들웨어(Middleware) 를 사용하면 모든 요청 전에 IP를 검사할 수 있습니다.public class IpBlockingMiddleware{ private readonly RequestDelegate _next; private readonly ILogger _logger; public IpBlockingMiddleware(RequestDelegate next, ILogger logger) { _next = next; _logger = logg..
/* // 저장 프로시저 사용할때 // 반환 값 파라미터 var returnParam = new SqlParameter(); returnParam.Direction = ParameterDirection.ReturnValue; returnParam.SqlDbType = SqlDbType.Int; returnParam.ParameterName = "@RETURN_VALUE"; // 꼭 명시! cmd.Parameters.Add(returnParam); cmd.ExecuteNonQuery(); // 반환값 읽기 int _RTN = (int)cmd.Parameters["@RETURN_VALUE"].Value; */ // 저장 프로시저가 아니면 // SELECT 1, SELECT 3 값은 ExecuteScalar..
SELECT Category, -- Replace with your actual column name for category COUNT(*) AS Count, CAST(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER () AS decimal(10,2)) AS Percentage FROM YourTable GROUP BY Category;Result-------------------------Category Count PercentageM 10 10.0W 90 90.0
Create Table SaveChat ( ChatDate Date , ChatVar varchar(20), ChatName varchar(50), ChatCount Integer, Constraint tb_product_group_PK Primary Key(ChatDate,ChatName) )------------------------------------------------------------------------------------INSERT INTO SaveChat (ChatDate, ChatVar, ChatName, ChatCount) VALUES (@ChatDate, @ChatVar, @ChatName, @ChatCount) ON CONFLICT(ChatDate, ChatName) D..

Error. An error occurred while processing your request. Request ID: Development Mode Swapping to the Development environment displays detailed information about the error that occurred. The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment ..
PatIndex('%[^0-9]%' 로 nums의 3자리가 int형인지 검사하고(참이면 3, 아니면 0) 자기 자신 db를 조인해서 일괄업데이트진행. ________________________________________________________________________________________ Update db set ClsNum == aa from db as A Join ( Select aa, ids from( Select nums as aa, ids from( Select PatIndex('%[^0-9]%', left(VarNums,3) ) as nums , * from db where len(VarNums)>3 ) as AB where aa = 3 ) as ABB ) AS B on A..

// 1. 연결된 ttyUSB Path 확인 usb 1-1.2 // usb 1-1.4 pi@Teon:~ $ dmesg | grep ttyUSB // 2. usb-serial rules 수정 pi@Teon:~ $ sudo nano /etc/udev/rules.d/10-usb-serial.rules SUBSYSTEM=="tty", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", ATTRS{devpath}=="1.2", SYMLINK+="ttyUSBa" SUBSYSTEM=="tty", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", ATTRS{devpath}=="1.4", SYMLINK+="ttyUSBb" // 3. 저장내용..
- Total
- Today
- Yesterday
- Entry '' has empty native path
- Xamarin.Ios Firebase Phone SMS OTP Send
- c# Encrypt / Decrypt
- Xamarin.Ios Firebase Phone User Add
- WPF Textbox
- ClickOnce 인증서 인증기간 변경
- Xamarin reCAPTCHA
- Xamarin SMS OTP Send
- 연산자 뒤에 피연산자가 없습니다.
- SkiaSharp
- WPF Datagrid Cell Value Change
- Xamarin.Forms
- 암호 마스터키
- ssl_client_socket_impl.cc
- Embeded 한글Font적용
- WPF Excel Export Microsoft.Office.Interop 성능향상(열 기준으로 복사)
- Microcharts
- C# LINQ Left join
- Label Text LineBreak in Xaml
- WPF Scrollviewer in ScrollViwer
- 서버 수준의 URN 필터
- Windows IIS FTP 디렉토리 목록 오류
- Xamarin.Ios Firebase Phone Auth
- FileStream Add Byte
- GetCellContent CheckBox Value
- Xamarin Firebase Phone Auth
- Xamarin Firebase Phone User Add
- Linux SSH Multi Computer Join
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |