묻고 답해요
152만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
순위 정보를
불러오고 있어요
-
해결됨C# WinForm 사용자 정의 컨트롤 활용. 실무 역량 키우기
Item 속성 Serializable 오류
강의를 따라 진행중 다음과 같은 오류가 발생하였습니다." 'Items'속성의 코드를 생성하지 못했습니다... "KaburiKiosk.Moels.Product" 형식이serializable로 표시 되어 있지 않습니다"해당 오류는 Product Class에 [Serializable] 속성을 달아주니 해결이 되었지만강의에서는 따로 설정 해주는 부분이 없어도 잘 실행되는 것을 볼 수 있는데버전 차이로 인해 발생하는 문제일까요? 궁금합니다
-
미해결[C#/.NET 8.0]어서와, WinForm은 처음이지?
마지막 강의 소스 코드를 실행할 때
안녕하세요. 항상 도움 받고있습니다마지막 강의 소스코드를 실행 할 때, 아래처럼 에러가 나는데 어떤 방향으로 해결하면 좋을까요? 추측하기로는 강의 초반부에 DB가져다가 쓸 때,Nuget콘솔에다가 이름이랑 패스워드등을 넣어서 코드를 생성하셨었는데요 . 그걸 안하고 소스코드를 써서 그런것아닐까싶습니다. 에러 내용:Npgsql.PostgresException: '28P01: ����� "postgres"�� password ������ �����߽��ϴ�'
-
미해결[C#/.NET 8.0]어서와, WinForm은 처음이지?
Restore에서 Failed
안녕하세요 pgAdmin4 설치 부분을 하고있습니다.17버전에서 Reference 설정하고 시도했을 때, 안됨15버전으로 설치하고 Reference설정 후 시도해도 안됨이 때 해 볼만한 방안이 있을까요? 바쁘신데 한 번 봐주시면 감사하겠습니다. 껄껄아래 에러 내용입니다 . pg_restore: ۾ ͺ ̽ pg_restore: EXTENSION "adminpack" pg_restore: COMMENT "EXTENSION adminpack" pg_restore: TABLE "public.gangnamgu_population" pg_restore: TOC ó ϴ :pg_restore: 215 TOC ; 1259 24662 TABLE gangnamgu_population postgrespg_restore: : could not execute query: 오류: "gangnamgu_population" 이름의 릴레이션(relation)이 이미 있습니다 : CREATE TABLE public.gangnamgu_population (administrative_agency character varying,total_population integer,male_population integer,female_population integer,sex_ratio double precision,number_of_households integer,number_of_people_per_household double precision,id integer NOT NULL);pg_restore: SEQUENCE "public.gangnamgu_population_id_seq" pg_restore: 216 TOC ; 1259 24667 SEQUENCE gangnamgu_population_id_seq postgrespg_restore: : could not execute query: 오류: "gangnamgu_population_id_seq" 이름의 릴레이션(relation)이 이미 있습니다 : CREATE SEQUENCE public.gangnamgu_population_id_seqAS integerSTART WITH 1INCREMENT BY 1NO MINVALUENO MAXVALUECACHE 1;pg_restore: SEQUENCE OWNED BY "public.gangnamgu_population_id_seq" pg_restore: DEFAULT "public.gangnamgu_population id" pg_restore: "public.gangnamgu_population" ̺ ڷḦ ó pg_restore: 3319 TOC ; 0 24662 TABLE DATA gangnamgu_population postgrespg_restore: : "gangnamgu_population" ̺ COPY : 오류: 중복된 키 값이 "gangnamgu_population_pkey" 고유 제약 조건을 위반함 : (id)=(2) 키가 이미 있습니다. : gangnamgu_population 복사, 1번째 줄pg_restore: : SEQUENCE SET gangnamgu_population_id_seqpg_restore: CONSTRAINT "public.gangnamgu_population gangnamgu_population_pkey" pg_restore: 3176 TOC ; 2606 24675 CONSTRAINT gangnamgu_population gangnamgu_population_pkey postgrespg_restore: : could not execute query: 오류: "gangnamgu_population" 테이블에는 이미 기본키가 있습니다 : ALTER TABLE ONLY public.gangnamgu_populationADD CONSTRAINT gangnamgu_population_pkey PRIMARY KEY (id);pg_restore: : ۾ õǾ : 4
-
미해결[C#/.NET 8.0]어서와, WinForm은 처음이지?
PowerShell Command 입력 시 에러
Scaffold-DbContext "Host=localhost;Database=mydatabase;Username=myuser;Password=mypassword" Npgsql.EntityFrameworkCore.PostgreSQL -o Models커맨드 입력 후 Models 폴더가 생성되지 않습니다.사진은 커맨드 입력 후의 로그이며, 아래는 설치된 패키지 목록입니다.변경해야되는 DB 이름, user,password 등은 여러번 확인을 해봤습니다 혹시 DB 이름에 _가 포함되면 안되는걸까요?사진상으로 확인이 힘든 것 같아 아래에 로그 전문 추가하겠습니다.Build started...Build succeeded.To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263.Npgsql.PostgresException (0x80004005): 3D000: "Inflearn_Winform_Test" �����ͺ��̽� ���� at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|213_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken, Boolean isFirstAttempt) at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken) at Npgsql.PoolingDataSource.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken) at Npgsql.PoolingDataSource.<Get>g__RentAsync|33_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken) at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|42_0(Boolean async, CancellationToken cancellationToken) at Npgsql.NpgsqlConnection.Open() at Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.Internal.NpgsqlDatabaseModelFactory.Create(DbConnection dbConnection, DatabaseModelFactoryOptions options) at Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.Internal.NpgsqlDatabaseModelFactory.Create(String connectionString, DatabaseModelFactoryOptions options) at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ReverseEngineerScaffolder.ScaffoldModel(String connectionString, DatabaseModelFactoryOptions databaseOptions, ModelReverseEngineerOptions modelOptions, ModelCodeGenerationOptions codeOptions) at Microsoft.EntityFrameworkCore.Design.Internal.DatabaseOperations.ScaffoldContext(String provider, String connectionString, String outputDir, String outputContextDir, String dbContextClassName, IEnumerable`1 schemas, IEnumerable`1 tables, String modelNamespace, String contextNamespace, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames, Boolean suppressOnConfiguring, Boolean noPluralize) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContextImpl(String provider, String connectionString, String outputDir, String outputDbContextDir, String dbContextClassName, IEnumerable`1 schemaFilters, IEnumerable`1 tableFilters, String modelNamespace, String contextNamespace, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames, Boolean suppressOnConfiguring, Boolean noPluralize) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContext.<>c__DisplayClass0_0.<.ctor>b__0() at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0() at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action) Exception data: Severity: ġ�������� SqlState: 3D000 MessageText: "Inflearn_Winform_Test" �����ͺ��̽� ���� File: postinit.c Line: 1033 Routine: InitPostgres3D000: "Inflearn_Winform_Test" �����ͺ��̽� ����
-
미해결[C#/.NET 8.0]어서와, WinForm은 처음이지?
Nuget 패키지 관리자 콘솔 그룹정책으로 사용안될경우!
NuGet 패키지 관리자 콘솔 실행시 아래와 같은 그룹정책으로 사용 오류 발생하면 대체 방안이 있을까요? 형식 데이터 파일을 로드하는 동안 오류가 발생했습니다. C:\program files\microsoft visual studio\2022\community\common7\ide\commonextensions\microsoft\nuget\Modules\NuGet\NuGet.Format.ps1xml, , C:\program files\microsoft visual studio\2022\community\common7\ide\commonextensions\microsoft\nuget\Modules\NuGet\NuGet.Format.ps1xml: 다음 유효성 검사 예외로 인해 파일을 건너뛰었습니다. 그룹 정책을 사용하여 만든 정책 같은 소프트웨어 제한 정책에 의해 작업이 차단되었으므로 C:\program files\microsoft visual studio\2022\community\common7\ide\commonextensions\microsoft\nuget\Modules\NuGet\NuGet.Format.ps1xml 파일을 로드할 수 없습니다..
-
미해결
엑셀 파일 지정된 XML형식으로 변환하기
안녕하세요, 커뮤니티에 강의 내용과 관련이 없는 글 작성하게 되어 죄송합니다.엑셀 파일을 지정된 XML형식의 파일로 변환하는 작업을 하고싶은데,이 부분 알려주실 분 계신가요..ㅠㅠ구글링 해봤는데 원하는 정보가 없네요 ㅠㅠ..
-
해결됨[C#/.NET 8.0]어서와, WinForm은 처음이지?
'frmMain'은(는) 변수이지만 형식처럼 사용됩니다.
9강까지 따라하다가 실행해보니 여기서 문제가 발생하는데 잘 이해를 못하겠습니다 ㅜㅜ
-
해결됨[C#/.NET 8.0]어서와, WinForm은 처음이지?
TableLayoutPanel 렉
12:30 지점에서 16행의 테이블 레이아웃을 만들게 되면, 이후 해당 레이아웃을 조작하기 위해 클릭할 때마다 깜빡거리면서 렉이 발생합니다.렉이 발생하는 시점은 도구상자에서 드래그하여 해당 UI를 추가한 직후부터 입니다. 시도해본 것저장 후 VS 재실행VS 업데이트해당 테이블 레이아웃 삭제 후 다시 생성. 현재 vs 버전과 ReaLTaiizor 버전은 아래와 같습니다.Visual Studio Community 2022 : 17.9.4vReaLTaiizor : 3.8.0.2v 해당 레이아웃이 클릭된 상태를 벗어나면 렉이 풀립니다. 또한, 프로그램을 실행해도 렉이 발생하지 않습니다. 개발 환경에서 레이아웃을 클릭할 때만 계속 깜빡거리며 문제가 발생합니다. 😭😭 ++ 문제 발생하는 시점이 강의 10:30 지점에서 테이블 레이아웃의 Dock 설정을 Fill로 바꿀 때 부터 발생하는 것으로 확인했습니다. 해당 레이아웃의 경계가 부모(tabPage2)의 경계에 근접하면 렉이 발생하는 것으로 확인했습니다.+++ 해결방법부모의 Padding값이 기존 3이었습니다. 이를 10으로 수정하고 내부에 들어가는 테이블 레이아웃의 Dock 설정을 Fill로 설정하니 정상적으로 작동했습니다.++++ 왜 Padding 3일 때는 렉이 발생하고, Padding값이 10일 때는 발생하지 않는지 궁금합니다
-
해결됨[C#/.NET 8.0]어서와, WinForm은 처음이지?
디비 Restore에러
Restore가 안되네요.. 동영상 몇번 보면서 똑같이 해도 해결이 안됩니다...
주간 인기글
순위 정보를
불러오고 있어요