Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在azure上使用framework 4.6.1执行dotnet核心站点失败_C#_Azure_Asp.net Mvc 5_Azure Web App Service_.net Core - Fatal编程技术网

C# 在azure上使用framework 4.6.1执行dotnet核心站点失败

C# 在azure上使用framework 4.6.1执行dotnet核心站点失败,c#,azure,asp.net-mvc-5,azure-web-app-service,.net-core,C#,Azure,Asp.net Mvc 5,Azure Web App Service,.net Core,我在输出日志文件中得到这个错误。 project.json文件上还有一条警告,指出system.runtime的版本应大于4.3.0,但构建版本的版本为4.0.20.0 无法加载文件或程序集的System.Runtime` 我已经使用nuget安装了system.runtime软件包system.runtime。 我的project.jsonframework部分如下所示 "frameworks": { "net461": { "dependencies": {

我在输出日志文件中得到这个错误。 project.json文件上还有一条警告,指出system.runtime的版本应大于4.3.0,但构建版本的版本为4.0.20.0

无法加载文件或程序集的System.Runtime`

我已经使用nuget安装了system.runtime软件包system.runtime。

我的
project.json
framework部分如下所示

  "frameworks": {
    "net461": {
      "dependencies": {
        "Ignite.Data": {
          "target": "project"
        }
      },
      "frameworkAssemblies": {
        "System.Runtime.Serialization": "4.0.0.0"
      }
    }
  },
Azure上的stdout日志文件(通过FTP获得)读取

Application startup exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at Microsoft.AspNetCore.Mvc.Internal.DefaultAssemblyPartDiscoveryProvider.DiscoverAssemblyParts(String entryPointAssemblyName)
   at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.GetApplicationPartManager(IServiceCollection services)
   at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection services)
   at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddMvc(IServiceCollection services)
   at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddMvc(IServiceCollection services, Action`1 setupAction)
   at Ignite.Startup.ConfigureServices(IServiceCollection services) in C:\Projects\Github\Ignite\Ignite.Web\Startup.cs:line 83
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Hosting environment: Production
Content root path: D:\home\site\wwwroot
Now listening on: http://localhost:1942
Application started. Press Ctrl+C to shut down.
Azure提供了这种奇妙的描述性帮助:-)


您遇到了一个已知问题:。我与.NET专家进行了交谈,他们的回答是这将在1.1.1中得到解决(这还不算太远)。

这看起来可能是另一个问题-该问题引用了
system.NET.http
,而我的问题是
system.runtime
我不确定,它可能是同一根问题的不同风格。1.1.1应该在周二出来,所以如果你能等到那时,我们会解决的。谢谢,今天确认了这一点,1.1.1解决了问题。要让所有的dotnet工具齐头并进需要做大量的工作,但它工作得非常好,而且EF6(哇!)在azure sql v12Great上工作正常,很高兴听到这个消息!