ASP.NET 5 Empty Application Error IRuntimeEnvironment

I have an ASP.NET 5 Beta 7 application and it uses MVC, but even when I comment on everything that the application causes this error. One fine day, he worked fine and began to repeat this error as follows. Any help or even pointers to where to look will be assigned.

[InvalidOperationException: Failed to resolve IRuntimeEnvironment]
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +303

[HttpException (0x80004005): Failed to resolve IRuntimeEnvironment]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9924184
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261

Thanks!

+4
source share
1 answer

You probably ran the following command and got a new runtime:

dnvm update-self

Run the following command to set the runtime to beta7 (even if it is deprecated now)

dnvm use 1.0.0-beta7 -r clr -arch x86 -p

now you can run

dnu restore
dnu build
dnx web
0
source

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


All Articles