Upgrading VS2015 to asp.net 5 beta7 I get Can't load file or assembly 'dnx.clr.managed' or one of its dependencies

I updated DNX using the instructions https://github.com/aspnet/Home I also downloaded DotNetVersionManager-x64.msi for visual studio 2015, but when I create a new project and launch the website, I get the following error:

Could not load file or assembly 'dnx.clr.managed' or one of its dependencies. The system cannot find the file specified. 

When I try to start a website from the dnx command line, I get the following

C: \ code> dnx web stem.InvalidOperationException: no service for the type "Microsoft.Framework.Runtime.IApplicationEnvironment" has been reg killed. at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService [T] (provider IServiceProvider)

in Microsoft.AspNet.Hosting.Program.Main (String [] args) - The end of the stack trace from the previous place where the exception was thrown --- in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () in Microsoft.Dnx.Runtime. Common.EntryPointExecutor.Execute (assembly assembly, string [] args, IServiceProvider ovider service) in Microsoft.Dnx.ApplicationHost.Program.ExecuteMain (DefaultHost host, String applicationName, String [] args) in Microsoft.Dnx.ApplicationHost.Program.Main (String [] args) - The end of the stack trace from the previous place where the exception was thrown --- in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () in Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute (assembly assembly, line [] args, the IServiceProvider ovider service) in Microsoft.Dnx.Host.Bootstrapper.RunAsync (List` 1 args, IRuntimeEnvironment env,FrameworkName targetFramework) in Microsoft.Dnx.Host.RuntimeBootstrapper.Execute (String [] args, FrameworkName targetFramework) in Microsoft.Dnx.Host.RuntimeBootstrapper.ExecuteAsync (String [] args, FrameworkName targetFramework)

+4
2

, 7 dnx.clr.managed.dll ( ). :

, global.json 7, node global.json:

"sdk": {
        "version": "1.0.0-beta7",
        "runtime": "clr",
        "architecture": "x86"
    }

dnx.clr.managed.dll( ), project.json( cs.proj vb.proj), dnx, :

"dependencies": {
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta5",
    "Microsoft.AspNet.Server.WebListener": "1.0.0-beta5"
  },

:

"dependencies": {
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta7",
    "Microsoft.AspNet.Server.WebListener": "1.0.0-beta7"
  },

. - (CMD) ProjectName/src/ProjectName/( project.json)

dnu restore

. , , .

PS: x64, / (?) 64- . , .

+4

-5 -8 IIS Express. , wwwroot\web.config:

<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />

, -, , , .

+1

Source: https://habr.com/ru/post/1605859/


All Articles