Mvc icon indicating copy to clipboard operation
Mvc copied to clipboard

No service for type 'Microsoft.Framework.Runtime.ILibraryManager' has been registered

Open rahuldhariya01 opened this issue 11 years ago • 17 comments

I get this issue when i run mycode base with Brand new visual studio 2015 enterprise. it was working fine. i guess it is some dnx update issue. can anyone help ?

Error : No service for type 'Microsoft.Framework.Runtime.ILibraryManager' has been registered

rahuldhariya01 avatar Aug 06 '15 12:08 rahuldhariya01

This is almost certainly an issue with mismatched package versions.

Please double check that your version of DNX is compatible. eg. beta-6 DNX only works with beta-6 MVC. You can see this by opening the project's properties in VS.

rynowak avatar Aug 06 '15 14:08 rynowak

@rynowak , I have mvc 6.0.0-beta4 in project json and DNX SDK is 1.0.0-beta5. If i change DNX then i am unable to build my project solutions. can you please suggest anything this kind of very urgent.

This solutions was working fine with visual studio 2015 RC but it is not working with visual studio 2015 enterprise.

rahuldhariya01 avatar Aug 06 '15 15:08 rahuldhariya01

/cc @davidfowl @BillHiebert - I'm not sure that beta-4 is supported in the final release of VS.

rynowak avatar Aug 06 '15 16:08 rynowak

Where is the error coming from, can you include a callstack?

rynowak avatar Aug 06 '15 16:08 rynowak

Attached is the screenshot and call stack.

@rynowak , this is runtime error, i dont have complete call stack. this is what i am seeing at screen,

[InvalidOperationException: No service for type 'Microsoft.Framework.Runtime.ILibraryManager' has been registered.] System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +303

[HttpException (0x80004005): No service for type 'Microsoft.Framework.Runtime.ILibraryManager' has been registered.]

error System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9924184 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261

rahuldhariya01 avatar Aug 06 '15 16:08 rahuldhariya01

@Tratcher

rynowak avatar Aug 06 '15 17:08 rynowak

This is a known breaking change. We're just waiting for our build to produce the new packages (later today). In the meantime you can use WebListener or Kestrel.

Tratcher avatar Aug 06 '15 17:08 Tratcher

@Tratcher, As you say this could be fix by eod so i can wait for one day, can you be sure that this can be fixed by eod ?

rahuldhariya01 avatar Aug 06 '15 17:08 rahuldhariya01

It is already fixed, the packages just aren't on the vnext feed yet. ETA is unconfirmed. You can get the packages from https://www.myget.org/F/aspnetvolatile/api/v2 if you're in a hurry, but I don't recommend using this feed normally as it's highly unstable.

Tratcher avatar Aug 06 '15 17:08 Tratcher

Thanks @Tratcher , Yes i am in hurry. Will this package works with azure web app ? How to install this package to solutions ?

What need to be install from myget. ?

rahuldhariya01 avatar Aug 06 '15 17:08 rahuldhariya01

@Tratcher @rynowak any update ? i am really in hurry.

rahuldhariya01 avatar Aug 06 '15 18:08 rahuldhariya01

It's not a package, it's a nuget feed. Add it to your nuget feed settings in VS.

However, if you're in that much of a hurry I recommend going back to the stable beta6 packages on nuget.org.

Tratcher avatar Aug 06 '15 18:08 Tratcher

@Tratcher beta6 package of what ? i have not changed anything. Can you please explain this in details ?

rahuldhariya01 avatar Aug 06 '15 18:08 rahuldhariya01

Ah. Go back to the command line and use dnvm list to make sure that 1.0.0-beta6 is your default and active. Close and re-open VS. Open your global.json file and remove any reference to the SDK version. Then open your project.json files and make sure all of the Microsoft.* packages are beta6.

Tratcher avatar Aug 06 '15 18:08 Tratcher

Thanks @Tratcher , Changed dnvm to latest one and updated project json to latest. Now even if i create new project i see this error , any suggestion ?

Error : Current runtime Target Framework: 'DNX,Version=v4.5 (dnx45)' Type: CLR Architecture: x86 Version: 1.0.0-beta6-12256

rahuldhariya01 avatar Aug 06 '15 20:08 rahuldhariya01

Where do you see this error? Is it an error dialog in VS? Text in the output window?

Note that the version number suggests that VS is not picking up the official beta6 version. Try doing a dnvm upgrade from the command line and then dnvm alias default 1.0.0-beta6.

danroth27 avatar Aug 18 '15 20:08 danroth27

Haven't heard back in a while - closing for now, but let us know if you are still seeing this issue.

danroth27 avatar Aug 27 '15 16:08 danroth27