Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Could not load type 'Microsoft.Dnx.Host.Clr.EntryPoint' on running project on IIS server. #2834

@4nonym0us

Description

@4nonym0us

The following issue occurs when I try to run the project in VS2015 (OS is Win10, latest dnx tools and .NET framework installed). I've discovered the problem 2-3 days ago. Disregarding this error, I can successfully run my application via dnx web command. Any thoughts?
StackTrace is below and screenshot is attached as well.

[TypeLoadException: Could not load type 'Microsoft.Dnx.Host.Clr.EntryPoint' from assembly 'Microsoft.Dnx.Host.Clr, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.]
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +303

[HttpException (0x80004005): Could not load type 'Microsoft.Dnx.Host.Clr.EntryPoint' from assembly 'Microsoft.Dnx.Host.Clr, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9924184
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261

image
Here is my project.json:

{
  "userSecretsId": "***removed***",
  "webroot": "wwwroot",
  "version": "1.0.0-*",

  "dependencies": {
    "AutoMapper": "4.0.0-*",
    "MyProject.Core": "1.0.0-*",
    "EntityFramework.Commands": "7.0.0-beta8-*",
    "EntityFramework.Core": "7.0.0-beta8-*",
    "EntityFramework.Relational": "7.0.0-beta8-*",
    "EntityFramework.SqlServer": "7.0.0-beta8-*",
    "Microsoft.AspNet.Authentication.Cookies": "1.0.0-beta8-*",
    "Microsoft.AspNet.Diagnostics": "1.0.0-beta8-*",
    "Microsoft.AspNet.Diagnostics.Entity": "7.0.0-beta8-*",
    "Microsoft.AspNet.Hosting": "1.0.0-beta8-*",
    "Microsoft.AspNet.Identity": "3.0.0-beta8-*",
    "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta8-*",
    "Microsoft.AspNet.Mvc": "6.0.0-beta8-*",
    "Microsoft.AspNet.Mvc.Core": "6.0.0-beta8-*",
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta8-*",
    "Microsoft.AspNet.Server.Kestrel": "1.0.0-beta8-*",
    "Microsoft.AspNet.Server.WebListener": "1.0.0-beta8-*",
    "Microsoft.AspNet.StaticFiles": "1.0.0-beta8-*",
    "Microsoft.Dnx.Runtime.Abstractions": "1.0.0-beta8-*",
    "Microsoft.Dnx.Tooling": "1.0.0-beta8-*",
    "Microsoft.Dnx.Host.Clr": "1.0.0-beta8-*",
    "Microsoft.Framework.CodeGenerators.Mvc": "1.0.0-beta8-*",
    "Microsoft.Framework.Configuration": "1.0.0-beta8-*",
    "Microsoft.Framework.Configuration.Json": "1.0.0-beta8-*",
    "Microsoft.Framework.Logging.Console": "1.0.0-beta8-*"
  },
  "scripts": {
    "postrestore": [ "npm install" ],
    "prepare": [ "grunt dev" ]
  },
  "commands": {
    "ef": "EntityFramework.Commands",
    "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5000",
    "kestrel": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:5004"
  },

  "frameworks": {
    "dnx451": { }
  },

  "publishExclude": [
    "node_modules",
    "bower_components",
    "grunt",
    "**.xproj",
    "**.user",
    "**.vspscc"
  ],
  "exclude": [
    "wwwroot",
    "node_modules",
    "bower_components",
    "grunt"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions