-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Tried to run "HelloWeb" on Debian and got "Could not load file or assembly 'Microsoft.Framework.ConfigurationModel.IConfiguration" #350
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
After package restore, are the packages restored from myget/vnext or nuget ? |
@suhasj Looks like I'm getting packages from nuget. $ cd ~/Desktop/Home/samples/HelloMvc/
$ source kvm.sh
$ kpm restore
Restoring packages for /Users/dstaley/Desktop/Home/samples/HelloMvc/project.json
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Reflection'.
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding'.
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Xml.ReaderWriter'.
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Globalization'.
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Threading.Tasks'.
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Runtime'.
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='System.IO'.
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Collections'.
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='System.ObjectModel'.
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='System.ObjectModel' 1053ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Runtime' 1112ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Xml.ReaderWriter' 1465ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Globalization' 1967ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Reflection' 8164ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='System.IO' 8504ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding' 9052ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Collections' 9472ms
OK https://www.nuget.org/api/v2/FindPackagesById()?Id='System.Threading.Tasks' 15579ms
Resolving complete, 23368ms elapsed
Restore complete, 23372ms elapsed
$ k kestrel
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Framework.ConfigurationModel.IConfiguration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'Microsoft.Framework.ConfigurationModel.IConfiguration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 |
@suhasj the samples on Home have been broken for 2 releases now 😄 |
I have the same versions (mint instead of debian), but can't get restore to work:
|
@MattKunze Looks like you need to update your mono build |
Yeah, just did. I'll uninstall and reinstall and see if that helps |
|
3.12, same as @brewerof
|
nm, |
I'm seeing the same behaviour as brewerof on Ubuntu 14.04. Restoring ~/.k/packages solves the problem, so I'm guessing something on a nuget package broke. |
I tried solution from here: #310, that @andrebaltieri suggested. Added NuGet.config to the HelloWeb root and changed project.json, but problem still remains |
The samples point to beta1, change the project.json to beta3 |
@brewerof I think people are confusing packages and versions... If you're running beta-* from dev branch, you should point to the correct nuget package, by including the NuGet.config on your app root folder or change the main config file, poiting to the correct dev package source. If you're running beta-* from master branch, than you just use the default package source. In additional, if you are running beta-x (Run "kvm list" to see yout current version), than your project.json should point to beta-x too! |
Replacing |
@andrebaltieri, kvm list gave me Active Version Runtime Location Alias
but beta-value in project.json must point to ver.3 As I understood I should install kre beta3 also? |
@brewerof Because things are still churning quite a bit it's generally a good idea to run the same version of everything. Once things have stabilized a bit more it should be possible to upgrade your KRE without breaking everything, but we just aren't there yet. |
- aspnet/Testing#248 - xUnit no longer supports .NET 4.5.1 - build tests for desktop .NET only on Windows Address existing issues - work around test failures, including #350 - skip tests mentioned in #350 - reorder xunit and xunit.runner.visualstudio; setup fails for .NET Core otherwise - skip all tests using LocalDB on Linux and OSX - `[FrameworkSkipCondition(RuntimeFrameworks.Mono)]` now redundant - correct AppVeyor image nits: - let VS add the test `<Service>` - use `[ConditionalFact]` when there's no test data
I tried to run demo app "HelloWeb" on Debian, but got
"System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Framework.ConfigurationModel.IConfiguration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'Microsoft.Framework.ConfigurationModel.IConfiguration, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 "
I already trying to reinstall KVM and demo examples, ConsoleApp working fine, but HelloWeb and HelloMvc throws this exception.
mono --version
Mono JIT compiler version 3.12.0 (tarball Sat Feb 7 19:12:57 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
kvm list
Active Version Runtime Location Alias
1.0.0-beta4-11169 mono ~/.k/runtimes default
The text was updated successfully, but these errors were encountered: