I am currently trying to upgrade many solutions that use a beta version of System.Net.Http (-v 2.0.20126.16343) to version 2.0.20710.0.
I also have a reference to System.Json -v 4.0.20126.16343, however, when I reload the website in a browser I get the error.
Could not load file or assembly 'System.Json, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I have checked and the files are in the packages folder, and the bin folder is being populated.
Anyone have any ideas?
The issue here was actually in the cproj file. It just needed to have the reference to the dll updated to the new version number.
Related
I'm running a .net application that requires a reference to libdl.so
System.DllNotFoundException : Unable to load shared library 'libdl.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(liblibdl.so, 0x0001): tried: 'liblibdl.so' (no such file), '/usr/local/lib/liblibdl.so' (no such file), '/usr/lib/liblibdl.so' (no such file), '/Users/Amplicity/Documents/liblibdl.so' (no such file)
After some light reading, i found that libdl.so is the linux equivalent of libdl.dylib, I then tried to find libdl.dylib on my machine.
➜ lib locate libdl.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/tvOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libdl.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libdl.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libdl.dylib
There are only tvos, watchos, and ios signed libdl.dylib's available. Some more light reading reveals that somewhere around xcode 7, .dylib files were replaced with .tbd, which is a text file that references dylibs elsewhere.
➜ lib locate libdl.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/lib/libdl.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/usr/lib/libdl.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libdl.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/usr/lib/libdl.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/usr/lib/libdl.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libdl.tbd
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libdl.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib/libdl.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/lib/libdl.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib/libdl.tbd
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libdl.tbd
I attempted to symlink the .tbd to the .so that my .net application expects, but .net complained that it was net a mach-o file.
I then attempted to symlink the tvos .dylib to the .so, and got a different error stating that it needed to be signed for macos.
How can I find/conjure libdl.dylib on macOS12, so that I may directly reference it in my application?
I suppose you cannot rebuild that application, cause currently libdl.so` would not be requested as it is not deployed anymore as standalone.
Try to make symlink of libdl.so to libc.so (or whichever version is installed with your .net platform package, libc.so.x)
When building the Windows C++ version of quantlib 1.9.1, I get this error of missing payoffs.hpp. When I browse to the directories, I see payoffs.cpp, but not payoffs.hpp:
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'ql/instruments/payoffs.hpp': No such file or directory FittedBondCurve c:\users\administrator\google drive\quantlib-1.9.1\ql\cashflows\conundrumpricer.hpp 27
I also get this for #include <ql/instruments/swap.hpp> [and possibly others]. I am able to build the windows quantlib library ok. Just not the examples.
I just checked the QuantLib 1.9.1 release available from the project downloads (did you get your version from there?) and the files you're looking for are contained in the release zip and tarball. Also, it's pretty weird that you could compile the library without them, so I'd double check if they're there. If they really aren't—well, hard to know how they got displaced; anyway, you can download the release again and replace them. If that doesn't fix the problem (or if they're already there after all), it's possible that you have to fix the include path for the example you're trying to compile. Does it include the QuantLib directory?
I am trying to work with libssh2 libraries in VS2010. I am getting a weird error of LNK1104: cannot open file 'libssh2d.lib'. I have clearly included the libraries in the Project Properties->Linker->General->Additional Library Directories.
There are couple of other additional libraries with the one above, and they get included without an issue except this.
Also the Linker->Input->Additional Dependencies has that file name 'libssh2d.lib' specified in it.
Any inputs as to why am I still seeing that error? Thanks.
I just needed to add "libssh2d.lib":
Linker->Input->Additional Dependencies.
Also "Debug_lib" was added in:
Linker->General->Additional Library Directories
This resolved the issue.
I'm working with NopCommerce 2.60, and suddenly I'm getting this error when I run the project
NuGet Package restore failed for project Nop.Plugin.ExternalAuth.Facebook: Unable to find version '2.0.21' of package 'LinqToFacebook'..
I tried to restore the package by NuGet but got the same error and the wired thing is that I cannot find even the reference to LinqToFacebook in project "Reference", also search for the LinqToFacebook.dll in package folder but is not there.
Any help would be great
Best regards.
Find the package.config inside Facebook Plugin and remove or comment the reference to LinqToFacebook
that solved the error thwon by Visual Studio
I'm getting the same error, and I'm trying to upgrade version 2.65 of nopCommerce to version 2.7. We also have version 2.65 deployed on a public server, and I don't have any LinqToFacebook.dll in our bin folder. I can find no evidence of any LinqToFacebook NuGet package either, so I'm thinking that this .dll was once required by older versions of NopCommerce and is no longer available. My solution is to comment out the line in the package.config file and move on. Later versions of nopCommerce do not require this .dll.
I found cool article on Creating cross platform GUI's with IronRuby where someone re-created the [Shoes](http://en.wikipedia.org/wiki/Shoes_(GUI_toolkit) DSL by _why the lucky stiff in IronRuby.
Awesome right!
So, I downloaded the IronRuby binaries and the code from the article and ran the following command:
c:\IronRuby\bin\ir hello_world.rb
But I get the following error:
:0:in `require': no such file to load -- Microsoft.Scripting, Version=1.0.0.2000 Culture=neutral, PublicKeyToken=null (LoadError)
from ./shoes.rb:5
from hello_world.rb:1
from :0:in `require'
How do I get these sample apps to run?
I was able to make the 4 demos examples work after removing the following 5 lines from shoes.rb:
require 'Microsoft.Scripting, Version=1.0.0.2000, Culture=neutral, PublicKeyToken=null'
require 'IronRuby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
include Microsoft::Scripting::Hosting
include Ruby::Runtime
include Ruby
These lines are not needed.
I suspect the version of MS.Scripting that it's asking for doesn't match the version you've got, that's a pretty common problem. Maybe check the version #s?
To check the version number, just right-click on Microsoft.Scripting.dll and you'll see the version #.