Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Samples don't run in VS 2015 RC #251

Closed
StenPetrov opened this issue May 12, 2015 · 13 comments
Closed

Samples don't run in VS 2015 RC #251

StenPetrov opened this issue May 12, 2015 · 13 comments

Comments

@StenPetrov
Copy link

I downloaded this sample and ran it in VS 2015 RC. When the browser opens up there's an error message there:

Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: No service for type 'Microsoft.Framework.Runtime.ILibraryManager' has been registered.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[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.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9940016
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261

@Tratcher
Copy link
Member

It sounds like your version of dnx is out of sync with your version of Microsoft.AspNet.Server.IIS. Verify that everything is beta4 without any build numbers attached. Check your project.json and also run dnvm list from the command line.

@Tratcher
Copy link
Member

@suhasj

@suhasj
Copy link
Contributor

suhasj commented May 12, 2015

@StenPetrov I have updated the master branch. Can you clone the repo again and try ?

@StenPetrov
Copy link
Author

I tried again with latest code, still the same error.

dnvm list returns

Active Version Runtime Architecture Location Alias


   1.0.0-beta4 clr     x64          C:\Users\Sten\.dnx\runtimes
   1.0.0-beta4 clr     x86          C:\Users\Sten\.dnx\runtimes default
   1.0.0-beta4 coreclr x64          C:\Users\Sten\.dnx\runtimes
   1.0.0-beta4 coreclr x86          C:\Users\Sten\.dnx\runtimes

@suhasj
Copy link
Contributor

suhasj commented May 13, 2015

I am a still stumped since I was able to run all the four samples in this repo. My steps

  • Clone latest master branch
  • Open in VS 2015 RC
  • Press F5

I was able to run them successfully. What branch are you cloning ? Can do a clean clone and try ?

@StenPetrov
Copy link
Author

I'm downloading the zip from github, running it in vs2015 rc

Sent from my iPhone

On May 13, 2015, at 11:54 AM, Suhas Joshi notifications@github.com wrote:

I am a still stumped since I was able to run all the four samples in this repo. My steps

Clone latest master branch
Open in VS 2015 RC
Press F5
I was able to run them successfully. What branch are you cloning ? Can do a clean clone and try ?


Reply to this email directly or view it on GitHub.

@egorpavlikhin
Copy link

I get the same exception just after installing VS 2015 RC, upgrade dnvm and creating a new empty ASP .Net 5 MVC project.

@suhasj
Copy link
Contributor

suhasj commented May 21, 2015

@egorpavlikhin is dnvm upgrade installing beta5 dnx and the projects still reference beta4 packages ? In that case this error is expected. You can use beta5 packages for the project and it should work fine

@suhasj
Copy link
Contributor

suhasj commented May 21, 2015

@StenPetrov : Downloading the zip and running it worked for me. One question, when you do dnvm list, is there an asterisk (*) next to 1.0.0-beta4 ?

@sakopov
Copy link

sakopov commented May 22, 2015

I am also having the same issue running solution downloaded as zip. dnvm list looks like that of @StenPetrov.

@egorpavlikhin
Copy link

@suhasj steps 1-6 here do the trick aspnet/dnx#1912 (comment)

@jnnwnk
Copy link

jnnwnk commented May 26, 2015

I cannot run the samples either, running SKD beta4.
But <dnvm upgrade> is not working. Seems to be the same issue as aspnet/dnvm/issues/190 although this is marked as closed.

Edit: Got it running with upgrading dnx like described here: aspnet/dnvm/issues/259

@Eilon
Copy link
Member

Eilon commented Jun 11, 2015

Hi everyone, we're still unable to reproduce this. Please make sure you're matching the right dnx with the build/branch you're using.

@Eilon Eilon closed this as completed Jun 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants