{"id":1051,"date":"2019-06-25T15:26:12","date_gmt":"2019-06-25T07:26:12","guid":{"rendered":"http:\/\/jrblog.pentaidea.com\/john\/2019\/06\/25\/net-net-core-powershell-faq\/"},"modified":"2019-06-25T15:26:12","modified_gmt":"2019-06-25T07:26:12","slug":"net-net-core-powershell-faq","status":"publish","type":"post","link":"https:\/\/john.pentaidea.com\/?p=1051","title":{"rendered":".NET\/.NET.Core FAQ"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\"><span style=\"font-size: 14pt; color: rgb(30, 204, 255); font-weight: bold;\">Other&nbsp;<\/span><\/span><\/p>\n<ul>\n<li>\n<p><b>Prebuild event in Visual Studio replacing $(SolutionDir) with *Undefined*<\/b><\/p>\n<\/li>\n<ul>\n<li>\n<p>Msg:<\/p>\n<\/li>\n<ul>\n<li>\n<p>when using&nbsp;<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<pre><code>&nbsp;&nbsp;&lt;Project&gt;\n&nbsp;&nbsp;...\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;Target Name=&quot;AfterBuild&quot;&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Copy SourceFiles=&quot;$(SolutionDir)..\\Lib\\*.dll&quot; DestinationFolder=&quot;$(OutDir)Debug\\bin&quot; SkipUnchangedFiles=&quot;false&quot; \/&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Copy SourceFiles=&quot;$(SolutionDir)..\\Lib\\*.dll&quot; DestinationFolder=&quot;$(OutDir)Release\\bin&quot; SkipUnchangedFiles=&quot;false&quot; \/&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/Target&gt;\n&nbsp;&nbsp;&lt;\/Project&gt;\n<\/code><\/pre>\n<ul>\n<ul>\n<ul>\n<li>\n<p>Get error<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<pre><code>18:17:09 D:\\CI_FOLDER\\SYSTEM\\Jenkins\\workspace\\XXX_Daily_Build\\Src\\XXX\\XXX.csproj(273,5): error MSB3030: Could not copy the file &quot;*Undefined*..\\Lib\\x86\\YYY.dll&quot; because it was not found.\n<\/code><\/pre>\n<ul>\n<ul>\n<li>\n<p>Ans:&nbsp;&nbsp;replacing all $(SolutionDir) with $(ProjectDir)..\\.<\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-weight: bold;\">IIS &#8211;&nbsp;<\/span><span style=\"font-weight: bold;\">HTTP Error 404.3-Not Found in IIS 7.5 ()<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>Msg:&nbsp;The page you are requesting cannot be served because of the extension configuration. If the page is script, add a handler. If the file should be downloaded, add a MIME map.<\/p>\n<\/li>\n<li>\n<p>Ans:&nbsp;&nbsp;<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<pre><code>Control Panel -&gt; Programs and Features -&gt; Turn Windows features on or off\nInternet Information Services -&gt; World Wide Web Services -&gt; Application Development Features\n&gt;&gt;\nCheck all ASP.NET (.NET Extensibility, ISAPI Extensions, ISAPI Filters will be selected automatically).\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-weight: bold;\">VS &#8211; Trace back code (find last step on break point)<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>After version Visual Studio Enterprise <span style=\"font-weight: bold;\">2017 version 15.5<\/span> Preview.<\/p>\n<\/li>\n<li>\n<p>Enable : <span style=\"font-weight: bold;\">Tools<\/span>, <span style=\"font-weight: bold;\">Options<\/span>, <span style=\"font-weight: bold;\">IntelliTrace<\/span> settings, and select the option \u201c<span style=\"font-weight: bold;\">IntelliTrace events and snapshots.<\/span>\u201d<\/p>\n<\/li>\n<li>\n<p>Get trace back on <span style=\"font-weight: bold;\">Stack Frame<\/span>&nbsp;<img decoding=\"async\" src=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/d4d341ad54844fe50e2d1b88fe25bb5e.png\"\/><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<p><span style=\"font-size: 18.6667px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;\"><\/span><\/p>\n<p><span style=\"font-size: 18.6667px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(30, 204, 255); font-family: &quot;Segoe UI&quot;; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: bold;\">.NET.Framework&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 18.6667px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;\"><\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-weight: bold;\">Upgrade NET error<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>Msg:&nbsp;Your project does not reference &quot;.NETFramework,Version=v4.7.2&quot; framework. Add a reference to &quot;.NETFramework,Version=v4.7.2&quot; in the &quot;TargetFrameworks&quot; property of your project file and then re-run NuGet restore<\/p>\n<\/li>\n<li>\n<p>Ans: Delete &quot;<span style=\"font-weight: bold;\">obj<\/span>&quot; folder and rebuild.<\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-weight: bold;\">FileLoadException when using MailKit\/MimeKit<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>Error:&nbsp;MimeKit The located assembly&apos;s manifest definition does not match the assembly reference<\/p>\n<\/li>\n<li>\n<p>Ans: Update Nuget&nbsp;MimeKit to the same to all project.<\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-weight: bold;\">Can not delete \\bin\\roslyn\\VBCSCompiler.exe &#8211; Access is denied<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>Task manager -&gt; stop all &quot;VBCSCompiler.exe&quot;<\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-weight: bold;\">Config file ScFilesToTransform&nbsp;<\/span><span style=\"font-weight: bold;\">does not define a value for metadata &quot;Link&quot;.<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>ErrorMsg:<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<pre><code>Error&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The item &quot;config\\xxx.config&quot; in item list &quot;ScFilesToTransform&quot; does not define a value for metadata &quot;Link&quot;.&nbsp;&nbsp;In order to use this metadata, either qualify it by specifying %(ScFilesToTransform.Link), or ensure that all items in this list define a value for this metadata.&nbsp;&nbsp;&nbsp;&nbsp;YYY.Project&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;\n<\/code><\/pre>\n<ul>\n<ul>\n<li>\n<p>Solve:&nbsp; Change &quot;config\\xxx.config&quot; to &quot;Copy if newer&quot;<\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-weight: bold;\">Couldn&apos;t load&nbsp;<\/span><span style=\"font-weight: bold;\">EnterpriseLibrary.Logging<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>ErrorMsg:<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<pre><code>loggingConfiguration: Could not load file or assembly &apos;Microsoft.Practices.EnterpriseLibrary.Logging\n<\/code><\/pre>\n<ul>\n<ul>\n<li>\n<p>Solve: Version and PublicKeyToken should be the same<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<pre><code>Version=x.x.x.x, Culture=neutral, PublicKeyToken=yyyyyyyyy\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-weight: bold;\">IIS rewrite module &#8211; remove sub-folder issue&nbsp;<\/span><\/p>\n<\/li>\n<pre><code># No prefix &quot;\/&quot;\n\n&lt;rule name=&quot;All SubPath Rewrite to Root&quot; stopProcessing=&quot;true&quot;&gt;\n&nbsp;&nbsp;&lt;match url=&quot;^subfolder\/(.*)&quot; \/&gt;\n&nbsp;&nbsp;&lt;action type=&quot;Rewrite&quot; url=&quot;\/{R:1}&quot; \/&gt;\n&lt;\/rule&gt;\n\n# Not work&nbsp;\n&nbsp;&nbsp;&lt;match url=&quot;^\/subfolder\/(.*)&quot; \/&gt;\n<\/code><\/pre>\n<li>\n<p><span style=\"font-weight: bold;\">HTTP Error 500.30 &#8211; ANCM In-Process Start Failure<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>Issue:&nbsp;If the target machine you are deploying to doesn&apos;t have ANCMV2, you can&apos;t use IIS InProcess hosting.<\/p>\n<\/li>\n<li>\n<p>Solve (ch<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<p><span style=\"font-size: 18.6667px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(30, 204, 255); font-family: &quot;Segoe UI&quot;; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: bold;\">.NET.Core&nbsp;<\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-weight: bold;\">Enable debugging on IIS (Detailed error message)<\/span><\/p>\n<\/li>\n<pre><code>&lt;system.webServer&gt;\n&nbsp;&nbsp;&nbsp;&lt;httpErrors errorMode=&quot;Detailed&quot; \/&gt;\n&nbsp;&nbsp;&nbsp;&lt;asp scriptErrorSentToBrowser=&quot;true&quot;\/&gt;\n&lt;\/system.webServer&gt;\n<\/code><\/pre>\n<li>\n<p><span style=\"font-weight: bold;\">HTTP Error 500.30 &#8211; ANCM In-Process Start Failure<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>Issue:&nbsp;If the target machine you are deploying to doesn&apos;t have ANCMV2, you can&apos;t use IIS InProcess hosting.<\/p>\n<\/li>\n<li>\n<p>Solve (choose one):&nbsp;<\/p>\n<\/li>\n<ol>\n<li>\n<p>Install bundle which has ASPNETCoreModuleV2.<\/p>\n<\/li>\n<li>\n<p>Modify .csproj file.<\/p>\n<\/li>\n<\/ol>\n<\/ul>\n<\/ul>\n<pre><code>&nbsp;&nbsp;&lt;PropertyGroup&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;TargetFramework&gt;netcoreapp2.2&lt;\/TargetFramework&gt;\n--&nbsp; &lt;AspNetCoreHostingModel&gt;InProcess&lt;\/AspNetCoreHostingModel&gt;\n++&nbsp; &lt;AspNetCoreHostingModel&gt;OutOfProcess&lt;\/AspNetCoreHostingModel&gt;\n++&nbsp; &lt;AspNetCoreModuleName&gt;AspNetCoreModule&lt;\/AspNetCoreModuleName&gt;\n&nbsp;&nbsp;&lt;\/PropertyGroup&gt;\n<\/code><\/pre>\n<ul>\n<ul>\n<li>\n<p>Ref:&nbsp;<a href=\"https:\/\/stackoverflow.com\/a\/53814861\/3634867\">https:\/\/stackoverflow.com\/a\/53814861\/3634867<\/a><\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-weight: bold;\">HTTP Error 500.30 &#8211; ANCM In-Process Start Failure<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>Issue: can&apos;t read db connection string of appsettings.json when initializing NetCore .<\/p>\n<\/li>\n<li>\n<p>Solve: fix the format and make it do reading appsettings.json correctly.<\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-weight: bold;\">500.19 &quot;handlers&quot; This configuration section cannot be used at this path<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>Issue: can&apos;t read &lt;handlers&gt; section at web.config<\/p>\n<\/li>\n<li>\n<p>Solve:<\/p>\n<\/li>\n<ul>\n<li>\n<p>Install windows feature &quot;Application Development Features&quot; in World Wide Web Services(IIS)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/354d3bd2cb478f035869e5700b2a14ab.png\"\/><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<li>\n<p><span style=\"font-weight: bold;\">HTTP error 500.30 &#8211; ANCM in-process start failure<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>ANCM == AspNetCoreModule&nbsp;<\/p>\n<\/li>\n<li>\n<p>Issue: Logging to specific log folder permission denied<\/p>\n<\/li>\n<li>\n<p>Solve:<\/p>\n<\/li>\n<ul>\n<li>\n<p>Get issue detail by opening stdoutLogEnabled=&quot;true&quot; in web.config.<\/p>\n<\/li>\n<li>\n<p>Set log folder permission &quot;Read\/Write\/Modify&quot; to local user &quot;IIS_IUSRS&quot;.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/efccd39a7a6b02b1fea249596cb43b03.png\"\/><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<li>\n<p><span style=\"font-size: 10pt; font-weight: bold;\">Json config with strong type<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">\u5728<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">&nbsp;<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; border-radius: 2px; background: rgb(249, 249, 250); font-size: 10pt; color: rgb(51, 103, 214); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">Startup.ConfigureServices<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">&nbsp;<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">\u900f\u904e<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">&nbsp;<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; border-radius: 2px; background: rgb(249, 249, 250); font-size: 10pt; color: rgb(51, 103, 214); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">services.Configure&lt;T&gt;()<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">\u4ee5\u5f37\u578b\u5225\u5c0d\u61c9<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">&nbsp;<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; border-radius: 2px; background: rgb(249, 249, 250); font-size: 10pt; color: rgb(51, 103, 214); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">IConfiguration<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">&nbsp;<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">\u5be6\u4f8b\u7684\u65b9\u5f0f\uff0c\u52a0\u5165\u81f3 DI \u5bb9\u5668\uff1a<\/span><\/p>\n<p><span style=\"box-sizing: border-box; outline: 0px;\"><span style=\"font-size: 10pt; font-style: italic;\">Startup.cs<\/span><\/span><\/p>\n<table style=\"box-sizing: border-box; outline: 0px; border-spacing: 0px; border-collapse: collapse; min-width: 100%;\">\n<tr style=\"box-sizing: border-box; outline: 0px; padding: 0px;\">\n<td style=\"box-sizing: border-box; outline: 0px; text-align: right; border: 1px solid rgb(204, 204, 204); width: 130px; padding: 8px;\">\n<div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">1<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">2<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">3<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">4<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">5<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">6<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">7<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">8<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">9<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">10<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">11<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">12<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">13<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">14<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">15<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">16<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">17<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">18<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<td style=\"box-sizing: border-box; outline: 0px; vertical-align: top; border: 1px solid rgb(204, 204, 204); width: 802px; padding: 8px;\">\n<div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: green; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">\/\/ &#8230;<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">public<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">class<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(43, 145, 175); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">Startup<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">private<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">IConfiguration _config;<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">public<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(43, 145, 175); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">Startup<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">(<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">IConfiguration config<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">)<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">_config = config;<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">}<\/span><\/span><\/div>\n<div><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">public<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">void<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(43, 145, 175); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">ConfigureServices<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">(<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">IServiceCollection services<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">)<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: green; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">\/\/ &#8230;<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">services.Configure&lt;Settings&gt;(_config);<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">}<\/span><\/span><\/div>\n<div><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: green; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">\/\/ &#8230;<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">}<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">\u4f7f\u7528\u7684 DI \u578b\u5225\u6539\u6210<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">&nbsp;<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; border-radius: 2px; background: rgb(249, 249, 250); font-size: 10pt; color: rgb(51, 103, 214); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">IOptions&lt;T&gt;<\/span><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">\uff0c\u5982\u4e0b\uff1a<\/span><\/p>\n<p><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;\"><span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-style: italic; font-variant-caps: normal; font-variant-ligatures: normal;\">Controllers\\HomeController.cs<\/span><\/span><\/p>\n<table style=\"box-sizing: border-box; outline: 0px; border-spacing: 0px; border-collapse: collapse; min-width: 100%;\">\n<tr style=\"box-sizing: border-box; outline: 0px; padding: 0px;\">\n<td style=\"box-sizing: border-box; outline: 0px; text-align: right; border: 1px solid rgb(204, 204, 204); width: 130px; padding: 8px;\">\n<div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">1<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">2<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">3<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">4<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">5<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">6<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">7<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">8<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">9<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">10<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">11<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">12<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">13<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">14<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">15<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">16<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">17<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">18<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">19<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">20<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">21<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">22<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">23<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">24<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">25<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">26<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">27<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">28<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">29<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<td style=\"box-sizing: border-box; outline: 0px; vertical-align: top; border: 1px solid rgb(204, 204, 204); width: 801px; padding: 8px;\">\n<div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">using<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">Microsoft.AspNetCore.Mvc;<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">using<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">Microsoft.Extensions.Configuration;<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">using<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">Microsoft.Extensions.Options;<\/span><\/div>\n<div><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">namespace<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(43, 145, 175); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">MyWebsite.Controllers<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">public<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">class<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(43, 145, 175); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">HomeController<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">:<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(43, 145, 175); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">Controller<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">private<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">readonly<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">Settings _settings;<\/span><\/div>\n<div><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">public<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(43, 145, 175); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">HomeController<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">(<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">IOptions&lt;Settings&gt; settings<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">)<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">_settings = settings.Value;<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">}<\/span><\/span><\/div>\n<div><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">public<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">string<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(43, 145, 175); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">Index<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">()<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">var<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">defaultCulture = _settings.SupportedCultures[<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 0); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">1<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">];<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">var<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">subProperty1 = _settings.CustomObject.Property.SubProperty1;<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">var<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">subProperty2 = _settings.CustomObject.Property.SubProperty2;<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">var<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">subProperty3 = _settings.CustomObject.Property.SubProperty3;<\/span><\/div>\n<div><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(0, 0, 255); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">return<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">$&quot;defaultCulture(<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{defaultCulture.GetType()}<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">):<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{defaultCulture}<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">\\r\\n&quot;<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">+<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">$&quot;subProperty1(<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{subProperty1.GetType()}<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">):<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{subProperty1}<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">\\r\\n&quot;<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">+<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">$&quot;subProperty2(<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{subProperty2.GetType()}<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">):<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{subProperty2}<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">\\r\\n&quot;<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">+<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">$&quot;subProperty3(<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{subProperty3.GetType()}<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">):<\/span> <span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">{subProperty3}<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">\\r\\n&quot;<\/span><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem; font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">;<\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">}<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">}<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">}<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);\"><span style=\"background-color: rgb(255, 255, 255); font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">\u8f38\u51fa\u7d50\u679c\u5982\u4e0b\uff1a<\/span><\/span><\/p>\n<table style=\"box-sizing: border-box; outline: 0px; border-spacing: 0px; border-collapse: collapse; min-width: 100%;\">\n<tr style=\"box-sizing: border-box; outline: 0px; padding: 0px;\">\n<td style=\"box-sizing: border-box; outline: 0px; text-align: right; border: 1px solid rgb(204, 204, 204); width: 130px; padding: 8px;\">\n<div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">1<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">2<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">3<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; color: rgb(153, 153, 153); font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">4<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<td style=\"box-sizing: border-box; outline: 0px; vertical-align: top; border: 1px solid rgb(204, 204, 204); width: 811px; padding: 8px;\">\n<div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">defaultCulture(System.String): zh-TW<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">subProperty1(System.Int32): 1<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">subProperty2(System.Boolean): True<\/span><\/span><\/div>\n<div><span style=\"box-sizing: border-box; outline: 0px; height: 1.2rem;\"><span style=\"font-size: 10pt; font-family: &quot;Roboto Mono&quot;, Consolas, monospace, sans-serif;\">subProperty3(System.String): This is sub property.<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p><span style=\"box-sizing: border-box; outline: 0px; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;\"><span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Hiragino Sans GB W3&quot;, &quot;Source Han Sans CN Regular&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-variant-caps: normal; font-variant-ligatures: normal;\">\u9019\u6a23\u5c31\u53ef\u4ee5\u662f\u5f37\u578b\u5225\uff0c\u4e14\u6709\u660e\u78ba\u7684\u578b\u614b\u3002<\/span><\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;; font-weight: bold;\">Got 502.3 error when upgrading .Net.Core version<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt;\">Error message:<\/span><\/p>\n<p><span style=\"font-size: 10pt;\">An assembly specified in the application dependencies manifest (CloudKeyPool.deps.json) was not found:<\/span><\/p>\n<p><span style=\"font-size: 10pt;\">package: &apos;Microsoft.ApplicationInsights.AspNetCore&apos;, version: &apos;2.1.1&apos;<\/span><\/p>\n<p><span style=\"font-size: 10pt;\">path: &apos;lib\/netstandard1.6\/Microsoft.ApplicationInsights.AspNetCore.dll&apos;<\/span><\/p>\n<p><span style=\"font-size: 10pt;\">This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:&nbsp;&nbsp;&nbsp;&nbsp;aspnetcore-store-2.0.0-linux-x64.xml;aspnetcore-store-2.0.0-osx-x64.xml;aspnetcore-store-2.0.0-win7-x64.xml;aspnetcore-store-2.0.0-win7-x86.xml<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 10pt;\">Solution: Add the follows into .csproj file.<\/span><\/p>\n<p><span style=\"box-sizing: border-box; background: transparent; border-radius: 3px; word-break: normal; white-space: pre; border: 0px; overflow: visible; word-wrap: normal;\"><span style=\"background-color: transparent; font-size: 10pt; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;\">&lt;PropertyGroup&gt;<\/span><\/span><\/p>\n<p><span style=\"box-sizing: border-box; background: transparent; border-radius: 3px; word-break: normal; white-space: pre; border: 0px; overflow: visible; word-wrap: normal;\"><span style=\"background-color: transparent; font-size: 10pt; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;\">&lt;PublishWithAspNetCoreTargetManifest&gt;false&lt;\/PublishWithAspNetCoreTargetManifest&gt;<\/span><\/span><\/p>\n<p><span style=\"box-sizing: border-box; background: transparent; border-radius: 3px; word-break: normal; white-space: pre; border: 0px; overflow: visible; word-wrap: normal;\"><span style=\"background-color: transparent; font-size: 10pt; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;\">&lt;\/PropertyGroup&gt;<\/span><\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"box-sizing: border-box; background: transparent; border-radius: 3px; word-break: normal; white-space: pre; border: 0px; overflow: visible; word-wrap: normal;\"><span style=\"background-color: transparent; font-size: 10pt; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;\">Ref:<\/span> <a href=\"https:\/\/github.com\/dotnet\/coreclr\/issues\/13542\">https:\/\/github.com\/dotnet\/coreclr\/issues\/13542<\/a><\/span><\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;; font-weight: bold;\">Enable IIS Debug log&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 10pt;\">\u7de8\u8f2f&nbsp;<\/span><span style=\"font-size: 10pt; font-style: italic;\">web.config<\/span><span style=\"font-size: 10pt;\">&nbsp;\u6a94\u6848\u3002&nbsp;\u5c07&nbsp;<\/span><span style=\"font-size: 10pt; font-weight: bold;\">stdoutLogEnabled<\/span><span style=\"font-size: 10pt;\">&nbsp;\u8a2d\u5b9a\u70ba&nbsp;<\/span><span style=\"-webkit-font-smoothing: auto; border-radius: 2px; display: inline-block; border: 1px solid var(--grey-lighter); background-color: var(--white-bis); direction: ltr; font-size: 10pt; font-family: monospace, monospace; line-height: 19px;\">true<\/span><span style=\"font-size: 10pt;\">\uff0c\u4e26\u5c07&nbsp;<\/span><span style=\"font-size: 10pt; font-weight: bold;\">stdoutLogFile<\/span><span style=\"font-size: 10pt;\">&nbsp;\u8def\u5f91\u8b8a\u66f4\u70ba\u6307\u5411 [logs] \u8cc7\u6599\u593e (\u4f8b\u5982&nbsp;<\/span><span style=\"-webkit-font-smoothing: auto; border-radius: 2px; display: inline-block; border: 1px solid var(--grey-lighter); background-color: var(--white-bis); direction: ltr; font-size: 10pt; font-family: monospace, monospace; line-height: 19px;\">.\\logs\\stdout<\/span><span style=\"font-size: 10pt;\">)\u3002&nbsp;\u8def\u5f91\u4e2d\u7684&nbsp;<\/span><span style=\"-webkit-font-smoothing: auto; border-radius: 2px; display: inline-block; border: 1px solid var(--grey-lighter); background-color: var(--white-bis); direction: ltr; font-size: 10pt; font-family: monospace, monospace; line-height: 19px;\">stdout<\/span><span style=\"font-size: 10pt;\">&nbsp;\u662f\u8a18\u9304\u6a94\u540d\u7a31\u524d\u7f6e\u8a5e\u3002&nbsp;\u5efa\u7acb\u8a18\u9304\u6a94\u6642\uff0c\u7cfb\u7d71\u6703\u81ea\u52d5\u65b0\u589e\u6642\u9593\u6233\u8a18\u3001\u8655\u7406\u5e8f\u8b58\u5225\u78bc\u53ca\u526f\u6a94\u540d\u3002&nbsp;\u4f7f\u7528&nbsp;<\/span><span style=\"-webkit-font-smoothing: auto; border-radius: 2px; display: inline-block; border: 1px solid var(--grey-lighter); background-color: var(--white-bis); direction: ltr; font-size: 10pt; font-family: monospace, monospace; line-height: 19px;\">stdout<\/span><span style=\"font-size: 10pt;\">&nbsp;\u4f5c\u70ba\u6a94\u6848\u540d\u7a31\u524d\u7f6e\u8a5e\u6642\uff0c\u4e00\u822c\u8a18\u9304\u6a94\u6703\u547d\u540d\u70ba<\/span><span style=\"font-size: 10pt; font-style: italic;\">stdout_20180205184032_5412.log<\/span><span style=\"font-size: 10pt;\">\u3002<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;; font-weight: bold;\">&nbsp;<\/span><span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;; font-weight: bold;\">Error&nbsp;&nbsp;&nbsp;&nbsp;NETSDK1004&nbsp;&nbsp;&nbsp;&nbsp;Assets file &apos;D:\\{solutionPath}\\obj\\project.assets.json&apos; not found. Run a NuGet package restore to generate this file.<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\">Tools<\/span> <span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\">&gt;<\/span> <span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\">NuGet Package Manager<\/span> <span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\">&gt;<\/span> <span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\">Package Manager Console<\/span> <span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\">and run:<\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<pre><code>dotnet restore\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;; font-weight: bold;\">&nbsp;How to debug with local NuGet packages<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\">Put *<\/span><span style=\"color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\">.nupkg at specific folder, and add this folder into Tools -&gt; Options -&gt; Add a new NuGet source.<\/span><\/p>\n<p><span style=\"color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\"><img decoding=\"async\" src=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/0065cc6b6c97f58bff280f355847d688.png\"\/><\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\">Make the new source checked ONLY (avoid other confusing packages)<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;;\">Refresh NuGet list.<\/span><\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-size: 10pt; color: rgb(39, 39, 39); font-family: &quot;Titillium Web&quot;; font-weight: bold;\">&nbsp;Change Nuget feed\/source position<\/span><\/p>\n<\/li>\n<\/ul>\n<pre><code>C:\\Users\\{{UserName}}\\AppData\\Roaming\\NuGet\\NuGet.Config\n\n===&nbsp;NuGet.Config ===\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\n&lt;configuration&gt;\n&nbsp;&nbsp;&lt;packageSources&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;add key=&quot;nuget.org&quot; value=&quot;https:\/\/api.nuget.org\/v3\/index.json&quot; protocolVersion=&quot;3&quot; \/&gt;\n&nbsp; &nbsp; &lt;add key=&quot;{{new-source}}&quot; value=&quot;{{serverLink}}&quot; \/&gt;\n&nbsp;&nbsp;&lt;\/packageSources&gt;\n&lt;\/configuration&gt;\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-weight: bold;\">Check the log of windows service<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>&quot;Computer Management&quot; -&gt; &quot;Event Viewer&quot; -&gt; &quot;Windows Logs&quot; -&gt; &quot;System&quot; -&gt; filter by &quot;Service Control Manager&quot;<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/78d8e37cb1319da8a13d730bd9405fb0.png\"\/><\/p>\n<\/p>\n<p><span style=\"font-size: 10pt;\">#Net #Net.Core #IIS #Visual stodio #VS<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Other&nbsp;<\/p>\n<\/div>","protected":false},"author":1,"featured_media":1254,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[14],"class_list":["post-1051","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-faq"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>.NET\/.NET.Core FAQ - John&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/john.pentaidea.com\/?p=1051\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\".NET\/.NET.Core FAQ - John&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Other&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/john.pentaidea.com\/?p=1051\" \/>\n<meta property=\"og:site_name\" content=\"John&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-25T07:26:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/0065cc6b6c97f58bff280f355847d688.png\" \/>\n\t<meta property=\"og:image:width\" content=\"841\" \/>\n\t<meta property=\"og:image:height\" content=\"184\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"jj\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"jj\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=1051\",\"url\":\"https:\/\/john.pentaidea.com\/?p=1051\",\"name\":\".NET\/.NET.Core FAQ - John&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/john.pentaidea.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/john.pentaidea.com\/?p=1051#primaryimage\"},\"image\":{\"@id\":\"https:\/\/john.pentaidea.com\/?p=1051#primaryimage\"},\"thumbnailUrl\":\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/0065cc6b6c97f58bff280f355847d688.png\",\"datePublished\":\"2019-06-25T07:26:12+00:00\",\"dateModified\":\"2019-06-25T07:26:12+00:00\",\"author\":{\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f\"},\"breadcrumb\":{\"@id\":\"https:\/\/john.pentaidea.com\/?p=1051#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/john.pentaidea.com\/?p=1051\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=1051#primaryimage\",\"url\":\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/0065cc6b6c97f58bff280f355847d688.png\",\"contentUrl\":\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/0065cc6b6c97f58bff280f355847d688.png\",\"width\":841,\"height\":184},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=1051#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/john.pentaidea.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\".NET\/.NET.Core FAQ\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/john.pentaidea.com\/#website\",\"url\":\"https:\/\/john.pentaidea.com\/\",\"name\":\"John's Blog\",\"description\":\"\u4e16\u754c\u56e0\u601d\u7dd2\u800c\u8907\u96dc, \u4eba\u56e0\u5922\u60f3\u800c\u5049\u5927\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/john.pentaidea.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f\",\"name\":\"jj\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g\",\"caption\":\"jj\"},\"sameAs\":[\"https:\/\/john.pentaidea.com\"],\"url\":\"https:\/\/john.pentaidea.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":".NET\/.NET.Core FAQ - John&#039;s Blog","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:\/\/john.pentaidea.com\/?p=1051","og_locale":"en_US","og_type":"article","og_title":".NET\/.NET.Core FAQ - John&#039;s Blog","og_description":"Other&nbsp;","og_url":"https:\/\/john.pentaidea.com\/?p=1051","og_site_name":"John&#039;s Blog","article_published_time":"2019-06-25T07:26:12+00:00","og_image":[{"width":841,"height":184,"url":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/0065cc6b6c97f58bff280f355847d688.png","type":"image\/png"}],"author":"jj","twitter_card":"summary_large_image","twitter_misc":{"Written by":"jj","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/john.pentaidea.com\/?p=1051","url":"https:\/\/john.pentaidea.com\/?p=1051","name":".NET\/.NET.Core FAQ - John&#039;s Blog","isPartOf":{"@id":"https:\/\/john.pentaidea.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/john.pentaidea.com\/?p=1051#primaryimage"},"image":{"@id":"https:\/\/john.pentaidea.com\/?p=1051#primaryimage"},"thumbnailUrl":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/0065cc6b6c97f58bff280f355847d688.png","datePublished":"2019-06-25T07:26:12+00:00","dateModified":"2019-06-25T07:26:12+00:00","author":{"@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f"},"breadcrumb":{"@id":"https:\/\/john.pentaidea.com\/?p=1051#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/john.pentaidea.com\/?p=1051"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/john.pentaidea.com\/?p=1051#primaryimage","url":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/0065cc6b6c97f58bff280f355847d688.png","contentUrl":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/0065cc6b6c97f58bff280f355847d688.png","width":841,"height":184},{"@type":"BreadcrumbList","@id":"https:\/\/john.pentaidea.com\/?p=1051#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/john.pentaidea.com\/"},{"@type":"ListItem","position":2,"name":".NET\/.NET.Core FAQ"}]},{"@type":"WebSite","@id":"https:\/\/john.pentaidea.com\/#website","url":"https:\/\/john.pentaidea.com\/","name":"John's Blog","description":"\u4e16\u754c\u56e0\u601d\u7dd2\u800c\u8907\u96dc, \u4eba\u56e0\u5922\u60f3\u800c\u5049\u5927","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/john.pentaidea.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f","name":"jj","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g","caption":"jj"},"sameAs":["https:\/\/john.pentaidea.com"],"url":"https:\/\/john.pentaidea.com\/?author=1"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/0065cc6b6c97f58bff280f355847d688.png","_links":{"self":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts\/1051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1051"}],"version-history":[{"count":0,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts\/1051\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/media\/1254"}],"wp:attachment":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}