[์ค๋ฅํด๊ฒฐ] System.InvalidOperationException: 'CreationProperties cannot be modified after the initialization of CoreWebView2 has begun.'
2022. 8. 2. 09:45
C# Winform์์ WebView2 fixed version์ ์ ์ฉํ ๋ ๋ฐ์๋๋ค.
์์ธ์ winform์ webview2๋ฅผ ์ฌ๋ฆด ๋ ์๋์ผ๋ก ์์ฑ๋๋ ์ฝ๋์ ์์๋ค.
CoreWebView2 ์ด๊ธฐํ๊ฐ ์์๋ ํ์๋ WebView2.CreationProperties๋ฅผ ์์ ํ ์ ์๋๋ฐ
์ฝ๋ ๋ด์์ webview2 fixed version์ ์ค์ ์ ์ํด CreationProperties๋ฅผ ์ฌ์ฉํ๊ธฐ ์ ์
Designer ํ์ผ์์ CoreWebView2 ์ด๊ธฐํ๊ฐ ์ ํ๋๊ธฐ ๋๋ฌธ์ด๋ค.
๋ฐ๋ผ์ .Designer.cs ํ์ผ์์ Form์ ๋ํ ๋ถ๋ถ ์ค Webview2๋ฅผ ์ด๊ธฐํํ๋ ์๋ ์์ค์ฝ๋๋ฅผ ์ฃผ์์ฒ๋ฆฌํ๋ฉด ๋๋ค.
((System.ComponentModel.ISupportInitialize)(this.webView2)).EndInit();
728x90
'๐ป๊ฐ๋ฐ > WEB' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ค๋ฅํด๊ฒฐ] WebView2 ์คํ ์ Form ์์ ๋ณด์ด์ง ์์ ๋ (0) | 2022.08.02 |
---|---|
WebView2 runtime fixed version ์ ์ฉํ๊ธฐ (0) | 2022.08.02 |
[.NET] ๋น๋(Build)์ ๋ค์๋น๋(ReBuild) ์ฐจ์ด (0) | 2022.07.25 |
Custom URI ๋ง๋ค๊ธฐ (0) | 2022.07.12 |
[CSS] ์ ํ์ (0) | 2022.03.28 |