{"id":9785,"date":"2024-06-07T22:06:42","date_gmt":"2024-06-07T13:06:42","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=9785"},"modified":"2024-06-07T22:06:44","modified_gmt":"2024-06-07T13:06:44","slug":"post-9785","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2024\/06\/07\/post-9785\/","title":{"rendered":".NET6\u304b\u3089.NET8\u306b\u5909\u66f4\u3057\u3066\u5b9f\u884c\u3057\u305f\u3089SQLServer\u3068\u306e\u63a5\u7d9a\u3067\u30a8\u30e9\u30fc"},"content":{"rendered":"\n<p>.NET6\u306e\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\u304c\u8fd1\u3065\u3044\u3066\u3044\u308b\u306e\u3067\u3001.NET8\u306b\u5909\u66f4\u3057\u3066\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001SQL Server\u3068\u306e\u63a5\u7d9a\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>An unhandled exception occurred while processing the request.\nWin32Exception: \u4fe1\u983c\u3055\u308c\u3066\u3044\u306a\u3044\u6a5f\u95a2\u306b\u3088\u3063\u3066\u8a3c\u660e\u66f8\u30c1\u30a7\u30fc\u30f3\u304c\u767a\u884c\u3055\u308c\u307e\u3057\u305f\u3002\nUnknown location\n\nSqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - \u4fe1\u983c\u3055\u308c\u3066\u3044\u306a\u3044\u6a5f\u95a2\u306b\u3088\u3063\u3066\u8a3c\u660e\u66f8\u30c1\u30a7\u30fc\u30f3\u304c\u767a\u884c\u3055\u308c\u307e\u3057\u305f\u3002)\nMicrosoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, bool breakConnection, Action&lt;Action> wrapCloseInAction)<\/code><\/pre>\n\n\n\n<p>\u300cMicrosoft.Data.SqlClient \u30d1\u30c3\u30b1\u30fc\u30b8\u300d\u306e\u7834\u58ca\u7684\u5909\u66f4\u306e\u5f71\u97ff\u3060\u3063\u305f\u3002\u5bfe\u51e6\u3068\u3057\u3066\u306f\u3001ConnectionStrings\u306e\u63a5\u7d9a\u6587\u5b57\u5217\u306e\u6700\u5f8c\u306b\u3001\u300cTrustServerCertificate=True;\u300d\u3092\u8ffd\u52a0\u3057\u305f\u3002\u4e0b\u8a18\u307f\u305f\u3044\u306a\u611f\u3058\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  \"ConnectionStrings\": {\n       \uff5e\uff5e\uff5e\u7565\uff5e\uff5e\uff5e;Database=DBname;TrustServerCertificate=True\n  },<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u3082\u3046\u4e00\u5ea6\u5b9f\u884c\u3057\u3066\u3001\u5b9f\u884c\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\uff1a\u3000<a href=\"https:\/\/learn.microsoft.com\/ja-jp\/ef\/core\/what-is-new\/ef-core-7.0\/breaking-changes?tabs=v7\">https:\/\/learn.microsoft.com\/ja-jp\/ef\/core\/what-is-new\/ef-core-7.0\/breaking-changes?tabs=v7<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>.NET6\u306e\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\u304c\u8fd1\u3065\u3044\u3066\u3044\u308b\u306e\u3067\u3001.NET8\u306b\u5909\u66f4\u3057\u3066\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001SQL Server\u3068\u306e\u63a5\u7d9a\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3002 \u300cMicrosoft.Data.SqlClient \u30d1\u30c3\u30b1\u30fc\u30b8\u300d\u306e\u7834\u58ca\u7684\u5909\u66f4\u306e\u5f71\u97ff\u3060\u3063\u305f\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[246,284,226,196],"class_list":["post-9785","post","type-post","status-publish","format-standard","hentry","category-tech-memo","tag-net6","tag-net8","tag-c","tag-sql-server-2019"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/9785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=9785"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/9785\/revisions"}],"predecessor-version":[{"id":9786,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/9785\/revisions\/9786"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=9785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=9785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=9785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}