{"id":4549,"date":"2020-10-08T21:31:43","date_gmt":"2020-10-08T12:31:43","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=4549"},"modified":"2020-10-08T21:31:45","modified_gmt":"2020-10-08T12:31:45","slug":"post-4549","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2020\/10\/08\/post-4549\/","title":{"rendered":"\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u30a2\u30d7\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3089 \u201dHRESULT \u304b\u3089\u306e\u4f8b\u5916:0x801310\u201c \u304c\u767a\u751f\u3057\u305f"},"content":{"rendered":"\n<p>ASP.NET\uff08MVC5\uff09\u3067\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u3092\u5909\u66f4\u3057\u3066\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u3002\u30c7\u30d7\u30ed\u30a4\u5f8c\u3001Invoke-WebRequest\u3067\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3068\u3053\u308d\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3002\u30a8\u30e9\u30fc\u5185\u5bb9\u306f\u4e0b\u8a18\u3002<\/p>\n\n\n\n<pre>\nInvoke-WebRequest : '\/API' \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u30b5\u30fc\u30d0\u30fc \u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\n\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30a2\u30bb\u30f3\u30d6\u30ea 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicK\neyToken=31bf3856ad364e35'\u3001\u307e\u305f\u306f\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e 1 \u3064\u304c\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u898b\u3064\u304b\u3063\u305f\u30a2\u30bb\u30f3\u30d6\u30ea\u306e\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u5b9a\u7fa9\u306f\u30a2\n\u30bb\u30f3\u30d6\u30ea\u53c2\u7167\u306b\u4e00\u81f4\u3057\u307e\u305b\u3093\u3002 (HRESULT \u304b\u3089\u306e\u4f8b\u5916:0x80131040)\n\u8aac\u660e: \u73fe\u5728\u306e Web \u8981\u6c42\u3092\u5b9f\u884c\u4e2d\u306b\u3001\u30cf\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u30a8\u30e9\u30fc\u306b\u95a2\u3059\u308b\u8a73\u7d30\u304a\u3088\u3073\u4f8b\u5916\u306e\u767a\u751f\u5834\u6240\u306b\u3064\u3044\u3066\n\u306f\u3001\u30b9\u30bf\u30c3\u30af \u30c8\u30ec\u30fc\u30b9\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\u4f8b\u5916\u306e\u8a73\u7d30: System.IO.FileLoadException: \u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30a2\u30bb\u30f3\u30d6\u30ea 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform,\nVersion=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'\u3001\u307e\u305f\u306f\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e 1 \u3064\u304c\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u898b\n\u3064\u304b\u3063\u305f\u30a2\u30bb\u30f3\u30d6\u30ea\u306e\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u5b9a\u7fa9\u306f\u30a2\u30bb\u30f3\u30d6\u30ea\u53c2\u7167\u306b\u4e00\u81f4\u3057\u307e\u305b\u3093\u3002 (HRESULT \u304b\u3089\u306e\u4f8b\u5916:0x80131040)\n\u30bd\u30fc\u30b9 \u30a8\u30e9\u30fc:\n\u73fe\u5728\u306e Web \u8981\u6c42\u306e\u5b9f\u884c\u4e2d\u306b\u30cf\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u4f8b\u5916\u304c\u751f\u6210\u3055\u308c\u307e\u3057\u305f\u3002\u969c\u5bb3\u306e\u539f\u56e0\u304a\u3088\u3073\u767a\u751f\u5834\u6240\u306b\u95a2\u3059\u308b\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u3001\u4e0b\u306e\n\u4f8b\u5916\u30b9\u30bf\u30c3\u30af \u30c8\u30ec\u30fc\u30b9\u3092\u4f7f\u3063\u3066\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\n\u30a2\u30bb\u30f3\u30d6\u30ea\u8aad\u307f\u8fbc\u307f\u30c8\u30ec\u30fc\u30b9: \u4ee5\u4e0b\u306e\u60c5\u5831\u306f\u3001\u30a2\u30bb\u30f3\u30d6\u30ea 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1\n.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' \u3092\u8aad\u307f\u8fbc\u3081\u306a\u304b\u3063\u305f\u539f\u56e0\u3092\u8abf\u3079\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\n\u8b66\u544a: \u30a2\u30bb\u30f3\u30d6\u30ea \u30d0\u30a4\u30f3\u30c9\u306e\u30ed\u30b0\u8a18\u9332\u304c\u30aa\u30d5\u306b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\n\u30a2\u30bb\u30f3\u30d6\u30ea \u30d0\u30a4\u30f3\u30c9\u306e\u30a8\u30e9\u30fc \u30ed\u30b0\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001\u30ec\u30b8\u30b9\u30c8\u30ea\u5024 [HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) \u3092 1\n\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\u6ce8\u610f: \u30a2\u30bb\u30f3\u30d6\u30ea \u30d0\u30a4\u30f3\u30c9\u306e\u30a8\u30e9\u30fc \u30ed\u30b0\u306b\u95a2\u9023\u3059\u308b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9 \u30da\u30ca\u30eb\u30c6\u30a3\u304c\u3042\u308a\u307e\u3059\u3002\n\u3053\u306e\u6a5f\u80fd\u3092\u30aa\u30d5\u306b\u3059\u308b\u306b\u306f\u3001\u30ec\u30b8\u30b9\u30c8\u30ea\u5024 [HKLM\\Software\\Microsoft\\Fusion!EnableLog] \u3092\u524a\u9664\u3057\u307e\u3059\u3002\n\u30b9\u30bf\u30c3\u30af \u30c8\u30ec\u30fc\u30b9:\n[FileLoadException: \u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30a2\u30bb\u30f3\u30d6\u30ea 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Cult\nure=neutral, PublicKeyToken=31bf3856ad364e35'\u3001\u307e\u305f\u306f\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e 1 \u3064\u304c\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u898b\u3064\u304b\u3063\u305f\u30a2\u30bb\u30f3\u30d6\u30ea\u306e\n\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u5b9a\u7fa9\u306f\u30a2\u30bb\u30f3\u30d6\u30ea\u53c2\u7167\u306b\u4e00\u81f4\u3057\u307e\u305b\u3093\u3002 (HRESULT \u304b\u3089\u306e\u4f8b\u5916:0x80131040)]\n   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly\n, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0\n   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly\n, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +96\n   System.Type.GetType(String typeName) +62\n   System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid() +15\n   System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps) +2406\n   System.Web.Configuration.CompilationSection.get_RecompilationHash() +110\n   System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDateInternal(Int64 cachedHash) +551\n   System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(Int64 cachedHash) +59\n   System.Web.Compilation.BuildManager.ExecutePreAppStart() +155\n   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMap\nPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception ap\npDomainCreationException) +746\n[HttpException (0x80004005): \u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30a2\u30bb\u30f3\u30d6\u30ea 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.\n1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'\u3001\u307e\u305f\u306f\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e 1 \u3064\u304c\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u898b\u3064\u304b\u3063\u305f\u30a2\u30bb\n\u30f3\u30d6\u30ea\u306e\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u5b9a\u7fa9\u306f\u30a2\u30bb\u30f3\u30d6\u30ea\u53c2\u7167\u306b\u4e00\u81f4\u3057\u307e\u305b\u3093\u3002 (HRESULT \u304b\u3089\u306e\u4f8b\u5916:0x80131040)]\n   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552\n   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122\n   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +737\n\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831: Microsoft .NET Framework \u30d0\u30fc\u30b8\u30e7\u30f3:4.0.30319; ASP.NET \u30d0\u30fc\u30b8\u30e7\u30f3:4.8.4075.0\n\u767a\u751f\u5834\u6240 \u884c:1 \u6587\u5b57:1\n+ Invoke-WebRequest http:\/\/xxxx:8080\/api\/xxxxCopy\/\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest]\u3001WebExce\n    ption\n    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand\n<\/pre>\n\n\n\n<p>Visual\u00a0Studio\u3067\u958b\u767a\u3057\u3066\u30c6\u30b9\u30c8\u3057\u3066\u3044\u308b\u3068\u4f55\u3082\u554f\u984c\u304c\u306a\u304b\u3063\u305f\u3002\u539f\u56e0\u306f\u3001Web.config\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3053\u3068\u3002Visual\u00a0Studio\u306e\u74b0\u5883\u3084.Net\u00a0Framework\u00a04.8\u306e\u74b0\u5883\u306f\u3001\u6bce\u6708\u66f4\u65b0\u3055\u308c\u3066\u3044\u304f\u3002\u305d\u306e\u74b0\u5883\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u3068\u304d\u306b\u3001\u3082\u3068\u3082\u3068\u306eWeb.config\u306b\u8a18\u8f09\u3055\u308c\u305f\u60c5\u5831\u3068\u65b0\u3057\u304f\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u3082\u306e\u306e\u60c5\u5831\u304c\u7570\u306a\u3063\u305f\u3002\u305d\u306e\u305f\u3081\u306b\u3001\u5b9f\u884c\u6642\u306b\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002\u89e3\u6c7a\u7b56\u3068\u3057\u3066\u306f\u3001\u65b0\u3057\u304f\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u65b9\u306eWeb.config\u3092\u4f7f\u3046\u3053\u3068\u3002\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308c\u3070\u5909\u66f4\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ASP.NET\uff08MVC5\uff09\u3067\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u3092\u5909\u66f4\u3057\u3066\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u3002\u30c7\u30d7\u30ed\u30a4\u5f8c\u3001Invoke-WebRequest\u3067\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3068\u3053\u308d\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3002\u30a8\u30e9\u30fc\u5185\u5bb9\u306f\u4e0b\u8a18\u3002 Invoke-WebReques [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[181,13],"class_list":["post-4549","post","type-post","status-publish","format-standard","hentry","category-tech-memo","tag-asp-net-mvc5","tag-powershell"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/4549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=4549"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/4549\/revisions"}],"predecessor-version":[{"id":4550,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/4549\/revisions\/4550"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=4549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=4549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=4549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}