I am having problems installing packages in Visual Studio 2010. When I run the Package Manager Console it displays the following error:
PM> Install-Package wpf.themes
Install-Package : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
At line:1 char:16
+ Install-Package <<<< wpf.themes
+ CategoryInfo : NotSpecified: (:) [Install-Package], WebException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
How do I resolve it?
I could view packages but got the trust error when trying to install.
Found out that the Nuget package source url (nuget.org/api/v2/) routes through https://go.microsoft.com. See nuget.codeplex.com/workitem/1623.
The certificate path for that site starts with Baltimore CyberTrust Root. That certificate was not being recognized. Once I added it to my Trusted Root Certification Authorities, then the installation worked fine. Get the certificate here:
www.cybertrust.ne.jp/SureServer/file/root_ca/BCTRoot.txt
Read this article this may help you.
Thus might help Good Luck!
Try following these steps:
Download the Equifax Secure Certificate Authority certificate (http://www.geotrust.com/resources/root-certificates/) and install it into your System.
Add imap.gmail.com to the list of SSL-only servers.
Disable SSL in your mail client.
Related
I tried the Enable-PSRemoting in powershell, Windows 10 Pro, configured in Azure VM.
But the command fails with the following error :
WinRM has been updated to receive requests.
WinRM service type changed successfully.
WinRM service started.
Set-WSManQuickConfig : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859113"
Machine="localhost"><f:Message><f:ProviderFault provider="Config provider"
path="%systemroot%\system32\WsmSvc.dll"><f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault"
Code="2150859113" Machine="Roshin"><f:Message>WinRM firewall exception will not work since one of the network
connection types on this machine is set to Public. Change the network connection type to either Domain or Private and
try again. </f:Message></f:WSManFault></f:ProviderFault></f:Message></f:WSManFault>
At line:116 char:17
+ Set-WSManQuickConfig -force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-WSManQuickConfig], InvalidOperationException
+ FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.SetWSManQuickConfigCommand
Can someone help to mitigate this?
I just missed the statment in the error :
WinRM firewall exception will not work since one of the network
connection types on this machine is set to Public. Change the network connection type to either Domain or Private and
try again.
Turning the network to Private from public did the job
I logged in to my client's server (Windows 2008 Server Standard) and tried to download something in command line. So I use the following command:
Invoke-WebRequest "http://www.example.com/somthing.cab
But then I got the following error message:
Invoke-WebRequest : Authorization Required
Description: Authorization is required for access to this proxy
At line:1 char:1
+ Invoke-WebRequest "http://www.example.com/something.cab"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Moreover I am able to download that file in IE and IE doesn't use any proxy server. None of other command line tool can download via HTTP or HTTPS protocol (FTP is downloadable). There is no environment variable that specifies any proxy server.
What is the default proxy of Invoke-WebRequest and how do I know the proxy server ip address and port number and if it is an NTLM proxy server ?
Thanks
I can able to get the instance-id from AWS EC2 windows machine's IE browser using the URL http://169.254.169.254/latest/meta-data/instance-id
In the same machine when I use Powershell command
Invoke-WebRequest http://169.254.169.254/latest/meta-data/instance-id
then I am getting below error
Invoke-WebRequest : Network Error (tcp_error) A communication error occurred: "Operation timed out" The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. For assistance, contact your network support team. At line:1 char:1
+ Invoke-WebRequest http://169.254.169.254/latest/meta-data/instance-id
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Note: Invoke-WebRequest http://google.com is working and giving the response from PowerShell cmd.
Please anyone clarify what is this error.
What exactly does this need to do? Download data from the URL? I've never seen such a think before, but I would THINK you could use the System.Web.Uri class to do it, like so:
$var = New-Object System.Web.Uri
$var.Download("http://169.254.169.154/latest/meta-data/instance-id")
Does something like that work?
I use sourcerepo.com as SVN server. My XCode5 bot complains : error validating server certificate for "https://myproject.sourcerepo.com:443"
- the certificate is not issued by a trusted authority. Use the fingerprint etc....
How can I make my XCode Server accept this svn server and retrieve sources ?
thanks for your advice
Frank
Verify why the certificate is untrusted. (E.g., is it a self-signed certificate?)
Start Terminal and run svn info https://myproject.sourcerepo.com:443/<path-to-repository>. Accept the certificate permanently when prompted.
I found a way to make it work from the Xcode 5 release notes:
https://developer.apple.com/library/ios/releasenotes/developertools/rn-xcode/xc5_release_notes/xc5_release_notes.html
Communicating with a remote SVN repository over HTTPS can fail with an
error similar to “Error validating server certificate for server
name.” Edit the file
/Library/Server/Xcode/Config/xcsbuildd.plist
and change the TrustSelfSignedSSLCertificates key from false to true.
Then, from a Terminal window, run:
sudo killall xcsbuildd
I did exactly the above. To edit the file you actually need to
sudo vi /Library/Server/Xcode/Config/xcsbuildd.plist
After restarting the build daemon I was able to get my Xcode bot to checkout the sources from the remote repository and perform the integration. Hope this helps!
I am using VS 2010 (Package Manager Console) to download NuGet (2.5.40416.9020/Latest) packages. It uses URL https://nuget.org/api/v2/. It gives me error as below.
Install-Package : An error occurred while loading packages from'https://nuget.org/api/v2/': The remote name could not be resolved: 'nuget.org'
At line:1 char:16
+ Install-Package <<<< Rx-Main
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
But when i access the same URL via browser then i am able to browse the site.
I am on corporate network so firewall might block the port (Other than 80 and 443).
So which port is used by NuGet while downloading packages via Package Manager Console (VS 2010)?
https://nuget.org/api/v2/ means port 443 (the standard port for HTTPS)
If you're on a corporate network, port 80 and 443 are usually bounced through a proxy server.
Most likely, NuGet is not using your proxy settings for some reason, so it cannot find the proxy server and are stopped by the corporate firewall.
Go to file Program Files\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe.config
Set ipv6 enabled from true to false
<system.net>
<settings>
<ipv6 enabled="false"/>
</settings>
</system.net>
In my case, adding the package source references (URLs that you are using to get the packages) manually in the Nuget.Config file (\users*\appdata\Roaming\Nuget\Nuget.Config) resolved the issue.
Make sure that all the nuget packages that you are referring in the solution were added to the above Nuget.Config file.
For some reason, the references got removed from my config file and i started getting this exception. Adding them manually to the config file resolved the issue in my case.
I was unable to download the nugget package through the console, it was giving error like:
"Unable to connect remote server"
I followed the above steps and Set ipv6 enabled from true to false. It resolved my problem.
C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe.config
<system.net>
<settings>
<ipv6 enabled="false"/>
</settings>
</system.net>