{"id":673,"date":"2026-05-07T18:02:05","date_gmt":"2026-05-07T10:02:05","guid":{"rendered":"https:\/\/www.17ci.com\/?p=673"},"modified":"2026-05-07T18:02:10","modified_gmt":"2026-05-07T10:02:10","slug":"net-await-missing-cycle-reference-error","status":"publish","type":"post","link":"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/","title":{"rendered":"\u4e00\u6b21\u7531\u201c\u5931\u8e2a\u201d\u7684await\u5f15\u53d1\u7684\u201c\u5faa\u73af\u5f15\u7528\u201d\u60e8\u6848"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u524d\u8a00<\/h2>\n\n\n\n<p>\u6700\u8fd1\u5728\u5f00\u53d1\u8ba2\u5355\uff08Matno\uff09\u67e5\u8be2\u63a5\u53e3\u65f6\uff0c\u9047\u5230\u4e86\u4e00\u4e2a\u56f0\u6270\u8bb8\u4e45\u7684Bug\u2014\u2014\u63a5\u53e3\u8c03\u7528\u540e\u6301\u7eed\u62a5\u9519\uff0c\u67e5\u770b\u65e5\u5fd7\u53d1\u73b0\u5168\u662f<code>System.Text.Json.JsonException: A possible object cycle was detected<\/code>\u5f02\u5e38\u3002<\/p>\n\n\n\n<p>\u719f\u6089.NET\u5f00\u53d1\u7684\u670b\u53cb\u770b\u5230\u8fd9\u4e2a\u9519\u8bef\uff0c\u7b2c\u4e00\u53cd\u5e94\u5927\u6982\u7387\u548c\u6211\u4e00\u81f4\uff1a\u201c\u574f\u4e86\uff0c\u4e1a\u52a1\u5b9e\u4f53\u80af\u5b9a\u51fa\u73b0\u4e86\u5faa\u73af\u5f15\u7528\uff0c\u6216\u8005\u5bf9\u8c61\u5c42\u7ea7\u592a\u6df1\uff08\u9ed8\u8ba4\u8d85\u8fc732\u5c42\uff09\u3002\u201d<\/p>\n\n\n\n<p>\u53ef\u6211\u53cd\u590d\u68c0\u67e5<code>LogMatno<\/code>\u5b9e\u4f53\u7c7b\uff0c\u53d1\u73b0\u5b83\u53ea\u662f\u4e00\u4e2a\u666e\u901a\u7684POCO\u7c7b\uff0c\u65e2\u6ca1\u6709\u590d\u6742\u7684\u5bfc\u822a\u5c5e\u6027\uff0c\u4e5f\u6ca1\u6709\u81ea\u5f15\u7528\u7684\u60c5\u51b5\u3002\u6392\u67e5\u4e00\u5708\u540e\u624d\u53d1\u73b0\uff0c\u95ee\u9898\u6839\u6e90\u7adf\u662f\u4e00\u4e2a\u4f4e\u7ea7\u758f\u5ffd\u2014\u2014<strong><code>await<\/code><\/strong><strong>\u63a7\u5236\u5668\u4e2d\u5c11\u5199\u4e86\u4e00\u4e2a<\/strong>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u95ee\u9898\u573a\u666f<\/h2>\n\n\n\n<p>\u672c\u6b21\u63a5\u53e3\u7684\u4ee3\u7801\u7ed3\u6784\u5341\u5206\u7b80\u6d01\uff1aController\u5c42\u8c03\u7528Service\u5c42\uff0cService\u5c42\u8d1f\u8d23\u67e5\u8be2\u6570\u636e\u5e93\uff0c\u5177\u4f53\u95ee\u9898\u51fa\u5728Controller\u7684\u8c03\u7528\u903b\u8f91\u4e2d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u51fa\u95ee\u9898\u7684\u63a7\u5236\u5668\u4ee3\u7801<\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u4ee3\u7801\u4e3a\u63a7\u5236\u5668\u4e2d\u5f15\u53d1Bug\u7684\u6838\u5fc3\u903b\u8f91\uff08\u5df2\u6807\u6ce8\u95ee\u9898\u6240\u5728\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;HttpGet]\npublic async Task&lt;ActionResult&gt; GetMatno(int pages, int limit, string mname, string status, string matno, string apbmname, string apbmid) \n{\n    var userInfo = JwtUser.GetRequestUser(this.Request);\n\n    \/\/ \u95ee\u9898\u6240\u5728\uff1a\u672a\u4f7f\u7528await\uff0c\u5bfc\u81f4\u63a5\u6536\u7684\u4e0d\u662f\u4e1a\u52a1\u7ed3\u679c\n    var data = _MatnoService.GetMatno(pages, limit, mname, status, matno, apbmname, apbmid, userInfo.userid);\n\n    return Ok(data);\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u5bf9\u5e94\u7684Service\u65b9\u6cd5\u7b7e\u540d<\/h3>\n\n\n\n<p>Service\u5c42\u7684\u65b9\u6cd5\u4e3a\u5f02\u6b65\u65b9\u6cd5\uff0c\u8fd4\u56de\u503c\u4e3a<code>Task&lt;ResultData&gt;<\/code>\uff0c\u5177\u4f53\u7b7e\u540d\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public async Task&lt;ResultData&gt; GetMatno(...) { ... }<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u62a5\u9519\u4fe1\u606f<\/h2>\n\n\n\n<p>\u63a5\u53e3\u8bf7\u6c42\u540e\uff0c\u76f4\u63a5\u629b\u51fa\u5982\u4e0b\u5f02\u5e38\uff0c\u65e0\u989d\u5916\u5197\u4f59\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>System.Text.Json.JsonException: A possible object cycle was detected which is not supported. This can either be due to a cycle or if the object depth is larger than the maximum allowed depth of 32.<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u6df1\u5ea6\u5256\u6790\uff1a\u4e3a\u4ec0\u4e48\u6f0f\u6389await\u4f1a\u62a5\u201c\u5faa\u73af\u5f15\u7528\u201d\uff1f<\/h2>\n\n\n\n<p>\u8fd9\u662f\u672c\u6b21Bug\u6700\u503c\u5f97\u63a2\u8ba8\u7684\u5730\u65b9\u2014\u2014\u8868\u9762\u662f\u201c\u5faa\u73af\u5f15\u7528\u201d\uff0c\u672c\u8d28\u662f\u5f02\u6b65\u8c03\u7528\u7684\u758f\u5ffd\uff0c\u5177\u4f53\u539f\u56e0\u53ef\u5206\u4e3a4\u6b65\u62c6\u89e3\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u8fd4\u56de\u503c\u5e76\u975e\u4e1a\u52a1\u7ed3\u679c<\/strong>\uff1a\u7531\u4e8e<code>_MatnoService.GetMatno<\/code>\u662f\u5f02\u6b65\u65b9\u6cd5\uff08\u8fd4\u56de<code>Task&lt;ResultData><\/code>\uff09\uff0c\u800cController\u4e2d\u672a\u4f7f\u7528<code><a href=\"https:\/\/learn.microsoft.com\/zh-cn\/dotnet\/csharp\/language-reference\/operators\/await\" target=\"_blank\"  rel=\"nofollow\" >await<\/a><\/code>\uff0c\u6b64\u65f6<code>data<\/code>\u63a5\u6536\u7684\u4e0d\u662f\u9884\u671f\u7684<code>ResultData<\/code>\u4e1a\u52a1\u5bf9\u8c61\uff0c\u800c\u662f\u4e00\u4e2a<strong><code>Task<\/code>\u6b63\u5728\u6267\u884c\u7684\u5bf9\u8c61<\/strong>\u3002<\/li>\n\n\n\n<li><strong>\u5e8f\u5217\u5316\u5668\u89e6\u53d1\u5f02\u5e38<\/strong>\uff1a\u5f53\u4ee3\u7801\u6267\u884c\u5230<code>Ok(data)<\/code>\uff0c\u51c6\u5907\u5c06\u7ed3\u679c\u8fd4\u56de\u7ed9\u524d\u7aef\u65f6\uff0cASP.NET Core \u7684<code><a href=\"http:\/\/[\u5904\u7406 System.Text.Json \u4e2d\u7684\u5faa\u73af\u5f15\u7528](https:\/\/learn.microsoft.com\/zh-cn\/dotnet\/standard\/serialization\/system-text-json\/handle-circular-references)\" target=\"_blank\"  rel=\"nofollow\" >System.Text.Json<\/a><\/code>\u5e8f\u5217\u5316\u5668\u4f1a\u5bf9<code>data<\/code>\u8fdb\u884cJSON\u5e8f\u5217\u5316\uff0c\u8fd9\u662f\u5f02\u5e38\u7684\u89e6\u53d1\u70b9\u3002<\/li>\n\n\n\n<li><strong>Task\u5bf9\u8c61\u7684\u590d\u6742\u7ed3\u6784<\/strong>\uff1a<code>Task<\/code>\u662f\u7cfb\u7edf\u7ea7\u590d\u6742\u5bf9\u8c61\uff0c\u5305\u542b<code>Exception<\/code>\u3001<code>AsyncState<\/code>\u3001<code>CreationOptions<\/code>\u7b49\u591a\u4e2a\u5185\u90e8\u5c5e\u6027\u3002\u66f4\u5173\u952e\u7684\u662f\uff0c\u5176\u90e8\u5206\u5185\u90e8\u5c5e\u6027\u4f1a\u901a\u8fc7\u7236\u5b50\u4efb\u52a1\u3001\u72b6\u6001\u673a\u5173\u7cfb\uff0c\u95f4\u63a5\u5f15\u7528\u81ea\u8eab\u6216\u5f62\u6210\u590d\u6742\u961f\u5217\u3002<\/li>\n\n\n\n<li><strong>\u62a5\u9519\u7684\u672c\u8d28\u539f\u56e0<\/strong>\uff1a\u5e8f\u5217\u5316\u5668\u4f1a\u9012\u5f52\u89e3\u6790<code>Task<\/code>\u5bf9\u8c61\u7684\u6240\u6709\u5c5e\u6027\uff0c\u5728\u6df1\u5c42\u89e3\u6790\u4e2d\u8981\u4e48\u89e6\u53d132\u5c42\u7684\u6df1\u5ea6\u9650\u5236\uff0c\u8981\u4e48\u9047\u5230\u5185\u90e8\u5faa\u73af\u5f15\u7528\uff0c\u6700\u7ec8\u629b\u51fa<code>A possible object cycle was detected<\/code>\u5f02\u5e38\u3002<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u4fee\u590d\u65b9\u6848<\/h2>\n\n\n\n<p>\u8fd9\u4e2aBug\u7684\u4fee\u590d\u6781\u5176\u7b80\u5355\uff0c\u53ea\u9700\u8865\u51456\u4e2a\u5b57\u6bcd\u2014\u2014<strong><code>await<\/code><\/strong>\uff0c\u786e\u4fdd\u5e8f\u5217\u5316\u7684\u662f\u4e1a\u52a1\u5bf9\u8c61\u800c\u975e<code>Task<\/code>\u5bf9\u8c61\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4fee\u590d\u540e\u7684\u63a7\u5236\u5668\u4ee3\u7801<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;HttpGet]\npublic async Task&lt;ActionResult&gt; GetMatno(...) \n{\n    var userInfo = JwtUser.GetRequestUser(this.Request);\n\n    \/\/ \u8865\u5145await\uff0c\u786e\u4fdd\u83b7\u53d6\u5230ResultData\u4e1a\u52a1\u5bf9\u8c61\n    var data = await _MatnoService.GetMatno(..., userInfo.userid);\n\n    return Ok(data);\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b80\u5316\u5199\u6cd5<\/h3>\n\n\n\n<p>\u82e5\u65e0\u9700\u5355\u72ec\u5904\u7406<code>data<\/code>\uff0c\u53ef\u8fdb\u4e00\u6b65\u7b80\u5316\u4ee3\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>return Ok(await _MatnoService.GetMatno(...));<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u603b\u7ed3\u4e0e\u53cd\u601d<\/h2>\n\n\n\n<p>\u8fd9\u6b21\u4f4e\u7ea7\u758f\u5ffd\uff0c\u7ed9\u6211\u5e26\u6765\u4e863\u4e2a\u91cd\u8981\u7684\u5f00\u53d1\u8b66\u793a\uff0c\u4e5f\u5e0c\u671b\u80fd\u5e2e\u5230\u9047\u5230\u7c7b\u4f3c\u62a5\u9519\u7684\u670b\u53cb\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7f16\u8bd1\u5668\u5e76\u975e\u4e07\u80fd<\/strong>\uff1a\u867d\u7136IDE\u4f1a\u63d0\u793a\u201c\u6b64\u8c03\u7528\u672a\u5b8c\u6210\u7b49\u5f85\uff0c\u5c06\u5728\u8c03\u7528\u524d\u7ee7\u7eed\u6267\u884c\u201d\uff0c\u4f46\u5728\u590d\u6742\u4e1a\u52a1\u903b\u8f91\u4e2d\uff0c\u8fd9\u7c7b\u8b66\u544a\u5f88\u5bb9\u6613\u88ab\u5ffd\u7565\uff0c\u9700\u683c\u5916\u7559\u610f\u3002<\/li>\n\n\n\n<li><strong>\u5f02\u5e38\u4fe1\u606f\u9700\u201c\u7a7f\u900f\u89e3\u8bfb\u201d<\/strong>\uff1a\u770b\u5230<code>JsonException<\/code>\uff0c\u4e0d\u8981\u53ea\u5c40\u9650\u4e8e\u68c0\u67e5\u5b9e\u4f53\u7c7b\u7684\u5faa\u73af\u5f15\u7528\uff0c\u8fd8\u8981\u786e\u8ba4\u4f20\u7ed9\u5e8f\u5217\u5316\u5668\u7684\u5bf9\u8c61\u662f\u5426\u6b63\u786e\uff08\u672c\u6b21\u5c31\u662f\u8bef\u4f20\u4e86Task\u5bf9\u8c61\uff09\u3002<\/li>\n\n\n\n<li><strong>\u5f02\u6b65\u8c03\u7528\u9700\u201c\u9996\u5c3e\u547c\u5e94\u201d<\/strong>\uff1a\u53ea\u8981\u65b9\u6cd5\u5b9a\u4e49\u4e3a<code>async Task<\/code>\uff0c\u8c03\u7528\u7684\u6bcf\u4e00\u5c42\u90fd\u5fc5\u987b\u4f7f\u7528<code>await<\/code>\uff0c\u907f\u514d\u51fa\u73b0\u201c\u5f02\u6b65\u4e0d\u7b49\u5f85\u201d\u7684\u60c5\u51b5\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u6700\u540e\u63d0\u9192\uff1a\u9047\u5230JSON\u5faa\u73af\u5f15\u7528\u5f02\u5e38\u65f6\uff0c\u9664\u4e86\u68c0\u67e5\u5b9e\u4f53\u7c7b\uff0c\u4e0d\u59a8\u591a\u4e00\u6b65\u6392\u67e5\u2014\u2014<strong>\u4f60\u662f\u4e0d\u662f\u5728\u5e8f\u5217\u5316\u4e00\u4e2aTask\u5bf9\u8c61\uff1f<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8865\u5145\u6ce8\u610f\u4e8b\u9879<\/h2>\n\n\n\n<p>\u7ed3\u5408\u672c\u6b21Bug\u6392\u67e5\uff0c\u8865\u51453\u4e2a.NET\u5f00\u53d1\u4e2d\u6613\u5ffd\u7565\u7684\u7ec6\u8282\uff0c\u5c24\u5176\u9002\u914d\u540e\u7aef\u63a5\u53e3\u5f00\u53d1\u573a\u666f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u5173\u4e8e\u91cd\u590d\u5199\u5165<\/strong>\uff1a\u4e25\u7981\u5728<code>Startup<\/code>\u4e2d\u624b\u52a8\u6267\u884c<code>AddNLog()<\/code>\uff0c\u5e94\u7edf\u4e00\u5728<code>Program.cs<\/code>\u4e2d\u4f7f\u7528<code>.UseNLog()<\/code>\uff0c\u907f\u514d\u65e5\u5fd7\u914d\u7f6e\u51b2\u7a81\u3002<\/li>\n\n\n\n<li><strong>\u5173\u4e8e\u6d41\u91cd\u7f6e<\/strong>\uff1a\u8bfb\u53d6<code>ResponseBody<\/code>\u540e\u5fc5\u987b\u6267\u884c<code>Seek(0, Begin)<\/code>\uff0c\u5426\u5219\u524d\u7aef\u5c06\u6536\u5230\u7a7a\u54cd\u5e94\uff0c\u5f71\u54cd\u4ea4\u4e92\u4f53\u9a8c\u3002<\/li>\n\n\n\n<li><strong>\u5173\u4e8e\u7269\u7406\u9694\u79bb<\/strong>\uff1a\u5728<code><a href=\"https:\/\/www.17ci.com\/index.php\/slug-netcore31-nlog-advanced-logging-api-tracing\/\">NLog.config<\/a><\/code>\u89c4\u5219\u4e2d\u4f7f\u7528<code>final=\"true\"<\/code>\uff0c\u662f\u5b9e\u73b0\u65e5\u5fd7\u5206\u6d41\u3001\u9632\u6b62\u65e5\u5fd7\u201c\u5192\u6ce1\u201d\u5230\u901a\u7528\u65e5\u5fd7\u7684\u5173\u952e\uff0c\u4fbf\u4e8e\u540e\u7eed\u95ee\u9898\u6392\u67e5\u3002<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u6700\u8fd1\u5728\u5f00\u53d1\u8ba2\u5355\uff08Matno\uff09\u67e5\u8be2\u63a5\u53e3\u65f6\uff0c\u9047\u5230\u4e86\u4e00\u4e2a\u56f0\u6270\u8bb8\u4e45\u7684Bug\u2014\u2014\u63a5\u53e3\u8c03\u7528\u540e\u6301\u7eed\u62a5\u9519\uff0c\u67e5\u770b\u65e5\u5fd7\u53d1\u73b0\u5168\u662fSystem.Te &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[8,7],"tags":[53,50,54],"class_list":["post-673","post","type-post","status-publish","format-standard","hentry","category-net","category-c","tag-net","tag-c","tag-54"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>.NET await\u7f3a\u5931\u5f15\u53d1\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff5c\u540e\u7aef\u5f00\u53d1\u8e29\u5751<\/title>\n<meta name=\"description\" content=\"\u6392\u67e5.NET\u63a5\u53e3System.Text.Json.JsonException\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff1f\u7adf\u662f\u5c11\u51991\u4e2aawait\uff01\u8be6\u89e3Bug\u539f\u56e0\u3001\u4fee\u590d\u65b9\u6cd5\uff0c\u52a9\u529bWordPress\u540e\u7aef\u5f00\u53d1\u8005\u907f\u5751\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\".NET await\u7f3a\u5931\u5f15\u53d1\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff5c\u540e\u7aef\u5f00\u53d1\u8e29\u5751\" \/>\n<meta property=\"og:description\" content=\"\u6392\u67e5.NET\u63a5\u53e3System.Text.Json.JsonException\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff1f\u7adf\u662f\u5c11\u51991\u4e2aawait\uff01\u8be6\u89e3Bug\u539f\u56e0\u3001\u4fee\u590d\u65b9\u6cd5\uff0c\u52a9\u529bWordPress\u540e\u7aef\u5f00\u53d1\u8005\u907f\u5751\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4ed6\u7684\u65e5\u5e38\u65f6\u5149\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-07T10:02:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-07T10:02:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.17ci.com\/wp-content\/uploads\/2023\/12\/1702602409-logoko.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"xieshuoshuo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"xieshuoshuo\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.17ci.com\\\/index.php\\\/net-await-missing-cycle-reference-error\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.17ci.com\\\/index.php\\\/net-await-missing-cycle-reference-error\\\/\"},\"author\":{\"name\":\"xieshuoshuo\",\"@id\":\"https:\\\/\\\/www.17ci.com\\\/#\\\/schema\\\/person\\\/2b6d2c8bdf88e9055aba3abf2f2852b8\"},\"headline\":\"\u4e00\u6b21\u7531\u201c\u5931\u8e2a\u201d\u7684await\u5f15\u53d1\u7684\u201c\u5faa\u73af\u5f15\u7528\u201d\u60e8\u6848\",\"datePublished\":\"2026-05-07T10:02:05+00:00\",\"dateModified\":\"2026-05-07T10:02:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.17ci.com\\\/index.php\\\/net-await-missing-cycle-reference-error\\\/\"},\"wordCount\":27,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.17ci.com\\\/#\\\/schema\\\/person\\\/2b6d2c8bdf88e9055aba3abf2f2852b8\"},\"keywords\":[\".NET\",\"C#\",\"\u5f02\u6b65\"],\"articleSection\":[\".NET\",\"C#\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.17ci.com\\\/index.php\\\/net-await-missing-cycle-reference-error\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.17ci.com\\\/index.php\\\/net-await-missing-cycle-reference-error\\\/\",\"url\":\"https:\\\/\\\/www.17ci.com\\\/index.php\\\/net-await-missing-cycle-reference-error\\\/\",\"name\":\".NET await\u7f3a\u5931\u5f15\u53d1\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff5c\u540e\u7aef\u5f00\u53d1\u8e29\u5751\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.17ci.com\\\/#website\"},\"datePublished\":\"2026-05-07T10:02:05+00:00\",\"dateModified\":\"2026-05-07T10:02:10+00:00\",\"description\":\"\u6392\u67e5.NET\u63a5\u53e3System.Text.Json.JsonException\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff1f\u7adf\u662f\u5c11\u51991\u4e2aawait\uff01\u8be6\u89e3Bug\u539f\u56e0\u3001\u4fee\u590d\u65b9\u6cd5\uff0c\u52a9\u529bWordPress\u540e\u7aef\u5f00\u53d1\u8005\u907f\u5751\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.17ci.com\\\/index.php\\\/net-await-missing-cycle-reference-error\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.17ci.com\\\/index.php\\\/net-await-missing-cycle-reference-error\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.17ci.com\\\/index.php\\\/net-await-missing-cycle-reference-error\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/www.17ci.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u6b21\u7531\u201c\u5931\u8e2a\u201d\u7684await\u5f15\u53d1\u7684\u201c\u5faa\u73af\u5f15\u7528\u201d\u60e8\u6848\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.17ci.com\\\/#website\",\"url\":\"https:\\\/\\\/www.17ci.com\\\/\",\"name\":\"\u4ed6\u7684\u65e5\u5e38\u65f6\u5149\",\"description\":\"\u832b\u832b\u4eba\u751f\uff0c\u597d\u50cf\u8352\u91ce...\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.17ci.com\\\/#\\\/schema\\\/person\\\/2b6d2c8bdf88e9055aba3abf2f2852b8\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.17ci.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.17ci.com\\\/#\\\/schema\\\/person\\\/2b6d2c8bdf88e9055aba3abf2f2852b8\",\"name\":\"xieshuoshuo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.17ci.com\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/1702602405-avatar.jpg\",\"url\":\"https:\\\/\\\/www.17ci.com\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/1702602405-avatar.jpg\",\"contentUrl\":\"https:\\\/\\\/www.17ci.com\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/1702602405-avatar.jpg\",\"width\":1619,\"height\":1619,\"caption\":\"xieshuoshuo\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.17ci.com\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/1702602405-avatar.jpg\"},\"description\":\"\u8fd9\u662f\u4e00\u4e2a\u795e\u79d8\u4eba\u58eb\uff0c\u6216\u8bb8\u7528\u6307\u5b9a\u7684\u65b9\u5f0f\u53ef\u4ee5\u8054\u7cfb\u5230......\",\"sameAs\":[\"https:\\\/\\\/www.17ci.com\"],\"url\":\"https:\\\/\\\/www.17ci.com\\\/index.php\\\/author\\\/xieshuoshuo\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":".NET await\u7f3a\u5931\u5f15\u53d1\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff5c\u540e\u7aef\u5f00\u53d1\u8e29\u5751","description":"\u6392\u67e5.NET\u63a5\u53e3System.Text.Json.JsonException\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff1f\u7adf\u662f\u5c11\u51991\u4e2aawait\uff01\u8be6\u89e3Bug\u539f\u56e0\u3001\u4fee\u590d\u65b9\u6cd5\uff0c\u52a9\u529bWordPress\u540e\u7aef\u5f00\u53d1\u8005\u907f\u5751\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/","og_locale":"zh_CN","og_type":"article","og_title":".NET await\u7f3a\u5931\u5f15\u53d1\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff5c\u540e\u7aef\u5f00\u53d1\u8e29\u5751","og_description":"\u6392\u67e5.NET\u63a5\u53e3System.Text.Json.JsonException\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff1f\u7adf\u662f\u5c11\u51991\u4e2aawait\uff01\u8be6\u89e3Bug\u539f\u56e0\u3001\u4fee\u590d\u65b9\u6cd5\uff0c\u52a9\u529bWordPress\u540e\u7aef\u5f00\u53d1\u8005\u907f\u5751\u3002","og_url":"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/","og_site_name":"\u4ed6\u7684\u65e5\u5e38\u65f6\u5149","article_published_time":"2026-05-07T10:02:05+00:00","article_modified_time":"2026-05-07T10:02:10+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/www.17ci.com\/wp-content\/uploads\/2023\/12\/1702602409-logoko.png","type":"image\/png"}],"author":"xieshuoshuo","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"xieshuoshuo","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/#article","isPartOf":{"@id":"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/"},"author":{"name":"xieshuoshuo","@id":"https:\/\/www.17ci.com\/#\/schema\/person\/2b6d2c8bdf88e9055aba3abf2f2852b8"},"headline":"\u4e00\u6b21\u7531\u201c\u5931\u8e2a\u201d\u7684await\u5f15\u53d1\u7684\u201c\u5faa\u73af\u5f15\u7528\u201d\u60e8\u6848","datePublished":"2026-05-07T10:02:05+00:00","dateModified":"2026-05-07T10:02:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/"},"wordCount":27,"commentCount":0,"publisher":{"@id":"https:\/\/www.17ci.com\/#\/schema\/person\/2b6d2c8bdf88e9055aba3abf2f2852b8"},"keywords":[".NET","C#","\u5f02\u6b65"],"articleSection":[".NET","C#"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/","url":"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/","name":".NET await\u7f3a\u5931\u5f15\u53d1\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff5c\u540e\u7aef\u5f00\u53d1\u8e29\u5751","isPartOf":{"@id":"https:\/\/www.17ci.com\/#website"},"datePublished":"2026-05-07T10:02:05+00:00","dateModified":"2026-05-07T10:02:10+00:00","description":"\u6392\u67e5.NET\u63a5\u53e3System.Text.Json.JsonException\u5faa\u73af\u5f15\u7528\u62a5\u9519\uff1f\u7adf\u662f\u5c11\u51991\u4e2aawait\uff01\u8be6\u89e3Bug\u539f\u56e0\u3001\u4fee\u590d\u65b9\u6cd5\uff0c\u52a9\u529bWordPress\u540e\u7aef\u5f00\u53d1\u8005\u907f\u5751\u3002","breadcrumb":{"@id":"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.17ci.com\/index.php\/net-await-missing-cycle-reference-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.17ci.com\/"},{"@type":"ListItem","position":2,"name":"\u4e00\u6b21\u7531\u201c\u5931\u8e2a\u201d\u7684await\u5f15\u53d1\u7684\u201c\u5faa\u73af\u5f15\u7528\u201d\u60e8\u6848"}]},{"@type":"WebSite","@id":"https:\/\/www.17ci.com\/#website","url":"https:\/\/www.17ci.com\/","name":"\u4ed6\u7684\u65e5\u5e38\u65f6\u5149","description":"\u832b\u832b\u4eba\u751f\uff0c\u597d\u50cf\u8352\u91ce...","publisher":{"@id":"https:\/\/www.17ci.com\/#\/schema\/person\/2b6d2c8bdf88e9055aba3abf2f2852b8"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.17ci.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.17ci.com\/#\/schema\/person\/2b6d2c8bdf88e9055aba3abf2f2852b8","name":"xieshuoshuo","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.17ci.com\/wp-content\/uploads\/2023\/12\/1702602405-avatar.jpg","url":"https:\/\/www.17ci.com\/wp-content\/uploads\/2023\/12\/1702602405-avatar.jpg","contentUrl":"https:\/\/www.17ci.com\/wp-content\/uploads\/2023\/12\/1702602405-avatar.jpg","width":1619,"height":1619,"caption":"xieshuoshuo"},"logo":{"@id":"https:\/\/www.17ci.com\/wp-content\/uploads\/2023\/12\/1702602405-avatar.jpg"},"description":"\u8fd9\u662f\u4e00\u4e2a\u795e\u79d8\u4eba\u58eb\uff0c\u6216\u8bb8\u7528\u6307\u5b9a\u7684\u65b9\u5f0f\u53ef\u4ee5\u8054\u7cfb\u5230......","sameAs":["https:\/\/www.17ci.com"],"url":"https:\/\/www.17ci.com\/index.php\/author\/xieshuoshuo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.17ci.com\/index.php\/wp-json\/wp\/v2\/posts\/673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.17ci.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.17ci.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.17ci.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.17ci.com\/index.php\/wp-json\/wp\/v2\/comments?post=673"}],"version-history":[{"count":2,"href":"https:\/\/www.17ci.com\/index.php\/wp-json\/wp\/v2\/posts\/673\/revisions"}],"predecessor-version":[{"id":676,"href":"https:\/\/www.17ci.com\/index.php\/wp-json\/wp\/v2\/posts\/673\/revisions\/676"}],"wp:attachment":[{"href":"https:\/\/www.17ci.com\/index.php\/wp-json\/wp\/v2\/media?parent=673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.17ci.com\/index.php\/wp-json\/wp\/v2\/categories?post=673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.17ci.com\/index.php\/wp-json\/wp\/v2\/tags?post=673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}