-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Running HelloWeb on OS X 10.10.2: Could not load file or assembly 'Microsoft.Framework.ConfigurationModel.IConfiguration' #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I happen to have the very same problem with beta3-11021 on OSX Yosemite. Updating project.json to use vX.Y.Z-* instead of v.X.Y.Z-betaSTH doesn't change anything. Trying to install an older beta via
Mono:
|
I have the same problem and I tried the same options but the problem still exists. |
you are using KRE beta3 with beta1 bits of packages. Can you restore the packages from the myget/aspnetrelease feed which will restore beta3 packages and then see if the error reproduces ? |
The same problem |
As shown on main page... Create a NuGet.config on the root of your application. kpm try to read it before go to the root config. <configuration>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext" />
<add key="NuGet.org" value="https://www.myget.org/F/aspnetvnext" />
</packageSources>
<packageSourceCredentials>
<AspNetVNext>
<add key="Username" value="aspnetreadonly" />
<add key="ClearTextPassword" value="4d8a2d9c-7b80-4162-9978-47e918c9658c" />
</AspNetVNext>
</packageSourceCredentials>
</configuration> |
Sorry guys, I typed the myget URL twice, here is the real config file. <configuration>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetrelease/" />
<add key="NuGet.org" value="https://nuget.org/api/v2/" />
</packageSources>
<packageSourceCredentials>
<AspNetVNext>
<add key="Username" value="aspnetreadonly" />
<add key="ClearTextPassword" value="4d8a2d9c-7b80-4162-9978-47e918c9658c" />
</AspNetVNext>
</packageSourceCredentials>
</configuration> Also, check on yout project.json for your dependencies... If you "dependencies": {
"Microsoft.AspNet.Server.IIS":"1.0.0-*",
"Microsoft.AspNet.Mvc": "6.0.0-*",
"Microsoft.AspNet.Hosting": "1.0.0-*",
"Microsoft.AspNet.Security.Cookies": "1.0.0-*",
"Microsoft.AspNet.Server.WebListener": "1.0.0-*",
"Microsoft.AspNet.StaticFiles": "1.0.0-*",
"Kestrel": "1.0.0-*"
}, |
Updating project.json and adding the nuget.config file fixed the problem for me. I can now run the web app. During restore, though, I received:
Trace below:
|
I guess the problem is the following: Currently in the aspnet/Home/Samples/HelloWeb/project.json (master) all dependencies are referencing 'beta1' but in the aspnet/homebrew-k the referenced version is 'beta3'. So if you at the moment follow the install instructions in the Readme.md for OS X you will end up with a kvm version 'beta3' that is incompatible with the HelloWeb sample. |
I have been able to run my local vNext that way after it was failing to update KVM/KRE:
worked and install KRE/Mono. Now it lists:
I'm now able to run samples from I'm not able to run any other samples - e.g. I'm contributor to @aspnet-generator and all our current examples just don't run at all because of different build problems:
OmniSharp/generator-aspnet#59 (comment) I'm not able to rewrite dependencies in existing projects, that's KPM job. Thanks! |
Same issue, followed the steps from https://www.jeremymorgan.com/tutorials/vnext/how-to-build-c-sharp-on-mac-osx/ I tried newer packages by updating project.json file as below, and same issue
|
Adding @davidfowl and @suhasj after upgrading via home brew I'm getting the same build error as Peter. |
I got it to "kind of" work using
I'm on the latest version of everything but this does not seem to exist anymore so I had to comment it out:
And I've got this error:
Looks like yeoman-generators for aspnet5 are completely out of date. This app is actually working While this is not |
+1. Same issue here. |
Yeoman generators work with
FYI If you have seen errors like
You should delete the following |
@sayedihashimi Looks like they pushed beta3 in the brew script. @anurse the beta3 packages are not in nuget yet but the homebrew script is updated to pull in beta3 xre. Can we revert to beta2 till beta3 is public |
That's because it seems like things were updated inconsistently. The home repository master samples seem to be pointing at beta1, homebrew is beta3 etc. |
I'm getting the same issue with dnx on Windows...[UPDATED]. Nevermind, I switched my Nuget feed to nightly (https://www.myget.org/F/aspnetvnext/api/v2/), set my project.json dependences to end in "...1.0.0-beta4-*" (not ...1.0.0-beta4) and it works! :-) |
Facing the same issue with Ubuntu with beta4. |
I just had to change the 1.0.0-beta4 to 1.0.0-beta4-* for one of the dependencies and then restore again. |
@schotime sounds wrong. |
Yes you don't need the -*. |
I did. Either that or the first restore didn't work completely and I needed to run it twice |
Its possible that we just didn't push the packages to nuget.org yet. That happened today. |
I've been trying to run the HelloWeb sample on OS X 10.10.2 but get the exception:
Output from
kpm restore
andk kestrel
#269 Also refers to this error but that was due to running
k web
on OS X.The text was updated successfully, but these errors were encountered: