Unable to load package 'Microsoft.Net.Native.SharedLibrary-x64' - visual-studio

I want to update Microsoft.NETCore.UniversalWindowsPlatform but it shows an error
Unable to load package 'Microsoft.Net.Native.SharedLibrary-x64'
If I open the Output tab it shows the following
Restoring packages for D:\Project\Windows 10 Developement\Template\HamburgerMenu\HamburgerMenu\project.json...
GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.universalwindowsplatform/index.json
OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.universalwindowsplatform/index.json 938ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.universalwindowsplatform/5.3.3/microsoft.netcore.universalwindowsplatform.5.3.3.nupkg
OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.universalwindowsplatform/5.3.3/microsoft.netcore.universalwindowsplatform.5.3.3.nupkg 936ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.compiler/index.json
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.compiler/index.json 946ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.compiler/1.6.2/microsoft.net.native.compiler.1.6.2.nupkg
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.compiler/1.6.2/microsoft.net.native.compiler.1.6.2.nupkg 938ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-arm/index.json
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/index.json
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x86/index.json
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-arm/index.json 481ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-arm/1.6.1/microsoft.net.native.sharedlibrary-arm.1.6.1.nupkg
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/index.json 967ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x86/index.json 1438ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x86/1.6.1/microsoft.net.native.sharedlibrary-x86.1.6.1.nupkg
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-arm/1.6.1/microsoft.net.native.sharedlibrary-arm.1.6.1.nupkg 1347ms
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x86/1.6.1/microsoft.net.native.sharedlibrary-x86.1.6.1.nupkg 1161ms
Failed to download package 'Microsoft.Net.Native.SharedLibrary-x64.1.6.1' from 'https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg'.
The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg' has timed out after 100000ms.
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg
Failed to download package 'Microsoft.Net.Native.SharedLibrary-x64.1.6.1' from 'https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg'.
The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg' has timed out after 100000ms.
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg
Failed to download package 'Microsoft.Net.Native.SharedLibrary-x64.1.6.1' from 'https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg'.
The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg' has timed out after 100000ms.
Unable to load package 'Microsoft.Net.Native.SharedLibrary-x64'.
Time Elapsed: 00:27:03.1499426
========== Finished ==========
Solution Tried
Running as Admin
Nuget error install package Microsoft.NETCore.UniversalWindowsPlatform
Using Package Manager Console to update
Update
I have Installed Microsoft.Net.Native.SharedLibrary-x64 manually. Now also it is not working.
Failed to download package 'Microsoft.Net.Native.SharedLibrary-x86.1.6.1' from 'https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x86/1.6.1/microsoft.net.native.sharedlibrary-x86.1.6.1.nupkg'.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
Failed to download package 'Microsoft.Net.Native.SharedLibrary-arm.1.6.1' from 'https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-arm/1.6.1/microsoft.net.native.sharedlibrary-arm.1.6.1.nupkg'.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host

Unable to load package 'Microsoft.Net.Native.SharedLibrary-x64'
It is hard to make sure that whether this issue is related to the internet connection, the project itself or others according to the error log, but I could provide you a workaround for this issue:
Workaround:
Download the package "Microsoft.Net.Native.SharedLibrary-x64" from the nuget.org.
Use nuget add command line add that package to the global package folderC:\Users\username\.nuget\packages:
nuget add packagePath -Source sourcePath
After that, you will notice the package will be added in to that folder:
- Update Microsoft.NETCore.UniversalWindowsPlatform package.

Really strange issue, in my case, I had to change my default network DNS(network card) from 8.8.8.8 to 208.67.222.222.
After that I was able to update Microsoft.NETCore.UniversalWindowsPlatform.

In my case, I was getting this problem when trying to run a UWP (Universal Windows Platform) project, and the solution was to select "Developer mode" in the Windows 10 Settings "For Developers"

Related

Running my revel application on windows 10 fail

I had problem when run my revel app on windows
it create fine but don't run when I try so only get this. any idea?
C:\Desarrollo\Web\webpro>revel run -a webpro
Revel executing: run a Revel application
WARN 05:53:33 harness.go:175: No http.addr specified in the app.conf listening on localhost interface only. This will not allow external access to your application
Changed detected, recompiling
Parsing packages, (may require download if not cached)... Completed
ERROR 05:53:38 build.go:406: Build errors errors="C:\\Users\\Mario\\go\\pkg\\mod\\github.com\\revel\\revel#v1.0.0\\cache\\memcached.go:11:2: no required module provides package github.com/bradfitz/gomemcache/memcache; to add it:\n\tgo get github.com/bradfitz/gomemcache/memcache\nC:\\Users\\Mario\\go\\pkg\\mod\\github.com\\revel\\revel#v1.0.0\\cache\\redis.go:10:2: no required module provides package github.com/garyburd/redigo/redis; to add it:\n\tgo get github.com/garyburd/redigo/redis\nC:\\Users\\Mario\\go\\pkg\\mod\\github.com\\revel\\revel#v1.0.0\\cache\\inmemory.go:12:2: no required module provides package github.com/patrickmn/go-cache; to add it:\n\tgo get github.com/patrickmn/go-cache\n"
C:\Users\Mario\go\src\webpro\C:\Users\Mario\go\pkg\mod\github.com\revel\revel#v1.0.0\cache\memcached.go:11
WARN 05:53:38 build.go:420: Could not find in GO path file=C:\\Users\\Mario\\go\\pkg\\mod\\github.com\\revel\\revel#v1.0.0\\cache\\memcached.go:11
ERROR 05:53:38 harness.go:239: Build detected an error error="Go Compilation Error (in C:\\Users\\Mario\\go\\pkg\\mod\\github.com\\revel\\revel#v1.0.0\\cache\\memcached.go:11:2): no required module provides package github.com/bradfitz/gomemcache/memcache; to add it:"
Error compiling code, to view error details see proxy running on http://:9000
Time to recompile 5.3684655s
I am newer ok
Best
Check your IPv4 address with the ipconfig command
Open webpro/conf/app.conf and paste the IPv4 address into the http.addr parameter

Haskell on Windows - Stack fails to fetch package index

I'm trying to install Haskell on Windows. Downloaded the installer and just clicked through everything, then tried to use Stack to install a package, ran it from a temporary folder in which everything has write access:
C:\t>stack install hfmt
Using latest snapshot resolver: lts-8.3
Writing implicit global project config file to: C:\sr\global-project\stack.yaml
Note: You can change the snapshot via the resolver field there.
Downloaded lts-8.3 build plan.
Fetching package index ...=.git""=="gui" was unexpected at this time.
C:\sr\indices\Hackage\git-update\all-cabal-hashes>#if ""--git-dir=.git""=="gui" #goto gui
Process exited with ExitFailure 255: C:\Program Files (x86)\Git\cmd\git.CMD --git-dir=.git fetch --tags
Failed to fetch package index, retrying.
removeDirectoryRecursive: permission denied (Access is denied.)
What's going wrong, and how can I fix it? Or should I forget about Stack and just use Cabal instead?
Tried rerunning the command as administrator. This time the response was instant:
C:\t>stack install hfmt
Fetching package index ...=.git""=="gui" was unexpected at this time.
C:\sr\indices\Hackage\git-update\all-cabal-hashes>#if ""--git-dir=.git""=="gui" #goto gui
Process exited with ExitFailure 255: C:\Program Files (x86)\Git\cmd\git.CMD --git-dir=.git fetch --tags
Failed to fetch package index, retrying.
removeDirectoryRecursive: permission denied (Access is denied.)

Why doesn't "go get gopkg.in/..." work while "go get github.com/..." OK?

I try to use go get gopkg.in/fatih/pool.v2 to install pool according to Readme.md, but can't success:
C:\Users\xiaona\Documents\GitHub> go get -v gopkg.in/fatih/pool.v2
Fetching https://gopkg.in/fatih/pool.v2?go-get=1
https fetch failed.
Fetching http://gopkg.in/fatih/pool.v2?go-get=1
import "gopkg.in/fatih/pool.v2": http/https fetch: Get http://gopkg.in/fatih/poo
l.v2?go-get=1: dial tcp 107.178.216.236:80: ConnectEx tcp: A connection attempt
failed because the connected party did not properly respond after a period of ti
me, or established connection failed because connected host has failed to respon
d.
package gopkg.in/fatih/pool.v2: unrecognized import path "gopkg.in/fatih/pool.v2
"
While access 107.178.216.236:80 is OK in web browser.
I try to use go get github.com/fatih/pool, and it also works OK.
Could anyone give some clues on this issue?
BTW: I use windows powershell and git version is 1.9.5.
The root cause has been found: Because my computer use a web proxy, so I need to set proxy in environment variable:
C:\Users\xiaona>set https_proxy=https://web-proxy.corp.hp.com:8080/
C:\Users\xiaona>set http_proxy=https://web-proxy.corp.hp.com:8080/
C:\Users\xiaona>go get -v gopkg.in/fatih/pool.v2
Fetching https://gopkg.in/fatih/pool.v2?go-get=1
Parsing meta tags from https://gopkg.in/fatih/pool.v2?go-get=1 (status code 200)
get "gopkg.in/fatih/pool.v2": found meta tag main.metaImport{Prefix:"gopkg.in/fa
tih/pool.v2", VCS:"git", RepoRoot:"https://gopkg.in/fatih/pool.v2"} at https://g
opkg.in/fatih/pool.v2?go-get=1
gopkg.in/fatih/pool.v2 (download)
gopkg.in/fatih/pool.v2
Then, all is OK!

Sublime Text 3 - Package Control : "No packages available for installation" error when trying to install packages through secure channel

I am running Sublime on Ubuntu 14.04 LTS 64-bit. I have tried installing Package Installer on Sublime Text 3 using both the simple script and manual installation methods.
Whenever I try to run the Install Package option I get an error message "There are no packages available for installation"
The console shows the following trace:
Package Control: Error downloading channel. b'curl: (77) error setting certificate verify locations:\n CAfile: /usr/lib/ssl/certs/ca-certificates.crt\n CApath: /etc/ssl/certs' downloading https://sublime.wbond.net/channel.json.
error: Package Control
There are no packages available for installation
If I add http://sublime.wbond.net/repositories.json as a channel, install package starts showing the package list. But, when I try to install a package (e.g. Pretty JSON) I again get an error related to the security certificate with the following console trace:
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
Package Control: Error downloading package. b'curl: (77) error setting certificate verify locations:\n CAfile: /usr/lib/ssl/certs/ca-certificates.crt\n CApath: /etc/ssl/certs' downloading https://codeload.github.com/dzhibas/SublimePrettyJson/zip/master.
error: Package Control
Unable to download Pretty JSON. Please view the console for more details.
theme loaded
ignored packages updated to: [Vintage]
found 1 files for base name Default.sublime-theme
theme loaded
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
Any suggestions to get Package Control to work with the secure channel are welcome.
ADDITIONAL DEBUG TRACE FOR PACKAGE CONTROL:
Upon enabling debug for Package Control I get the following trace:
Package Control: Fetching list of available packages
Platform: linux-x64
Sublime Text Version: 3059
Package Control Version: 2.0.0
Package Control: Download Debug
URL: https://sublime.wbond.net/channel.json
Resolved IP: 50.116.34.243
Timeout: 30
Package Control: Found system CA bundle at /usr/lib/ssl/certs/ca-certificates.crt
Package Control: Curl Debug Proxy
http_proxy:
https_proxy:
proxy_username:
proxy_password:
Package Control: Trying to execute command /usr/bin/curl --user-agent 'Sublime Package Control v2.0.0' --connect-timeout 30 -sSL --compressed --dump-header /tmp/tmp_i20fq --cacert /usr/lib/ssl/certs/ca-certificates.crt -v https://sublime.wbond.net/channel.json
Package Control: Curl HTTP Debug General
Hostname was NOT found in DNS cache
Trying 50.116.34.243...
Connected to sublime.wbond.net (50.116.34.243) port 443 (#0)
error setting certificate verify locations:
CAfile: /usr/lib/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
Closing connection 0
CAfile: /usr/lib/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
Package Control: Error downloading channel. curl: (77) error setting certificate verify locations: downloading https://sublime.wbond.net/channel.json.
ignored packages updated to: [Vintage, Pretty JSON]
found 1 files for base name Default.sublime-theme
Package Control: Fetching list of available packages
Platform: linux-x64
Sublime Text Version: 3059
Package Control Version: 2.0.0
theme loaded
Package Control: Download Debug
URL: https://sublime.wbond.net/channel.json
Resolved IP: 50.116.34.243
Timeout: 30
Package Control: Found system CA bundle at /usr/lib/ssl/certs/ca-certificates.crt
Package Control: Curl Debug Proxy
http_proxy:
https_proxy:
proxy_username:
proxy_password:
Package Control: Trying to execute command /usr/bin/curl --user-agent 'Sublime Package Control v2.0.0' --connect-timeout 30 -sSL --compressed --dump-header /tmp/tmpcg0ent --cacert /usr/lib/ssl/certs/ca-certificates.crt -v https://sublime.wbond.net/channel.json
Package Control: Curl HTTP Debug General
Hostname was NOT found in DNS cache
Trying 50.116.34.243...
Connected to sublime.wbond.net (50.116.34.243) port 443 (#0)
error setting certificate verify locations:
CAfile: /usr/lib/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
Closing connection 0
CAfile: /usr/lib/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
Package Control: Error downloading channel. curl: (77) error setting certificate verify locations: downloading https://sublime.wbond.net/channel.json.
Package Control: Unable to find a sublime-package file for Pretty JSON
Package Control: Unable to find file package-metadata.json in the package Pretty JSON
Package Control: Download Debug
URL: https://codeload.github.com/dzhibas/SublimePrettyJson/zip/master
Resolved IP: 192.30.252.146
Timeout: 30
Package Control: Found system CA bundle at /usr/lib/ssl/certs/ca-certificates.crt
Package Control: Curl Debug Proxy
http_proxy:
https_proxy:
proxy_username:
proxy_password:
Package Control: Trying to execute command /usr/bin/curl --user-agent 'Sublime Package Control v2.0.0' --connect-timeout 30 -sSL --compressed --dump-header /tmp/tmpueshe5 --cacert /usr/lib/ssl/certs/ca-certificates.crt -v https://codeload.github.com/dzhibas/SublimePrettyJson/zip/master
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
Package Control: Curl HTTP Debug General
Hostname was NOT found in DNS cache
Trying 192.30.252.147...
Connected to codeload.github.com (192.30.252.147) port 443 (#0)
error setting certificate verify locations:
CAfile: /usr/lib/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
Closing connection 0
CAfile: /usr/lib/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
Package Control: Error downloading package. curl: (77) error setting certificate verify locations: downloading https://codeload.github.com/dzhibas/SublimePrettyJson/zip/master.
error: Package Control
Unable to download Pretty JSON. Please view the console for more details.
Had the same issue today. Reinstalled package control:
Deleted Package Control folder inside the Sublime Text 3 > Packages folder
went to https://sublime.wbond.net/installation and executed the manual installation instructions there
...namely
Click the Preferences > Browse Packages… menu
Browse up a folder and then into the Installed Packages/ folder
Download Package Control.sublime-package and copy it into the Installed Packages/ directory
Restart Sublime Text
Worked like charm!
I had the same problem today in Ubuntu 16.04 LTS 64-bit with Sublime Text Build 3126.
Following advice from this Github issue page solved it for me.
Copy-paste the below lines to
Preferences > Package Settings > Package Control > Settings - User.
"channels":
[
"https://packagecontrol.io/channel_v3.json",
"https://web.archive.org/web/20150905194312/https://packagecontrol.io/channel_v3.json"
],
I had the same issue following an upgrade, but saw this in the readme and ran this python script which fixed it for me (ctrl + ' to bring up the console then ran the following command)
import urllib.request,os,sys; exec("if sys.version_info < (3,) or os.name != 'nt': raise OSError('This code is for Windows ST3 only!')"); pr='Preferences.sublime-settings'; ip='ignored_packages'; n='Package Control'; s=sublime.load_settings(pr); ig=s.get(ip); ig.append(n); s.set(ip,ig); sublime.save_settings('Preferences.sublime-settings'); pf=n+'.sublime-package'; urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler())); by=urllib.request.urlopen('https://packagecontrol.io/'+pf.replace(' ','%20')).read(); open(os.path.join(sublime.installed_packages_path(),pf),'wb').write(by); ig.remove(n); s.set(ip,ig); sublime.save_settings(pr); print('Package Control: 3.0.0 upgrade successful!')
I faced this issue yesterday and tried #Juri's answer but it didn't work because I couldn't download Package Control.sublime-package due to network error. Then, I tried to install a package today normally and it works. So, the problem is related to the server of package manager (https://packagecontrol.io/) and you should wait until the problem is fixed.
Check proxy setting in
Preferences > Package Settings > Package Control > Settings – Default / User
If the proxy setting is invalid, you would get this error too.
I had same issue. I was using Sublime Text 3 on MAC OS Catalina 10.15.6
Below change resolved issue like gem!
Go to
Preferences > Package Settings > Package Control > Settings – Default / User
And add below lines
"downloader_precedence":
{
"linux": [ "curl","wget","urllib"],
"osx": ["curl","wget","urllib"]
}
I was lately experiencing incidents related with SSL verification with curl, apt-get, wget, and in an attempt to install packages with Sublime :
SSL: CERTIFICATE_VERIFY_FAILED
Surfing on the net I find out that there's a package that manage the ca-certificates and that is :
mlazo#mlazo-pc:~$ dpkg -l |grep -i ca-certificates
ii ca-certificates 20201027ubuntu0.18.04.1 all Common CA certificates
So I proceed to reinstall it, with the following steps :
sudo apt-get install --reinstall ca-certificates
Once the main package is been re-installed, I proceed to install a package on Sublime with the keytrokes "Cntrl + Shift + P" getting a successfull outcome.
I really hope this information would be helpful for somebody else.
Best regards,
Manuel Lazo
Try again now. I think the web admin fixed the certificate problem -- you may need to delete the package control file and install it again (but you can keep settings and other packages already installed).
Also, seems to fail if you don't have cURL installed, but you do.
Install the package using the manual method (follow these steps):
Click the Preferences > Browse Packages… menu
Browse up a folder and then into the Installed Packages/ folder
Download Package Control.sublime-package and copy it into the Installed Packages/ directory
Restart Sublime Text
Then don't forget to add your proxy and port to the file Preferences > Package Settings > Package Control > Settings - User like so:
"http_proxy": "[proxy]:[port]"
The project maintainer is having a problem with the package control server at the time of writing this.
See https://forum.sublimetext.com/t/package-control-outage/41274/31 for more information on the restoration progress or if you wish to offer support.
Meanwhile, in order to access packages you wish to install, you can search google for the package name and use the cached google page to find the package's project page.
For example, you could search "sublime text 3 predawn" and go to the packages project page (in this case github) to download and install it manually.
Navigate to the project page from the cached package control page. The project page will give you access to the package as well as manual install procedures.
Working Answer is here:
[FIX] Sublime Error - There Are Not Packages Available For Installation - 100% working
https://mrmoeed.blogspot.com/2019/09/fix-sublime-error-there-are-not.html
Had same issue, console was showing 403 error at https://packagecontrol.io/channel_v3.json.
I had to download the file manually and change the channel to the file in my computer. Not sure if that's most reliable way, as you probably would need to download the file again to see most recent packages, but it's the only thing that worked for me.
So just download the file from: https://packagecontrol.io/channel_v3.json
Add the file to your channel in:
prefernces > package settings > package control > settings - user.
Like this:
"channels":
[
"C:\\Users\\YourUser\\Downloads\\channel_v3.json"
],
For Mac Users :: Solution Here what you need to do.
Open System Preference -> Network -> Advanced -> Proxies
then remove everything from the proxies Text area.
uncheck Use FTP mode.
thats's it.
Quit Sublime, restart again and hit CMD+Shift+P

Deployment error: windows.licensing failed to start WSService

I get the following error when I try to deploy a windows store app:
Error : DEP0700 : Registration of the app failed. error 0xC0020017:
windows.licensing failed to start WSService while installing
My developer license is valid. I changed the package name, still the error persists.
This problem occurs with old and completely new projects.
Does anyone have an idea how to solve this?
Registration of app failed error usually occurs when you try to re-deploy an app with the same package ID from visual studio if it is already installed by a different user.
Solution is to change the Package Identity
Open the manifest
Go to the package tab
Modify the identity

Resources